Skip to content

Commit

Permalink
oauth add snapshot user mark field (silenceper#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
DGuang21 authored Jan 29, 2023
1 parent 1a9dbc4 commit d1d034e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions officialaccount/oauth/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit d1d034e

Please sign in to comment.