*
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -20,7 +20,11 @@ class MusicianUserService extends Service | ... | @@ -20,7 +20,11 @@ class MusicianUserService extends Service |
20 | */ | 20 | */ |
21 | public function userInfo() | 21 | public function userInfo() |
22 | { | 22 | { |
23 | $user = AppCompany::query()->whereIn('company_id', $this->request->input('user_ids')) | 23 | $user_ids = array_map(function ($k, $v) {return intval($v);},$this->request->input('user_ids', [])); |
24 | |||
25 | if (empty($user_ids)) return Response::success(); | ||
26 | |||
27 | $user = AppCompany::query()->whereIn('company_id', $user_ids) | ||
24 | ->get(['company_id', 'company_name'])->keyBy('company_id'); | 28 | ->get(['company_id', 'company_name'])->keyBy('company_id'); |
25 | 29 | ||
26 | return Response::success($user); | 30 | return Response::success($user); | ... | ... |
-
Please register or sign in to post a comment