Bläddra i källkod

Merge branch 'master' into dev

shish 4 månader sedan
förälder
incheckning
f74e525431
1 ändrade filer med 12 tillägg och 0 borttagningar
  1. 12 0
      app-ghs/controllers/OrderController.php

+ 12 - 0
app-ghs/controllers/OrderController.php

@@ -1088,6 +1088,18 @@ class OrderController extends BaseController
                 if (in_array($this->mainId, [19606])) {
                 if (in_array($this->mainId, [19606])) {
                     util::fail('请选择开单人');
                     util::fail('请选择开单人');
                 }
                 }
+                if (getenv('YII_ENV') == 'production') {
+                    //南粤选了开单,也只能变成本人开单
+                    if($this->mainId == 22388){
+                        $post['shopAdminName'] = $shopAdminName;
+                        $post['shopAdminId'] = $shopAdminId;
+                    }
+                }else{
+                    if($this->mainId == 644){
+                        $post['shopAdminName'] = $shopAdminName;
+                        $post['shopAdminId'] = $shopAdminId;
+                    }
+                }
             } else {
             } else {
                 if (in_array($this->mainId, [])) {
                 if (in_array($this->mainId, [])) {
                     util::fail('请选择开单人');
                     util::fail('请选择开单人');