Skip to content

Commit

Permalink
增加注册审核事件推送消息 (#487)
Browse files Browse the repository at this point in the history
* 消息类型增加快速注册企业小程序回调参数

* 代码格式化

* 更改常量名称

* 更改注解

Co-authored-by: 高震 <[email protected]>
  • Loading branch information
owen-gxz and 高震 authored Sep 26, 2021
1 parent 8621e06 commit fd96154
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions officialaccount/message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ const (
InfoTypeUnauthorized = "unauthorized"
// InfoTypeUpdateAuthorized 更新授权
InfoTypeUpdateAuthorized = "updateauthorized"
// InfoTypeNotifyThirdFasterRegister 注册审核事件推送
InfoTypeNotifyThirdFasterRegister = "notify_third_fasteregister"
)

// MixMessage 存放所有微信发送过来的消息和事件
Expand Down Expand Up @@ -150,6 +152,15 @@ type MixMessage struct {
AuthorizationCode string `xml:"AuthorizationCode"`
AuthorizationCodeExpiredTime int64 `xml:"AuthorizationCodeExpiredTime"`
PreAuthCode string `xml:"PreAuthCode"`
AuthCode string `xml:"auth_code"`
Info struct {
Name string `xml:"name"`
Code string `xml:"code"`
CodeType int `xml:"code_type"`
LegalPersonaWechat string `xml:"legal_persona_wechat"`
LegalPersonaName string `xml:"legal_persona_name"`
ComponentPhone string `xml:"component_phone"`
} `xml:"info"`

// 卡券相关
CardID string `xml:"CardId"`
Expand Down

0 comments on commit fd96154

Please sign in to comment.