From fd96154231a4fda42544aa6c6f33132c0edf3c98 Mon Sep 17 00:00:00 2001 From: "owen.gxz" <407953854@qq.com> Date: Sun, 26 Sep 2021 14:15:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B3=A8=E5=86=8C=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E4=BA=8B=E4=BB=B6=E6=8E=A8=E9=80=81=E6=B6=88=E6=81=AF?= =?UTF-8?q?=20(#487)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 消息类型增加快速注册企业小程序回调参数 * 代码格式化 * 更改常量名称 * 更改注解 Co-authored-by: 高震 --- officialaccount/message/message.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/officialaccount/message/message.go b/officialaccount/message/message.go index 9a5b659..f6f255f 100644 --- a/officialaccount/message/message.go +++ b/officialaccount/message/message.go @@ -86,6 +86,8 @@ const ( InfoTypeUnauthorized = "unauthorized" // InfoTypeUpdateAuthorized 更新授权 InfoTypeUpdateAuthorized = "updateauthorized" + // InfoTypeNotifyThirdFasterRegister 注册审核事件推送 + InfoTypeNotifyThirdFasterRegister = "notify_third_fasteregister" ) // MixMessage 存放所有微信发送过来的消息和事件 @@ -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"`