mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-04 04:37:46 +08:00
🎨 添加is_snapshotuser字段
This commit is contained in:
parent
94ff00bc4b
commit
a126c8e6d3
@ -53,12 +53,16 @@ public class WxOAuth2UserInfo implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@SerializedName("unionid")
|
@SerializedName("unionid")
|
||||||
private String unionId;
|
private String unionId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* privilege 用户特权信息,json数组,如微信沃卡用户为(chinaunicom)
|
* privilege 用户特权信息,json数组,如微信沃卡用户为(chinaunicom)
|
||||||
*/
|
*/
|
||||||
@SerializedName("privilege")
|
@SerializedName("privilege")
|
||||||
private String[] privileges;
|
private String[] privileges;
|
||||||
|
/**
|
||||||
|
* is_snapshotuser 是否为快照页模式虚拟账号,值为0时是普通用户,1时是虚拟帐号
|
||||||
|
*/
|
||||||
|
@SerializedName("is_snapshotuser")
|
||||||
|
private Integer snapshotUser;
|
||||||
|
|
||||||
public static WxOAuth2UserInfo fromJson(String json) {
|
public static WxOAuth2UserInfo fromJson(String json) {
|
||||||
return WxGsonBuilder.create().fromJson(json, WxOAuth2UserInfo.class);
|
return WxGsonBuilder.create().fromJson(json, WxOAuth2UserInfo.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user