🐛 #3170【公众号】修复is_snapshotuser(是否为快照页模式虚拟账号)参数位置,在getAccessToken接口请求时返回

This commit is contained in:
kingYiFan 2023-11-20 15:10:41 +08:00 committed by GitHub
parent da12f4d460
commit 28436e779d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -58,11 +58,7 @@ public class WxOAuth2UserInfo implements Serializable {
*/
@SerializedName("privilege")
private String[] privileges;
/**
* is_snapshotuser 是否为快照页模式虚拟账号值为0时是普通用户1时是虚拟帐号
*/
@SerializedName("is_snapshotuser")
private Integer snapshotUser;
public static WxOAuth2UserInfo fromJson(String json) {
return WxGsonBuilder.create().fromJson(json, WxOAuth2UserInfo.class);

View File

@ -29,7 +29,9 @@ public class WxOAuth2AccessToken implements Serializable {
@SerializedName("scope")
private String scope;
/**
* 是否为快照页模式虚拟账号只有当用户是快照页模式虚拟账号时返回值为1
*/
@SerializedName("is_snapshotuser")
private Integer snapshotUser;