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
李帅
2023-03-06 23:31:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d44aac3ef6a97a349f6081fb4ac05fe6c47fac07
d44aac3e
1 parent
fedc8563
1.修改用户信息优化
2.新增用户反馈相关接口。 3.新增点赞列表接口。
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
app/Http/Controllers/V1/ImmerseController.php
app/Http/Controllers/V1/ImmerseController.php
View file @
d44aac3
...
...
@@ -151,10 +151,12 @@ class ImmerseController extends Controller
$user
=
$request
->
user
();
$collects
=
Praise
::
query
()
->
where
([
'user_id'
=>
$user
->
id
,
'state'
=>
1
])
$collects
=
Praise
::
query
()
->
where
([
'user_id'
=>
$user
->
id
,
'state'
=>
1
])
->
orderByDesc
(
'created_at'
)
->
skip
((
$page
-
1
)
*
$page_size
)
->
take
(
$page_size
+
1
)
->
get
();
->
offset
((
$page
-
1
)
*
$page_size
)
->
limit
(
$page_size
)
->
get
();
$lists
=
[];
if
(
$collects
->
count
()){
...
...
Please
register
or
login
to post a comment