shish 3 months ago
parent
commit
634c2d12d4
1 changed files with 17 additions and 12 deletions
  1. 17 12
      app-ghs/controllers/OrderController.php

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

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