Commit 8cd36f22 8cd36f22fdd56778d86dd64ec0e720b1c7289d1d by lemon

*

1 parent 3e70ae39
...@@ -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);
......