Skip to content

Commit 28436e7

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

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxOAuth2UserInfo.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,7 @@ public class WxOAuth2UserInfo implements Serializable {
5858
*/
5959
@SerializedName("privilege")
6060
private String[] privileges;
61-
/**
62-
* is_snapshotuser 是否为快照页模式虚拟账号,值为0时是普通用户,1时是虚拟帐号
63-
*/
64-
@SerializedName("is_snapshotuser")
65-
private Integer snapshotUser;
61+
6662

6763
public static WxOAuth2UserInfo fromJson(String json) {
6864
return WxGsonBuilder.create().fromJson(json, WxOAuth2UserInfo.class);

weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/oauth2/WxOAuth2AccessToken.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ public class WxOAuth2AccessToken implements Serializable {
2929

3030
@SerializedName("scope")
3131
private String scope;
32-
32+
/**
33+
* 是否为快照页模式虚拟账号,只有当用户是快照页模式虚拟账号时返回,值为1
34+
*/
3335
@SerializedName("is_snapshotuser")
3436
private Integer snapshotUser;
3537

0 commit comments

Comments
 (0)