Browse Source

fix crontab minutes bug

stanley-king 7 years ago
parent
commit
94278a52fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      crontab/control/minutes.php

+ 1 - 1
crontab/control/minutes.php

@@ -67,7 +67,7 @@ class minutesControl extends BaseCronControl
         $logic_vr_order = Logic('vr_order');
         $condition = array();
         $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() - ORDER_AUTO_CANCEL_DAY * 86400);
 
         //分批,每批处理100个订单,最多处理5W个订单
         for ($i = 0; $i < 500; $i++)