From d1d034eb9520c569abfe56110afe567f4f7d94cd Mon Sep 17 00:00:00 2001 From: daguang <28806852+DGuang21@users.noreply.github.com> Date: Sun, 29 Jan 2023 11:58:00 +0800 Subject: [PATCH] oauth add snapshot user mark field (#643) --- officialaccount/oauth/oauth.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/officialaccount/oauth/oauth.go b/officialaccount/oauth/oauth.go index 385fe9b..c7c647a 100644 --- a/officialaccount/oauth/oauth.go +++ b/officialaccount/oauth/oauth.go @@ -64,6 +64,10 @@ type ResAccessToken struct { OpenID string `json:"openid"` Scope string `json:"scope"` + // IsSnapShotUser 是否为快照页模式虚拟账号,只有当用户是快照页模式虚拟账号时返回,值为1 + // 公众号文档 https://developers.weixin.qq.com/community/minihome/doc/000c2c34068880629ced91a2f56001 + IsSnapShotUser int `json:"is_snapshotuser"` + // UnionID 只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段。 // 公众号文档 https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140842 UnionID string `json:"unionid"`