Browse Source

feat():授权

geek 4 years ago
parent
commit
581cef30cf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/index/controller/Setting.php

+ 2 - 2
application/index/controller/Setting.php

@@ -28,8 +28,8 @@ class Setting extends BaseController {
         //            $where[] = ['status', '=', 1];
         //        }
         $where = [];
-        if (!empty($input['mobile'])) {
-            $where[] = ['mobile', 'like', '%' . $input['mobile'] . '%'];
+        if (!empty($input['channel_name'])) {
+            $where[] = ['channel_name', 'like', '%' . $input['channel_name'] . '%'];
         }
         $model->setWhere($where);
         $data = $model->getPageList($model);