shish пре 1 година
родитељ
комит
b7af97dbe1

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

@@ -110,6 +110,12 @@ class CustomController extends BaseController
                     util::fail('不能充值销单哈');
                 }
             }
+            //恋善好多花控制销账权限
+            if (in_array($this->shopId, [55238,56609,56611])) {
+                if (!in_array($this->adminId, [43856, 54620])) {
+                    util::fail('暂无权限销单,请联系老板或财务');
+                }
+            }
             //天天鲜花 陈江店
             if (in_array($this->shopId, [763, 1405, 795])) {
                 if (!in_array($this->adminId, [2094, 5959])) {
@@ -140,7 +146,7 @@ class CustomController extends BaseController
                     util::fail('只能叶荷操作');
                 }
             }
-            //花大苪
+            //花大苪,多处请搜索关键词hdb_clear_control
             if (in_array($this->shopId, [8249])) {
                 if (!in_array($this->adminId, [9303])) {
                     util::fail('只能叶荷和财务操作');

+ 7 - 1
app-ghs/controllers/OrderClearController.php

@@ -154,12 +154,18 @@ class OrderClearController extends BaseController
                     util::fail('不能销单。。。');
                 }
             }
-            //花大苪 洋桔梗,只有叶荷姐才能销账
+            //花大苪 洋桔梗,只有叶荷姐才能销账,多处请搜索关键词hdb_clear_control
             if (in_array($this->shopId, [16070])) {
                 if (!in_array($this->adminId, [9303, 4])) {
                     util::fail('不能销单。');
                 }
             }
+            //恋善好多花控制销账权限
+            if (in_array($this->shopId, [55238,56609,56611])) {
+                if (!in_array($this->adminId, [43856, 54620])) {
+                    util::fail('暂无权限,请联系老板或财务');
+                }
+            }
             //天天鲜花 陈江店
             if (in_array($this->shopId, [763, 1405, 795])) {
                 if (!in_array($this->adminId, [2094, 5959])) {

+ 7 - 1
app-ghs/controllers/PurchaseClearController.php

@@ -41,12 +41,18 @@ class PurchaseClearController extends BaseController
                     util::fail('不能操作哈');
                 }
             }
-            //花大苪 洋桔梗,只有叶荷姐才能销账
+            //花大苪 洋桔梗,只有叶荷姐才能销账,多处请搜索关键词hdb_clear_control
             if (in_array($this->shopId, [16070])) {
                 if (!in_array($this->adminId, [9303, 4])) {
                     util::fail('暂无权限');
                 }
             }
+            //恋善好多花控制销账权限
+            if (in_array($this->shopId, [55238,56609,56611])) {
+                if (!in_array($this->adminId, [43856, 54620])) {
+                    util::fail('暂无权限,请联系老板或财务');
+                }
+            }
         } else {
             if (in_array($this->shopId, [36523])) {
 //                if (!in_array($this->adminId, [919])) {