royalrick / weapp

微信小程序服务端 SDK (for Golang)
https://pkg.go.dev/github.com/medivhzhan/weapp/v3
Apache License 2.0
1.47k stars 281 forks source link

用beego 架构写的微信支付回调怎么接受不到数据 #15

Closed ginkgohat closed 5 years ago

ginkgohat commented 5 years ago

// PayCallback ... // @Title PayCallback // @Description 微信支付回调接口 // @router /pay_callback [get] func (c *WechatPayController) PayCallback() { // 必须在下单时指定的 notify_url 的路由处理器下 err := payment.HandlePaidNotify(c.Ctx.ResponseWriter, c.Ctx.Request, func(ntf payment.PaidNotify) (bool, string) { return true, "" }) logs.Error("pay_callback error:", err) ... }

ginkgohat commented 5 years ago

已解决

Etran-H commented 5 years ago

@ginkgohat 您好,可不可以分享一下“处理支付结果通知”那部分是这么做的?