From 99b95b76e91c58910016a6f72a2d73c6c228d743 Mon Sep 17 00:00:00 2001 From: "LAPTOP-7SGDREK0\\shiweijun" <411582373@qq.com> Date: Mon, 13 Jan 2025 15:10:42 +0800 Subject: [PATCH] fix:member --- app/Service/Admin/User/MemberService.php | 4 ++-- sync/http/admin/auth.http | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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}} +