Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
1ca5fbed
Commit
1ca5fbed
authored
Dec 12, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调用玩物得志社区接口获取用户签名
parent
d7962f65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
+11
-0
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
View file @
1ca5fbed
...
...
@@ -795,7 +795,7 @@ public class ItemServiceImpl implements ItemService {
}
//获取用户签名
try
{
CloudServerResponse
<
CommunityUserAttributeDO
>
response
=
communityAttributeReadService
.
getCommunityUserAttributeByUserId
(
dto
.
get
UserId
());
CloudServerResponse
<
CommunityUserAttributeDO
>
response
=
communityAttributeReadService
.
getCommunityUserAttributeByUserId
(
itemResponseVo
.
getItem
UserId
());
if
(
response
.
isSuccess
())
{
itemResponseVo
.
setProfile
(
response
.
getResult
().
getSignature
());
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
View file @
1ca5fbed
...
...
@@ -580,6 +580,17 @@ public class UserServiceImpl implements UserService {
try
{
UserInfo
userInfo
=
new
UserInfo
();
userInfo
.
setUserId
(
dto
.
getUserId
());
//获取用户签名
try
{
CloudServerResponse
<
CommunityUserAttributeDO
>
response
=
communityAttributeReadService
.
getCommunityUserAttributeByUserId
(
dto
.
getUserId
());
if
(
response
.
isSuccess
())
{
userInfo
.
setProfile
(
response
.
getResult
().
getSignature
());
}
}
catch
(
Exception
e
)
{
logger
.
error
(
">>>>>>>>> 调用社区用户查询接口获取用户签名出错:{}"
,
e
);
}
itemCommonService
.
getPageViews
(
userInfo
);
logger
.
info
(
"【请求结束】查询关注粉丝浏览量"
);
return
Result
.
success
(
userInfo
);
...
...
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