Forráskód Böngészése

充值销账问题

shish 8 hónapja
szülő
commit
6538cf7a26
1 módosított fájl, 9 hozzáadás és 2 törlés
  1. 9 2
      app-ghs/controllers/CustomController.php

+ 9 - 2
app-ghs/controllers/CustomController.php

@@ -127,7 +127,14 @@ class CustomController extends BaseController
 
         $staff = $this->shopAdmin;
         if (isset($staff->finance) == false || $staff->finance == 0) {
-            util::fail('无法充值销单。。。');
+            //淘花里中山店,没有财务权限要能销账
+            if (in_array($this->shopId, [17118])) {
+                if (!in_array($this->adminId, [17908])) {
+                    util::fail('你不能充值销账哦');
+                }
+            } else {
+                util::fail('无法充值销单。。。');
+            }
         }
 
         //多个地方需要同步修改clear_order_power
@@ -200,7 +207,7 @@ class CustomController extends BaseController
             }
             //淘花里小榄店 thl_xl_clear
             if (in_array($this->shopId, [72366])) {
-                if (!in_array($this->adminId, [69792,55445,55707,69792])) {
+                if (!in_array($this->adminId, [69792, 55445, 55707, 69792])) {
                     util::fail('你不能销单那。。');
                 }
             }