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
69350683
...
69350683434c668bc772979dfb5ae93ae9cb4d83
authored
2022-12-07 17:22:13 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
页面提交人搜索
1 parent
c3f666dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Services/MusicianUserService.php
routes/admin.php
app/Services/MusicianUserService.php
View file @
6935068
...
...
@@ -35,7 +35,7 @@ class MusicianUserService extends Service
*/
public
function
getCompanyByName
()
{
$ids
=
AppCompany
::
query
()
->
where
In
(
'company_name'
,
$this
->
request
->
input
(
'name'
))
->
pluck
(
'company_id'
)
->
toArray
();
$ids
=
AppCompany
::
query
()
->
where
(
'company_name'
,
'like'
,
"%
{
$this
->
request
->
input
(
'name'
)
}
%"
)
->
pluck
(
'company_name'
,
'company_id'
)
->
toArray
();
return
Response
::
success
(
$ids
);
}
}
...
...
routes/admin.php
View file @
6935068
...
...
@@ -28,7 +28,7 @@ Route::group([], function (){
//获取用户
Route
::
post
(
'getUserName'
,
'MusicianUserController@userInfo'
);
//获取用户信息
Route
::
pos
t
(
'getCompanyByName'
,
'MusicianUserController@getCompanyByName'
);
Route
::
ge
t
(
'getCompanyByName'
,
'MusicianUserController@getCompanyByName'
);
...
...
Please
register
or
sign in
to post a comment