Explorar o código

update static

stanley-king %!s(int64=6) %!d(string=hai) anos
pai
achega
44e86827b0
Modificáronse 1 ficheiros con 1 adicións e 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) {