2024-07-25 18:00:42 +08:00

27 lines
489 B
Go

package controller
import (
"github.com/gin-gonic/gin"
"hepa-calc-api/api/responses"
"hepa-calc-api/extend/weChat"
"hepa-calc-api/utils"
)
// CallBack 回调
type CallBack struct{}
// WxPaySingle 微信支付回调-单项
func (r *CallBack) WxPaySingle(c *gin.Context) {
notifyReq, err := weChat.ParseNotify(c)
if err != nil {
responses.FailWithMessage(err.Error(), c)
return
}
// 记录日志
utils.LogJsonErr("微信支付回调-单项", notifyReq)
// 查询订单
}