提交 5e197141 编写于 作者: D devil_gong

脚本时间bug修复

上级 7ebc49d9
...@@ -36,7 +36,7 @@ class CrontabService ...@@ -36,7 +36,7 @@ class CrontabService
public static function OrderClose($params = []) public static function OrderClose($params = [])
{ {
// 获取可关闭订单 // 获取可关闭订单
$time = time()-intval(MyC('common_order_close_limit_time', 30, true)); $time = time()-(intval(MyC('common_order_close_limit_time', 30, true))*60);
$where = [ $where = [
['add_time', '<', $time], ['add_time', '<', $time],
['status', '=', 1], ['status', '=', 1],
...@@ -96,7 +96,7 @@ class CrontabService ...@@ -96,7 +96,7 @@ class CrontabService
public static function OrderSuccess($params = []) public static function OrderSuccess($params = [])
{ {
// 获取可收货订单 // 获取可收货订单
$time = time()-intval(MyC('common_order_success_limit_time', 21600, true)); $time = time()-(intval(MyC('common_order_success_limit_time', 21600, true))*60);
$where = [ $where = [
['delivery_time', '<', $time], ['delivery_time', '<', $time],
['status', '=', 3], ['status', '=', 3],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册