...
|
...
|
@@ -309,7 +309,7 @@ class LoginController extends Controller{ |
|
|
if (!empty($param['mobile'])){
|
|
|
$where['mobile']=['like','%'.$param['mobile'].'%'];
|
|
|
}
|
|
|
$where['user_type']=empty($param['user_type'])?1:$param['user_type'];
|
|
|
$where['user_type']=empty($param['user_type'])?['neq',1]:$param['user_type'];
|
|
|
$data=Db::name('user')->where($where)->field('id,user_type,user_login,mobile,money,qq,wx,parent_id')->paginate(10)->each(function ($item) {
|
|
|
$item['parent_id'] = Db::name('user') ->where('id',$item['parent_id'])->find()['user_login'];
|
|
|
return $item;
|
...
|
...
|
|