fix:member
This commit is contained in:
@@ -29,7 +29,7 @@ class MemberService extends BaseService{
|
||||
$id = (int)$this->request->input('query_id');
|
||||
$name = $this->request->input('query_name');
|
||||
$mobile = $this->request->input('query_mobile');
|
||||
$cityId = $this->request->input('query_city_id');
|
||||
$cityId = (int)$this->request->input('query_city_id');
|
||||
|
||||
$list = $this->userModel
|
||||
->where('is_del',MemberCode::IS_NO_DEL)
|
||||
@@ -43,7 +43,7 @@ class MemberService extends BaseService{
|
||||
$query->where('mobile', $mobile);
|
||||
})
|
||||
->when(!empty($cityId), function ($query) use ($cityId) {
|
||||
$query->where('city_id', $cityId);
|
||||
$query->where('city', $cityId);
|
||||
})
|
||||
->paginate($limit,$this->filed)
|
||||
->toArray();
|
||||
|
||||
@@ -275,3 +275,4 @@ name=主食&image_id=4
|
||||
GET {{host}}/admin/member/list?limit=10
|
||||
content-type: application/json
|
||||
Authorization: Bearer {{admin_token}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user