#358 针对微信网页授权为snsapi_userinfo时,WxMpUser类中增加privilege字段

This commit is contained in:
Binary Wang
2017-12-16 13:47:44 +08:00
parent 7118255be7
commit ff3cdb1487
3 changed files with 18 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ public class WxMpUserGsonAdapter implements JsonDeserializer<WxMpUser> {
wxMpUser.setRemark(GsonHelper.getString(o, "remark"));
wxMpUser.setGroupId(GsonHelper.getInteger(o, "groupid"));
wxMpUser.setTagIds(GsonHelper.getLongArray(o, "tagid_list"));
wxMpUser.setPrivileges(GsonHelper.getStringArray(o, "privilege"));
wxMpUser.setSexId(sexId);
if (new Integer(1).equals(sexId)) {
wxMpUser.setSex("");