提交 39f5ac1f authored 作者: zhoushaopan's avatar zhoushaopan

feat[浙里办]: 修改微信返回当前登陆用户信息的问题

[修改微信返回当前登陆用户信息的问题]
上级 ca8f39ab
......@@ -60,26 +60,28 @@ public class ZlbWeChatController {
if (userInfoByToken != null){
JSONObject jsonObject = new JSONObject();
JSONObject personInfo = userInfoByToken.getJSONObject("personInfo");
String birthday = personInfo.getString("birthday");
String userNameEnc = personInfo.getString("userNameEnc");
String idtype = personInfo.getString("idtype");
String gender = personInfo.getString("gender");
String nation = personInfo.getString("nation");
String userId = personInfo.getString("userId");
String idNoEnc = personInfo.getString("idNoEnc");
String email = personInfo.getString("email");
String phoneEnc = personInfo.getString("phoneEnc");
JSONObject attributes = personInfo.getJSONObject("attributes");
jsonObject.put("birthday",birthday);
jsonObject.put("userNameEnc",userNameEnc);
jsonObject.put("idtype",idtype);
jsonObject.put("gender",gender);
jsonObject.put("nation",nation);
jsonObject.put("userId",userId);
jsonObject.put("email",email);
jsonObject.put("phoneEnc",phoneEnc);
jsonObject.put("idNoEnc",idNoEnc);
jsonObject.put("attributes",attributes);
if (personInfo != null){
String birthday = personInfo.getString("birthday");
String userNameEnc = personInfo.getString("userNameEnc");
String idtype = personInfo.getString("idtype");
String gender = personInfo.getString("gender");
String nation = personInfo.getString("nation");
String userId = personInfo.getString("userId");
String idNoEnc = personInfo.getString("idNoEnc");
String email = personInfo.getString("email");
String phoneEnc = personInfo.getString("phoneEnc");
JSONObject attributes = personInfo.getJSONObject("attributes");
jsonObject.put("birthday",birthday);
jsonObject.put("userNameEnc",userNameEnc);
jsonObject.put("idtype",idtype);
jsonObject.put("gender",gender);
jsonObject.put("nation",nation);
jsonObject.put("userId",userId);
jsonObject.put("email",email);
jsonObject.put("phoneEnc",phoneEnc);
jsonObject.put("idNoEnc",idNoEnc);
jsonObject.put("attributes",attributes);
}
return jsonObject;
}
return new JSONObject();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论