Commit 872e8ff8 by chongli

修复小程序注册用户性别问题

parent f8864277
......@@ -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"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment