rabin 3 年之前
父節點
當前提交
4d23d8221a
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      app/shop/lib/Cron.php

+ 9 - 1
app/shop/lib/Cron.php

@@ -806,7 +806,12 @@ class Cron
     # 处理配送服务商和配送时间
     public function upPs_api()
     {
-        $data = Dever::db('shop/buy_order_ps')->state();
+        $where = array();
+        $order_id = Dever::input('order_id');
+        if ($order_id) {
+            $where['order_id'] = $order_id;
+        }
+        $data = Dever::db('shop/buy_order_ps')->state($where);
         if ($data) {
             $update = array();
             foreach ($data as $k => $v) {
@@ -835,6 +840,9 @@ class Cron
                 }
             }
         }
+        if ($order_id) {
+            return 'ok';
+        }
         $data = Dever::db('shop/sell_order_ps')->state();
         if ($data) {
             $update = array();