Explorar el Código

修复后台管理员无法搜索bug

sugar1569 hace 6 años
padre
commit
c201eeedd2
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      application/admin/model/system/SystemAdmin.php

+ 1 - 2
application/admin/model/system/SystemAdmin.php

@@ -146,8 +146,7 @@ class SystemAdmin extends ModelBasic
     public static function systemPage($where){
     public static function systemPage($where){
         $model = new self;
         $model = new self;
         if($where['name'] != ''){
         if($where['name'] != ''){
-            $model = $model->where('account','LIKE',"%$where[name]%");
-            $model = $model->where('real_name','LIKE',"%$where[name]%");
+            $model = $model->where('account|real_name','LIKE',"%$where[name]%");
         }
         }
         if($where['roles'] != '')
         if($where['roles'] != '')
             $model = $model->where("CONCAT(',',roles,',')  LIKE '%,$where[roles],%'");
             $model = $model->where("CONCAT(',',roles,',')  LIKE '%,$where[roles],%'");