mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
#358 针对微信网页授权为snsapi_userinfo时,WxMpUser类中增加privilege字段
This commit is contained in:
@@ -44,6 +44,10 @@ public class WxMpUser implements Serializable {
|
||||
private String remark;
|
||||
private Integer groupId;
|
||||
private Long[] tagIds;
|
||||
/**
|
||||
* 用户特权信息,json 数组,如微信沃卡用户为(chinaunicom)
|
||||
*/
|
||||
private String[] privileges;
|
||||
|
||||
public static WxMpUser fromJson(String json) {
|
||||
return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpUser.class);
|
||||
|
||||
Reference in New Issue
Block a user