shish před 11 měsíci
rodič
revize
4caffcec85
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app-ghs/controllers/ShopController.php

+ 2 - 2
app-ghs/controllers/ShopController.php

@@ -146,13 +146,13 @@ class ShopController extends BaseController
             util::fail('没有找到门店,编号657701');
         }
         $staff = $this->shopAdmin;
-        if (isset($staff->finance) == false || $staff->finance == 0) {
+        if (!isset($staff->finance) || $staff->finance == 0) {
             //花掌柜的小石,源花汇的小吕和小吴,没有财务权限也要能修改门店
             if (!in_array($this->adminId, [4, 11961, 11976])) {
                 util::fail('没有修改门店权限');
             }
         }
-        if (isset($staff->super) == false || $staff->super == 0) {
+        if (!isset($staff->super) || $staff->super == 0) {
             //花掌柜的小石,源花汇的小吕和小吴,没有改库存改价格权限也要能修改门店
             if (!in_array($this->adminId, [4, 11961, 11976])) {
                 util::fail('没有修改门店权限哦');