作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

XIAOPAN

@@ -30,7 +30,7 @@ class AdminUsersController extends AdminBaseController{ @@ -30,7 +30,7 @@ class AdminUsersController extends AdminBaseController{
30 $param=$this->request->param(); 30 $param=$this->request->param();
31 $where=[]; 31 $where=[];
32 if (!empty($param['keyword'])){ 32 if (!empty($param['keyword'])){
33 - $where['mobile']=['like','%'.$param['keyword'].'%']; 33 + $where['phone']=['like','%'.$param['keyword'].'%'];
34 } 34 }
35 $users=new UsersModel(); 35 $users=new UsersModel();
36 $data=$users->where($where)->order('create_time','desc')->paginate(10); 36 $data=$users->where($where)->order('create_time','desc')->paginate(10);