1
This commit is contained in:
@@ -24,10 +24,15 @@ func (c *TongLianController) Msg() {
|
||||
if c.Ctx.Input.Method() == http.MethodPost {
|
||||
call, err := api.TLpayAPI.GetCallbackMsg(getUsefulRequest2(c.Ctx))
|
||||
globals.SugarLogger.Debugf("tonglianapi callback callbackResponse:%s", utils.Format4Output(call, true))
|
||||
if err == nil {
|
||||
err = financial.OnTLPayCallback(call)
|
||||
if err != nil {
|
||||
c.Abort("404")
|
||||
return
|
||||
}
|
||||
c.Data["json"] = call
|
||||
if err = financial.OnTLPayCallback(call); err != nil {
|
||||
c.Abort("404")
|
||||
return
|
||||
}
|
||||
c.Data["json"] = "success"
|
||||
c.ServeJSON()
|
||||
} else {
|
||||
c.Abort("404")
|
||||
|
||||
Reference in New Issue
Block a user