浏览代码

微信开放平台 消息与事件url 添加result_info (#696)

* add result_info

* edit result_info

* edit-01 result_info

* 开放平台message添加小程序名称审核字段
txws 3 年之前
父节点
当前提交
5d0e32e2ea
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      officialaccount/message/message.go

+ 12 - 0
officialaccount/message/message.go

@@ -196,6 +196,14 @@ type MixMessage struct {
 		LegalPersonaName   string `xml:"legal_persona_name"`
 		ComponentPhone     string `xml:"component_phone"`
 	} `xml:"info"`
+	ResultInfo struct {
+		APIName   string `xml:"api_name"`
+		ApplyTime string `xml:"apply_time"`
+		AuditID   string `xml:"audit_id"`
+		AuditTime string `xml:"audit_time"`
+		Reason    string `xml:"reason"`
+		Status    string `xml:"status"`
+	} `xml:"result_info"`
 
 	// 卡券相关
 	CardID              string `xml:"CardId"`
@@ -214,6 +222,10 @@ type MixMessage struct {
 	TraceID       string `xml:"trace_id"`
 	StatusCode    int    `xml:"status_code"`
 
+	//小程序名称审核结果事件推送
+	Ret      int32  `xml:"ret"`      //审核结果 2:失败,3:成功
+	NickName string `xml:"nickname"` //小程序昵称
+
 	// 设备相关
 	device.MsgDevice