Explorar el Código

结账权限管理

shish hace 3 años
padre
commit
d1c957a7d7
Se han modificado 1 ficheros con 11 adiciones y 3 borrados
  1. 11 3
      app-ghs/controllers/OrderClearController.php

+ 11 - 3
app-ghs/controllers/OrderClearController.php

@@ -112,9 +112,17 @@ class OrderClearController extends BaseController
         }
 
         //花样年华只有总控才能结账
-        if (in_array($this->shopId, [1585, 1596])) {
-            if ($this->adminId != 2876) {
-                util::fail('暂无权限');
+        if (getenv('YII_ENV') == 'production') {
+            if (in_array($this->shopId, [1585, 1596])) {
+                if ($this->adminId != 2876) {
+                    util::fail('暂无权限');
+                }
+            }
+        } else {
+            if (in_array($this->shopId, [36523])) {
+                if ($this->adminId != 919) {
+                    util::fail('暂无权限');
+                }
             }
         }