wugg před 2 roky
rodič
revize
94b7b7f2bc
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      app/admin/controller/Sale.php

+ 4 - 3
app/admin/controller/Sale.php

@@ -4267,13 +4267,14 @@ class Sale extends Base
         $post_code = $this->request->post('post_code', '', 'trim');
 
         if (empty($post_code)) return error_show(1004, '快递单号不能为空');
+        $postCode = explode(",",$post_code);
 
         $rs = Db::name('express_data')
-            ->where('post_code', $post_code)
+            ->where('post_code', $postCode[0])
+            ->where('status',">=" ,0)
             ->withAttr('post_data', function ($val) {
                 return json_decode($val, true);
-            })
-            ->findOrEmpty();
+            })->findOrEmpty();
         settype($rs, 'object');//格式统一转为对象
         return app_show(0, '请求成功', $rs);