shish před 2 roky
rodič
revize
105a206833
1 změnil soubory, kde provedl 15 přidání a 0 odebrání
  1. 15 0
      app-ghs/controllers/RefundController.php

+ 15 - 0
app-ghs/controllers/RefundController.php

@@ -381,6 +381,21 @@ class RefundController extends BaseController
             }
         }
 
+        if (getenv('YII_ENV') == 'production') {
+            //小向花卉采购控制
+            if ($this->mainId == 23390) {
+                if (!in_array($this->adminId, [24043, 24585, 24586, 24654])) {
+                    util::fail('你不能售后哦');
+                }
+            }
+        } else {
+            if ($this->mainId == 644) {
+                if (!in_array($this->adminId, [918])) {
+                    util::fail('你不能售后哈');
+                }
+            }
+        }
+
         $post = Yii::$app->request->post();
         $id = isset($post['id']) ? $post['id'] : 0;
         $refundType = $post['refundType'] ?? 1;