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
19802215
...
1980221527a42cac7976f7506bc7826004023854
authored
2022-12-29 10:36:02 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
最新发行记录
1 parent
5b44ba73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
app/Http/Controllers/Musician/IssueController.php
app/Services/IssueService.php
routes/api.php
app/Http/Controllers/Musician/IssueController.php
View file @
1980221
...
...
@@ -52,9 +52,9 @@ class IssueController extends Controller
* 最新发行记录
* @return \Illuminate\Http\JsonResponse
*/
public
function
latestRecord
()
public
function
latest
Online
Record
()
{
return
$this
->
issueService
->
latestRecord
();
return
$this
->
issueService
->
latest
Online
Record
();
}
}
...
...
app/Services/IssueService.php
View file @
1980221
...
...
@@ -77,7 +77,7 @@ class IssueService extends Service
* 发行(上架成功记录)
* @return \Illuminate\Http\JsonResponse
*/
public
function
latestRecord
()
public
function
latest
Online
Record
()
{
$res
=
SongsApply
::
query
()
->
where
([
'from'
=>
1
,
'user_id'
=>
$this
->
request
->
get
(
'identifier'
)
->
company_id
])
->
whereNotNull
(
'qy_url'
)
->
with
(
'songs_album.cover:link_id,key'
)
...
...
routes/api.php
View file @
1980221
...
...
@@ -53,6 +53,7 @@ Route::group([], function (){
//发行
Route
::
group
([
"prefix"
=>
"issue"
],
function
(){
Route
::
post
(
'/album/subCompany'
,
'IssueController@subCompany'
);
Route
::
get
(
'/song/latestOnlineRecord'
,
'IssueController@latestOnlineRecord'
);
Route
::
post
(
'{uri}'
,
'IssueController@index'
)
->
where
([
'uri'
=>
'.*+'
]);
});
...
...
Please
register
or
sign in
to post a comment