Browse Source

修改数据11

lvhao 2 tháng trước cách đây
mục cha
commit
cb7cb1e5c0
1 tập tin đã thay đổi với 15 bổ sung0 xóa
  1. 15 0
      core/CoreApp/models/Model_logic_order.php

+ 15 - 0
core/CoreApp/models/Model_logic_order.php

@@ -251,6 +251,21 @@ class Model_logic_order extends Lin_Model {
             }
            
         }
+        if($post['type'] != 5 && in_array($post['express'],[2,63,64]))
+        {
+            return [
+                'code'=>-1,
+                "msg"=>"此快递方式必须从美仓发货!"
+            ];
+        }
+
+        if($post['type'] == 5 && !in_array($post['express'],[2,63,64]))
+        {
+            return [
+                'code'=>-1,
+                "msg"=>"此快递方式不能美仓发货!"
+            ];
+        }
         // if(in_array($post['express'],[2,63,64])){
         //     if($post['type'] != 5){
         //         return [