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
5920db78
...
5920db7890e7e91a29a419b30d37ba9f6d9c312c
authored
2023-02-03 14:46:02 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
歌曲名+版本
1 parent
0f928aa2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
app/Services/IssueService.php
app/Services/IssueService.php
View file @
5920db7
...
...
@@ -81,7 +81,7 @@ class IssueService extends Service
{
$res
=
SongsApply
::
query
()
->
where
([
'from'
=>
1
])
->
whereNotNull
(
'qy_url'
)
->
with
([
'songs_album:id,cover_map_id'
,
'songs_album.cover:id,link_id,key'
])
->
select
([
'name'
,
'album_id'
,
'singer'
,
'online_time'
,
'qy_url'
])
->
orderByDesc
(
'online_time'
)
->
select
([
'name'
,
'version_note'
,
'album_id'
,
'singer'
,
'online_time'
,
'qy_url'
])
->
orderByDesc
(
'online_time'
)
->
paginate
(
$this
->
pageSize
);
$cos
=
new
CosHelper
(
env
(
'MATERIAL_BUCKET'
));
...
...
@@ -90,6 +90,11 @@ class IssueService extends Service
if
(
!
empty
(
$item
->
songs_album
->
cover
))
{
$item
->
cover
=
$cos
->
getPreviewUrl
(
$item
->
songs_album
->
cover
->
key
);
}
if
(
$item
->
version_note
)
{
$item
->
name
=
$item
->
name
.
"(
{
$item
->
version_note
}
)"
;
}
unset
(
$item
->
songs_album
);
$item
->
singer
=
explode
(
','
,
$item
->
singer
);
}
...
...
Please
register
or
sign in
to post a comment