Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
872e8ff8
authored
Nov 13, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复小程序注册用户性别问题
parent
f8864277
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/ctrip/fun/golf/service/user/UserService.java
src/main/java/com/ctrip/fun/golf/service/user/UserService.java
View file @
872e8ff8
...
...
@@ -876,7 +876,8 @@ public class UserService {
userext
.
setUnionId
(
weiXinInfoJSON
.
getString
(
"unionId"
));
userext
.
setMiniAppOpenId
(
weiXinInfoJSON
.
getString
(
"openId"
)
);
userext
.
setMiniAppSessionKey
(
weiXinInfoJSON
.
getString
(
"session_key"
));
userext
.
setGender
(
weiXinInfoJSON
.
getString
(
"gender"
));
String
gender
=
weiXinInfoJSON
.
getString
(
"gender"
);
userext
.
setGender
(
"1"
.
equals
(
gender
)?
"M"
:(
"2"
.
equals
(
gender
)?
"F"
:
""
));
userext
.
setCity
(
weiXinInfoJSON
.
getString
(
"city"
));
userext
.
setProvince
(
weiXinInfoJSON
.
getString
(
"province"
));
userext
.
setHeadImgUrl
(
weiXinInfoJSON
.
getString
(
"avatarUrl"
));
...
...
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