Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
da8d2be5
Commit
da8d2be5
authored
Apr 14, 2017
by
lee_mingzhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
b9efdd7f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Constants.java
src/main/java/cn/quantgroup/xyqb/Constants.java
+4
-0
UserCenterController.java
...controller/external/user/center/UserCenterController.java
+4
-0
No files found.
src/main/java/cn/quantgroup/xyqb/Constants.java
View file @
da8d2be5
...
@@ -59,4 +59,8 @@ public interface Constants {
...
@@ -59,4 +59,8 @@ public interface Constants {
String
SCOPE
=
"snsapi_userinfo"
;
String
SCOPE
=
"snsapi_userinfo"
;
}
}
interface
UserAvatar
{
String
AVATAR_DEFAULT
=
"https://avatar.xyqb.com/default_avatar.png"
;
}
}
}
src/main/java/cn/quantgroup/xyqb/controller/external/user/center/UserCenterController.java
View file @
da8d2be5
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
.
user
.
center
;
package
cn
.
quantgroup
.
xyqb
.
controller
.
external
.
user
.
center
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.entity.*
;
import
cn.quantgroup.xyqb.entity.*
;
import
cn.quantgroup.xyqb.entity.enumerate.EducationEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.EducationEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.IncomeRangeEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.IncomeRangeEnum
;
...
@@ -87,6 +88,9 @@ public class UserCenterController {
...
@@ -87,6 +88,9 @@ public class UserCenterController {
if
(
null
==
userId
||
userId
==
0L
)
{
if
(
null
==
userId
||
userId
==
0L
)
{
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
}
}
if
(
StringUtils
.
isBlank
(
avatarUrl
))
{
avatarUrl
=
Constants
.
UserAvatar
.
AVATAR_DEFAULT
;
}
UserAttached
userAttached
=
userCenterService
.
searchUserAttachedByUserId
(
userId
);
UserAttached
userAttached
=
userCenterService
.
searchUserAttachedByUserId
(
userId
);
//查询到数据,直接更新头像和更新时间
//查询到数据,直接更新头像和更新时间
if
(
null
!=
userAttached
)
{
if
(
null
!=
userAttached
)
{
...
...
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