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

XIAOPAN

@@ -36,7 +36,7 @@ class AdminUsersController extends AdminBaseController{ @@ -36,7 +36,7 @@ class AdminUsersController extends AdminBaseController{
36 $users=new UsersModel(); 36 $users=new UsersModel();
37 $data=$users->where($where)->order('create_time','desc')->paginate(10)->each(function ($item) { 37 $data=$users->where($where)->order('create_time','desc')->paginate(10)->each(function ($item) {
38 if ($item['is_use']==1){ 38 if ($item['is_use']==1){
39 - $item['eq']=Db::name('order')->where(['users_id'=>$item['id'],'status'=>1])->find()['eq_name']; 39 + $item['eq']=Db::name('order')->where(['users_id'=>$item['id'],'state'=>1])->find()['eq_name'];
40 } 40 }
41 return $item; 41 return $item;
42 }); 42 });