Преглед изворни кода

Merge branch 'master' of git.huaml.com:zhh/huahuibao

shizhongqi пре 2 година
родитељ
комит
93ce8d4d42
1 измењених фајлова са 10 додато и 1 уклоњено
  1. 10 1
      app-ghs/controllers/CustomController.php

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

@@ -422,7 +422,7 @@ class CustomController extends BaseController
             $where['isDebt'] = 1;
             $sort = 'debtAmount DESC';
         } else if ($type == 3) {
-            $where['isHd'] = 0;
+            $where['level'] = 0;
         }
         $name = trim($name);
         if (!empty($name)) {
@@ -620,6 +620,15 @@ class CustomController extends BaseController
             util::fail('超管才能修改');
         }
 
+        //泉城的只有苏小娟才能修改
+        if (getenv('YII_ENV') == 'production') {
+            if ($this->mainId == 60) {
+                if (in_array($this->adminId, [2499]) == false) {
+                    util::fail('请小娟修改');
+                }
+            }
+        }
+
         $get = Yii::$app->request->get();
         $customId = $get['customId'] ?? 0;
         $level = $get['level'] ?? 1;