fix:member

This commit is contained in:
LAPTOP-7SGDREK0\shiweijun
2025-01-13 15:10:42 +08:00
parent 2cee9e27c4
commit 99b95b76e9
2 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ class MemberService extends BaseService{
$id = (int)$this->request->input('query_id'); $id = (int)$this->request->input('query_id');
$name = $this->request->input('query_name'); $name = $this->request->input('query_name');
$mobile = $this->request->input('query_mobile'); $mobile = $this->request->input('query_mobile');
$cityId = $this->request->input('query_city_id'); $cityId = (int)$this->request->input('query_city_id');
$list = $this->userModel $list = $this->userModel
->where('is_del',MemberCode::IS_NO_DEL) ->where('is_del',MemberCode::IS_NO_DEL)
@@ -43,7 +43,7 @@ class MemberService extends BaseService{
$query->where('mobile', $mobile); $query->where('mobile', $mobile);
}) })
->when(!empty($cityId), function ($query) use ($cityId) { ->when(!empty($cityId), function ($query) use ($cityId) {
$query->where('city_id', $cityId); $query->where('city', $cityId);
}) })
->paginate($limit,$this->filed) ->paginate($limit,$this->filed)
->toArray(); ->toArray();

View File

@@ -274,4 +274,5 @@ name=主食&image_id=4
### 用户列表 ### 用户列表
GET {{host}}/admin/member/list?limit=10 GET {{host}}/admin/member/list?limit=10
content-type: application/json content-type: application/json
Authorization: Bearer {{admin_token}} Authorization: Bearer {{admin_token}}