|
|
@@ -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;
|