diff --git a/app/Service/Admin/User/MemberService.php b/app/Service/Admin/User/MemberService.php index efa904c..f4ec0a8 100644 --- a/app/Service/Admin/User/MemberService.php +++ b/app/Service/Admin/User/MemberService.php @@ -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(); diff --git a/sync/http/admin/auth.http b/sync/http/admin/auth.http index 365c486..4f3cf55 100644 --- a/sync/http/admin/auth.http +++ b/sync/http/admin/auth.http @@ -274,4 +274,5 @@ name=主食&image_id=4 ### 用户列表 GET {{host}}/admin/member/list?limit=10 content-type: application/json -Authorization: Bearer {{admin_token}} \ No newline at end of file +Authorization: Bearer {{admin_token}} +