1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 21:02:25 +08:00

Merge pull request #170 from quxiaolong1504/dev

增加内容审核相关 message 字段
This commit is contained in:
silenceper
2019-10-21 13:57:54 +08:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

View File

@@ -63,6 +63,8 @@ const (
EventLocationSelect = "location_select"
//EventTemplateSendJobFinish 发送模板消息推送通知
EventTemplateSendJobFinish = "TEMPLATESENDJOBFINISH"
//EventWxaMediaCheck 异步校验图片/音频是否含有违法违规内容推送事件
EventWxaMediaCheck = "wxa_media_check"
)
const (
@@ -144,6 +146,12 @@ type MixMessage struct {
OuterStr string `xml:"OuterStr"`
IsRestoreMemberCard int32 `xml:"IsRestoreMemberCard"`
UnionID string `xml:"UnionId"`
// 内容审核相关
IsRisky bool `xml:"isrisky"`
ExtraInfoJSON string `xml:"extra_info_json"`
TraceID string `xml:"trace_id"`
StatusCode int `xml:"status_code"`
}
//EventPic 发图事件推送

View File

@@ -65,7 +65,9 @@ func (srv *Server) Serve() error {
}
//debug
//fmt.Println("request msg = ", string(srv.requestRawXMLMsg))
if srv.debug {
fmt.Println("request msg = ", string(srv.requestRawXMLMsg))
}
return srv.buildResponse(response)
}