记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
07f92c1e
Commit
07f92c1e
authored
Aug 01, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:头像、背景图鉴于第三方审图API未接入,暂不提供用户编辑;
parent
281332e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
AdamUserController.java
...liquidnet/service/adam/controller/AdamUserController.java
+7
-2
No files found.
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/adam/controller/AdamUserController.java
View file @
07f92c1e
...
...
@@ -53,6 +53,9 @@ public class AdamUserController {
@Autowired
IAdamUserInfoService
adamUserInfoService
;
private
static
final
String
avatarDefUrl
=
"https://img.zhengzai.tv/user/2021/07/27/a4cc2a4e6dcd44d1812dc60e079086b4.png"
;
private
static
final
String
backgroundDefUrl
=
"https://img.zhengzai.tv/other/2021/07/27/150eeb0e20af4fc88e8a1ec57c46c362.png"
;
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"资料编辑"
)
@PostMapping
(
value
=
{
"edit"
})
...
...
@@ -119,8 +122,10 @@ public class AdamUserController {
String
currentUid
=
CurrentUtil
.
getCurrentUid
();
AdamUserInfoVo
editVo
=
adamRdmService
.
getUserInfoVoByUid
(
currentUid
);
editVo
.
setAvatar
(
parameter
.
getAvatar
());
editVo
.
setBackground
(
parameter
.
getBackground
());
// editVo.setAvatar(parameter.getAvatar());
// editVo.setBackground(parameter.getBackground());
editVo
.
setAvatar
(
StringUtils
.
isEmpty
(
editVo
.
getAvatar
())
?
avatarDefUrl
:
editVo
.
getAvatar
());
editVo
.
setBackground
(
StringUtils
.
isEmpty
(
editVo
.
getBackground
())
?
avatarDefUrl
:
editVo
.
getBackground
());
editVo
.
setNickname
(
parameter
.
getNickname
());
editVo
.
setSex
(
sex
);
editVo
.
setBirthday
(
parameter
.
getBirthday
());
...
...
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