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
df004e7d
...
df004e7d8013cb1fe72d7100fb8d7be4bf327e40
authored
2022-11-08 17:21:52 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
fe7f42f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
app/Http/Controllers/Release/WorkController.php
routes/release.php
app/Http/Controllers/Release/WorkController.php
View file @
df004e7
...
...
@@ -161,9 +161,18 @@ class WorkController extends BaseController
{
list
(
$code
,
$msg
,
$data
)
=
$this
->
doApi
(
'/invests/content/modifyTrack'
,
$request
->
all
());
return
$code
===
0
?
Response
::
success
(
$data
)
:
Response
::
error
(
$code
,
$msg
,
$data
);
}
/**
* @param Request $request
* @return \Illuminate\Http\JsonResponse|mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public
function
albumUpdate
(
Request
$request
)
{
list
(
$code
,
$msg
,
$data
)
=
$this
->
doApi
(
'/invests/content/modifyAlbum'
,
$request
->
all
());
return
$code
===
0
?
Response
::
success
(
$data
)
:
Response
::
error
(
$code
,
$msg
,
$data
);
}
}
...
...
routes/release.php
View file @
df004e7
...
...
@@ -35,7 +35,8 @@ Route::group(['middleware'=>'throttle:60,1','prefix'=> 'tme'], function (){
//通过专辑id或者歌曲id查询授权书
Route
::
get
(
'auth_resources'
,
'WorkController@authResources'
);
//查询发行的歌曲tmeId列表接口
Route
::
post
(
'track_update'
,
'WorkController@trackUpdate'
);
//专辑编辑接口
Route
::
post
(
'album_update'
,
'WorkController@albumUpdate'
);
//专辑编辑接口
Route
::
post
(
'track_update'
,
'WorkController@trackUpdate'
);
//歌曲编辑接口
});
...
...
Please
register
or
sign in
to post a comment