浏览代码

fix order cancel

stanley-king 7 年之前
父节点
当前提交
65f2b813f3
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      crontab/control/minutes.php

+ 2 - 3
crontab/control/minutes.php

@@ -15,7 +15,6 @@ class minutesControl extends BaseCronControl
     {
     {
         //未付款订单超期自动关闭
         //未付款订单超期自动关闭
         $this->_order_timeout_cancel();
         $this->_order_timeout_cancel();
-
         $this->_cron_common();
         $this->_cron_common();
         $this->_web_index_update();
         $this->_web_index_update();
         $this->_cron_mail_send();
         $this->_cron_mail_send();
@@ -32,8 +31,8 @@ class minutesControl extends BaseCronControl
         $logic_order = Logic('order');
         $logic_order = Logic('order');
         $condition = array();
         $condition = array();
         $condition['order_state'] = ORDER_STATE_NEW;
         $condition['order_state'] = ORDER_STATE_NEW;
-//        $condition['add_time'] = array('lt',time() - ORDER_AUTO_CANCEL_DAY * self::EXE_TIMES);
-        $condition['add_time'] = array('lt',time() - 60);
+        $condition['add_time'] = array('lt',time() - ORDER_AUTO_CANCEL_DAY * self::EXE_TIMES);
+
         //分批,每批处理100个订单,最多处理5W个订单
         //分批,每批处理100个订单,最多处理5W个订单
         for ($i = 0; $i < 500; $i++){
         for ($i = 0; $i < 500; $i++){
             if ($_break) {
             if ($_break) {