Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
cb24b852
Commit
cb24b852
authored
Mar 28, 2022
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug/getCollectState' into 'master'
bug: [none] 参数缺失返回默认值 See merge request rays/pcloud-book!1538
parents
9bb6a66b
65601945
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
ServeCollectFacade.java
...ava/com/pcloud/book/applet/facade/ServeCollectFacade.java
+6
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/applet/facade/ServeCollectFacade.java
View file @
cb24b852
...
...
@@ -24,6 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Objects
;
/**
* (ServeCollect)表控制层
...
...
@@ -173,9 +174,12 @@ public class ServeCollectFacade {
@ApiOperation
(
"查询应用作品收藏状态"
)
@GetMapping
(
"getCollectState"
)
public
ResponseDto
<?>
getCollectState
(
@CookieValue
(
"userInfo"
)
String
userInfo
,
@RequestParam
(
"serverId"
)
Long
serverId
,
@RequestParam
(
value
=
"serverId"
,
required
=
false
)
Long
serverId
,
@RequestParam
(
"serveType"
)
Integer
serveType
)
{
Long
wechatUserId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_WECHAT_USER_ID
);
if
(
Objects
.
isNull
(
serverId
))
{
return
new
ResponseDto
<>(
false
);
}
return
new
ResponseDto
<>(
serveCollectBiz
.
getCollectState
(
wechatUserId
,
serverId
,
serveType
));
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment