Просмотр исходного кода

Merge branch 'master' into dev

shish 4 месяцев назад
Родитель
Сommit
f74e525431
1 измененных файлов с 12 добавлено и 0 удалено
  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])) {
                     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('请选择开单人');