Pārlūkot izejas kodu

直营分店不能改价格

shish 1 gadu atpakaļ
vecāks
revīzija
1ef6e212c4
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      app-ghs/controllers/ProductController.php

+ 4 - 1
app-ghs/controllers/ProductController.php

@@ -600,7 +600,10 @@ class ProductController extends BaseController
         $join = $shop->join ?? 0;
         $default = $shop->default ?? 0;
         if ($join == 0 && $default == 0) {
-            util::fail('直营分店不能改价');
+            //除了小蔡鲜花的蔡总、郑总,其他人直营分店不能改价格
+            if(!in_array($this->adminId,[35725,23659])){
+                util::fail('直营分店不能改价');
+            }
         }
 
         $shopAdmin = $this->shopAdmin;