This commit is contained in:
邹宗楠
2022-06-06 13:56:04 +08:00
parent e36e6faf9b
commit 372f291602

View File

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