feat(UserShipLists): 增加用户等级限制功能
This commit is contained in:
parent
bc5a7d78f5
commit
00f71306b5
@ -279,7 +279,7 @@ class UserController extends BaseApiController
|
|||||||
$user['address_info']=$address;
|
$user['address_info']=$address;
|
||||||
return $this->success('ok',$user->toArray());
|
return $this->success('ok',$user->toArray());
|
||||||
}else{
|
}else{
|
||||||
return $this->fail('用户不存在');
|
return $this->fail('用户不存在',[],0,0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $this->success('ok',[]);
|
return $this->success('ok',[]);
|
||||||
|
@ -37,12 +37,10 @@ class UserShipLists extends BaseAdminDataLists
|
|||||||
public function lists(): array
|
public function lists(): array
|
||||||
{
|
{
|
||||||
|
|
||||||
$field = "id,title";
|
$field = "id,title,limit";
|
||||||
$arr=[];
|
$arr=[];
|
||||||
if($this->request->__get('id')){
|
if(!$this->request->__get('id')){
|
||||||
$this->searchWhere[]=['id','in',[1,4]];
|
$arr[]=['id'=>0,'title'=>'一般用户','limit'=>0];
|
||||||
}else{
|
|
||||||
$arr[]=['id'=>0,'title'=>'一般用户'];
|
|
||||||
}
|
}
|
||||||
$lists = UserShip::where($this->searchWhere)
|
$lists = UserShip::where($this->searchWhere)
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user