Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2022-06-05 18:58:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d6260d7689797e9d8daddf11eaea68289fa11d86
d6260d76
1 parent
e9f9754e
1.重构合成脚本。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
app/Http/Controllers/V1/HomeController.php
app/Http/Controllers/V1/HomeController.php
View file @
d6260d7
...
...
@@ -23,6 +23,7 @@ class HomeController extends Controller
$page_size
=
$request
->
get
(
'page_size'
,
20
);
$lists
=
Immerse
::
query
()
->
where
(
'state'
,
1
)
->
orderByDesc
(
'created_at'
)
->
skip
((
$page
-
1
)
*
$page_size
)
->
take
(
$page_size
+
1
)
->
get
();
$token
=
$request
->
bearerToken
();
...
...
Please
register
or
login
to post a comment