Ver código fonte

update static

stanley-king 6 anos atrás
pai
commit
44e86827b0
1 arquivos alterados com 1 adições e 1 exclusões
  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) {