切换主体

This commit is contained in:
ziming 2026-03-26 15:14:36 +08:00
parent f34a27fbf2
commit 3c4b932f03
1 changed files with 6 additions and 2 deletions

View File

@ -57,10 +57,14 @@ func (srv *NotifyService) Notify(ctx http.Context) error {
})
}
headerJson, _ := json.Marshal(headers)
log.Warn("微信回调通知[%s],CallBack处理失败,headers:%s,body:%s", mchId, headerJson, string(bodyBytes))
bizData, err := srv.WechatBiz.CallBack(ctx, mchId, &headers, bodyBytes)
if err != nil {
headerJson, _ := json.Marshal(headers)
log.Errorf("微信回调通知[%s],CallBack处理失败,headers:%s,body:%s,err:%s", mchId, headerJson, string(bodyBytes), err.Error())
//log.Errorf("微信回调通知[%s],CallBack处理失败,headers:%s,body:%s,err:%s", mchId, headerJson, string(bodyBytes), err.Error())
log.Errorf("微信回调通知[%s],CallBack处理失败,:%s", mchId, err.Error())
return ctx.JSON(http2.StatusNetworkAuthenticationRequired, map[string]string{
"code": "FAIL",