shish 1 rok temu
rodzic
commit
ac9a29ab58
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7 1
      app-ghs/controllers/OrderController.php

+ 7 - 1
app-ghs/controllers/OrderController.php

@@ -996,7 +996,13 @@ class OrderController extends BaseController
         $post['long'] = $custom['long'] ?? '';
         $post['lat'] = $custom['lat'] ?? '';
         if (!empty($post['getStaffId'])) {
-            if($this->mainId == 44171){
+            if (getenv('YII_ENV') == 'production') {
+                $tbMainId = 44171;
+                //平潭花天下,就算选了收款人,也不要给改变开单人,临时解决方案 ssh 2250314
+            }else{
+                $tbMainId = 644;
+            }
+            if($this->mainId == $tbMainId){
                 //平潭花天下,就算选了收款人,也不要给改变开单人,临时解决方案 ssh 2250314
             }else{
                 $getStaffName = $post['getStaffName'] ?? '';