|
@@ -1991,7 +1991,7 @@ class AutoexeController extends \Think\Controller
|
|
|
}
|
|
|
M('market')->where(['id' => $market['id']])->save(['new_price' => $price]);
|
|
|
if ($market['hou_time'] < strtotime('today')) {
|
|
|
- M('market')->where(['id' => $market['id']])->save(['hou_price' => $price, 'hou_time' => strtotime('today')]);
|
|
|
+ M('market')->where(['id' => $market['id']])->save(['hou_price' => $price, 'hou_time' => strtotime('today'), 'max_day' => $price, 'min_day' => $price]);
|
|
|
}
|
|
|
}else{
|
|
|
if ($market['zhang'] > 0 and $market['die'] == 0){
|
|
@@ -2004,7 +2004,7 @@ class AutoexeController extends \Think\Controller
|
|
|
}
|
|
|
M('market')->where(['id' => $market['id']])->save(['new_price' => $price]);
|
|
|
if ($market['hou_time'] < strtotime('today')) {
|
|
|
- M('market')->where(['id' => $market['id']])->save(['hou_price' => $price, 'hou_time' => strtotime('today')]);
|
|
|
+ M('market')->where(['id' => $market['id']])->save(['hou_price' => $price, 'hou_time' => strtotime('today'), 'max_day' => $price, 'min_day' => $price]);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2018,7 +2018,7 @@ class AutoexeController extends \Think\Controller
|
|
|
}
|
|
|
M('market')->where(['id' => $market['id']])->save(['new_price' => $price]);
|
|
|
if ($market['hou_time'] < strtotime('today')) {
|
|
|
- M('market')->where(['id' => $market['id']])->save(['hou_price' => $price, 'hou_time' => strtotime('today')]);
|
|
|
+ M('market')->where(['id' => $market['id']])->save(['hou_price' => $price, 'hou_time' => strtotime('today'), 'max_day' => $price, 'min_day' => $price]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -2037,6 +2037,13 @@ class AutoexeController extends \Think\Controller
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
+ if ($price > $market['max_day']){
|
|
|
+ M('market')->where(['id' => $market['id']])->save(['max_day' => $price]);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ($price < $market['min_day']){
|
|
|
+ M('market')->where(['id' => $market['id']])->save(['min_day' => $price]);
|
|
|
+ }
|
|
|
|
|
|
if ($price > $market['max_price']){
|
|
|
M('market')->where(['id' => $market['id']])->save(['max_price' => $price]);
|