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
bddc5d5f
...
bddc5d5f117f2e6c32b2e7985937e0665f532b28
authored
2022-05-26 15:56:33 +0800
by
mengfan.xie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
release
1 parent
c7e1e0a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
app/Http/Controllers/Release/WorkController.php
app/Http/Controllers/Release/WorkController.php
View file @
bddc5d5
...
...
@@ -48,7 +48,9 @@ class WorkController extends BaseController
$page
=
(
int
)
$request
->
get
(
'page'
,
1
);
$size
=
(
int
)
$request
->
get
(
'size'
,
20
);
list
(
$code
,
$msg
,
$data
)
=
$this
->
doApi
(
'/invests/content/searchSinger'
,[
'singerName'
=>
$singerName
]);
$total
=
count
(
$data
);
$data
=
array_slice
(
$data
,(
$page
-
1
)
*
$size
,
$size
);
$data
[
'total'
]
=
$total
;
if
(
$code
===
0
)
{
return
Response
::
success
(
$data
);
}
else
{
...
...
Please
register
or
sign in
to post a comment