Răsfoiți Sursa

充值销账

shish 8 luni în urmă
părinte
comite
6ee3dda433
1 a modificat fișierele cu 7 adăugiri și 2 ștergeri
  1. 7 2
      app-ghs/controllers/CustomController.php

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

@@ -127,11 +127,16 @@ class CustomController extends BaseController
 
         $staff = $this->shopAdmin;
         if (isset($staff->finance) == false || $staff->finance == 0) {
-            //淘花里中山店,没有财务权限要能销账
-            if (in_array($this->shopId, [17118])) {
+            if ($this->shopId == 17118) {
+                //淘花里中山店,没有财务权限要能销账
                 if (!in_array($this->adminId, [17908])) {
                     util::fail('你不能充值销账哦');
                 }
+            } elseif ($this->shopId == 72366) {
+                //淘花里小榄店,没有财务权限要能销账
+                if (!in_array($this->adminId, [69792])) {
+                    util::fail('你不能充值销账哦');
+                }
             } else {
                 util::fail('无法充值销单。。。');
             }