diff --git a/internal/server/http.go b/internal/server/http.go index 830b220..c91851e 100644 --- a/internal/server/http.go +++ b/internal/server/http.go @@ -34,7 +34,7 @@ func NewHTTPServer( return ctx.String(http2.StatusOK, "pong") }) - r.POST("wechatNotify", voucherService.WechatNotify) + r.POST("/wechatNotify", voucherService.WechatNotify) cmb := r.Group("/cmb") diff --git a/internal/service/wechat_notify_consume.go b/internal/service/wechat_notify_consume.go index 3914a11..7e1ee5d 100644 --- a/internal/service/wechat_notify_consume.go +++ b/internal/service/wechat_notify_consume.go @@ -15,7 +15,7 @@ func (v *VoucherService) WechatNotify(ctx http.Context) error { return err } - log.Warnf("bodyBytes: %s", bodyBytes) + log.Warnf("微信回调通知bodyBytes: %s", bodyBytes) return ctx.JSON(200, "ok") }