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
24c0dde8
...
24c0dde87c327679a344179d29625f1b51b70aca
authored
2022-09-16 17:55:20 +0800
by
wei.feng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
..
1 parent
533706cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Http/Controllers/OpenApi/SongController.php
app/Http/Controllers/OpenApi/SongController.php
View file @
24c0dde
...
...
@@ -24,14 +24,14 @@ class SongController extends Controller
return Response::successWithCode(ErrorCode::MISSING_PARAMS, ErrorCode::$messages[ErrorCode::MISSING_PARAMS]);
}
if (!$request->filled('type') || !$request->filled('value')) {
return Response::successWithCode(ErrorCode::EMPTY_PARAMS, ErrorCode::$messages[ErrorCode::EMPTY_PARAMS]);
}
if (!in_array($request->get('type'), static::$input_types)) {
return Response::successWithCode(ErrorCode::ILLEGAL_PARAMS, ErrorCode::$messages[ErrorCode::ILLEGAL_PARAMS]);
}*/
if
(
!
$request
->
filled
(
'song_id'
)
||
!
$request
->
filled
(
'song_name'
)
||
!
$request
->
filled
(
'singer'
))
{
return
Response
::
successWithCode
(
ErrorCode
::
EMPTY_PARAMS
,
ErrorCode
::
$messages
[
ErrorCode
::
EMPTY_PARAMS
]);
}
$songs
=
Song
::
with
(
'subject'
,
'tags'
,
'files'
)
->
where
([
'lyrics_right'
=>
1
,
...
...
Please
register
or
sign in
to post a comment