Explorar el Código

feat():授权

geek hace 4 años
padre
commit
581cef30cf
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);