1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-05 13:12:26 +08:00
Co-authored-by: Wang Rong <wangron@tesla.com>
This commit is contained in:
Wangrong
2022-07-26 14:10:55 +08:00
committed by GitHub
parent adf142dac2
commit cc9be30ed1

View File

@@ -73,6 +73,11 @@ func (srv *Server) Serve() error {
if err != nil {
return err
}
// 非安全模式下请求处理方法返回为nil则直接回复success给微信服务器
if response == nil && !srv.isSafeMode {
srv.String("success")
return nil
}
// debug print request msg
log.Debugf("request msg =%s", string(srv.RequestRawXMLMsg))