1
This commit is contained in:
@@ -43,14 +43,14 @@ func (c *TicTocController) TiktokMsg() {
|
|||||||
if c.Ctx.Input.Method() == http.MethodPost {
|
if c.Ctx.Input.Method() == http.MethodPost {
|
||||||
call, refund, payType, err := api.TiktokApi.GetCallbackMsg(getPayInfo(c.Ctx))
|
call, refund, payType, err := api.TiktokApi.GetCallbackMsg(getPayInfo(c.Ctx))
|
||||||
globals.SugarLogger.Debugf("tictok callback callbackResponse:%s", utils.Format4Output(call, true))
|
globals.SugarLogger.Debugf("tictok callback callbackResponse:%s", utils.Format4Output(call, true))
|
||||||
if err != nil {
|
if err != nil || call == nil{
|
||||||
c.Data["json"] = MsgFail()
|
c.Data["json"] = MsgFail()
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
globals.SugarLogger.Debugf("============err:%s", err)
|
globals.SugarLogger.Debugf("============err:%s", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = localjx.OnTTPayCallback(call, refund, payType)
|
|
||||||
if err != nil {
|
if err = localjx.OnTTPayCallback(call, refund, payType); err != nil {
|
||||||
c.Data["json"] = MsgFail()
|
c.Data["json"] = MsgFail()
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
globals.SugarLogger.Debugf("============err:%s", err)
|
globals.SugarLogger.Debugf("============err:%s", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user