Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
8cd36f22
...
8cd36f22fdd56778d86dd64ec0e720b1c7289d1d
authored
2022-09-26 19:20:11 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
3e70ae39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
app/Services/MusicianUserService.php
app/Services/MusicianUserService.php
View file @
8cd36f2
...
...
@@ -20,7 +20,11 @@ class MusicianUserService extends Service
*/
public
function
userInfo
()
{
$user
=
AppCompany
::
query
()
->
whereIn
(
'company_id'
,
$this
->
request
->
input
(
'user_ids'
))
$user_ids
=
array_map
(
function
(
$k
,
$v
)
{
return
intval
(
$v
);},
$this
->
request
->
input
(
'user_ids'
,
[]));
if
(
empty
(
$user_ids
))
return
Response
::
success
();
$user
=
AppCompany
::
query
()
->
whereIn
(
'company_id'
,
$user_ids
)
->
get
([
'company_id'
,
'company_name'
])
->
keyBy
(
'company_id'
);
return
Response
::
success
(
$user
);
...
...
Please
register
or
sign in
to post a comment