Explorar el Código

update static

stanley-king hace 6 años
padre
commit
44e86827b0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      crontab/control/command.php

+ 1 - 1
crontab/control/command.php

@@ -399,7 +399,7 @@ class commandControl extends BaseCronControl
     private function update_orders($buyer_id)
     {
         $mod_order  = Model('order');
-        $items = $mod_order->table('order')->field('order_id')->where(['buyer_id' => $buyer_id])->order('order_id asc')->select();
+        $items = $mod_order->table('order')->field('order_id')->where(['buyer_id' => $buyer_id,'order_state' => ORDER_STATE_SUCCESS])->order('order_id asc')->select();
 
         $sort_num = 1;
         foreach ($items as $order) {