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
129aac98
...
129aac985309433772565c61910abd4d99f6234c
authored
2021-12-22 15:50:03 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug-模糊搜索
1 parent
6f56931e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Services/V2/MusicianSongService.php
app/Services/V2/MusicianSongService.php
View file @
129aac9
...
...
@@ -38,8 +38,8 @@ class MusicianSongService extends Service
])
->
when
(
filled
(
$this
->
request
->
name
),
function
(
Builder
$builder
)
{
$builder
->
where
(
function
(
Builder
$builder
){
$builder
->
where
(
'album_name'
,
'like'
,
"
{
$this
->
request
->
name
}
"
)
->
orWhere
(
'track_name'
,
'like'
,
"
{
$this
->
request
->
name
}
"
);
$builder
->
where
(
'album_name'
,
'like'
,
"
%
{
$this
->
request
->
name
}
%
"
)
->
orWhere
(
'track_name'
,
'like'
,
"
%
{
$this
->
request
->
name
}
%
"
);
});
})
->
sorted
(
$this
->
request
->
sort
)
->
paginate
(
$this
->
pageSize
);
...
...
Please
register
or
sign in
to post a comment