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

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

@@ -128,19 +128,25 @@ class OrderClearController extends BaseController
             //花样年华只有总控才能结账
             //花样年华只有总控才能结账
             if (in_array($this->shopId, [1585, 1596])) {
             if (in_array($this->shopId, [1585, 1596])) {
                 if ($this->adminId != 2876) {
                 if ($this->adminId != 2876) {
-                    util::fail('暂无权限');
+                    util::fail('暂不能操作');
                 }
                 }
             }
             }
             //花大苪 洋桔梗,只有叶荷姐才能销账
             //花大苪 洋桔梗,只有叶荷姐才能销账
             if (in_array($this->shopId, [16070])) {
             if (in_array($this->shopId, [16070])) {
                 if (!in_array($this->adminId, [9303, 4])) {
                 if (!in_array($this->adminId, [9303, 4])) {
-                    util::fail('暂无权限');
+                    util::fail('暂不能操作');
+                }
+            }
+            //天天鲜花,只有阿东才能结账
+            if (in_array($this->shopId, [763])) {
+                if (!in_array($this->adminId, [2094])) {
+                    util::fail('暂不能操作');
                 }
                 }
             }
             }
         } else {
         } else {
             if (in_array($this->shopId, [36523])) {
             if (in_array($this->shopId, [36523])) {
                 if ($this->adminId != 919) {
                 if ($this->adminId != 919) {
-                    util::fail('暂无权限');
+                    util::fail('暂不能操作');
                 }
                 }
             }
             }
         }
         }