shish vor 10 Monaten
Ursprung
Commit
d0857c8fae

+ 6 - 6
app-ghs/controllers/GhsController.php

@@ -189,20 +189,20 @@ class GhsController extends BaseController
         if (getenv('YII_ENV') == 'production') {
             //纯彩花艺
             if ($this->mainId == 10) {
-                if (in_array($this->adminId, [37, 988, 14346]) == false) {
-                    util::fail('没有数据哦4');
+                if (!in_array($this->adminId, [37, 988, 14346])) {
+                    util::fail('没有数据哦,编号129');
                 }
             }
             //天天鲜花十堰店
             if ($this->mainId == 7184) {
-                if (in_array($this->adminId, [8340, 8345, 9433]) == false) {
-                    util::fail('没有数据哦5');
+                if (!in_array($this->adminId, [8340, 8345, 9433])) {
+                    util::fail('没有数据哦,编号23');
                 }
             }
             //小向花卉采购控制
             if ($this->mainId == 23390) {
                 if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4, 24043])) {
-                    util::fail('没有数据哦6');
+                    util::fail('没有数据哦,编号35');
                 }
             }
             //贴心鲜花批发,只有老板可以查看
@@ -215,7 +215,7 @@ class GhsController extends BaseController
 
         $list = GhsClass::getGhsList($where);
         $staff = $this->shopAdmin;
-        if (isset($staff->finance) == false || $staff->finance == 0) {
+        if (!isset($staff->finance) || $staff->finance == 0) {
             $totalDebtAmount = 0;
             //没有财务权限的人不让看到欠款多少
             if (!empty($list['list'])) {

+ 2 - 2
app-ghs/controllers/PurchaseOrderController.php

@@ -440,7 +440,7 @@ class PurchaseOrderController extends BaseController
         if (getenv('YII_ENV') == 'production') {
             //小向花卉采购控制
             if ($this->mainId == 23390) {
-                if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4])) {
+                if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4,24043])) {
                     util::fail('你不能采购哦');
                 }
             }
@@ -1128,7 +1128,7 @@ class PurchaseOrderController extends BaseController
                 if (getenv('YII_ENV') == 'production') {
                     //小向花卉采购控制
                     if ($this->mainId == 23390) {
-                        if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4])) {
+                        if (!in_array($this->adminId, [24586, 24115, 24759, 26390, 23960, 25011, 25004, 24655, 28521, 4,24043])) {
                             util::fail('你不能采购哦');
                         }
                     }