From 55d97c5ef63497833853334156e9b899dbfa2e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 6 Jun 2022 15:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=96=E9=9F=B3=E5=9B=9E?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/tictok_callback.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/tictok_callback.go b/controllers/tictok_callback.go index 8e20a52d3..fbe25cf97 100644 --- a/controllers/tictok_callback.go +++ b/controllers/tictok_callback.go @@ -40,7 +40,7 @@ func MsgFail() *TicktockRes { func (c *TicTocController) TiktokMsg() { globals.SugarLogger.Debugf("============err:%s", "抖音支付/退款回调") - if c.Ctx.Input.Method() == http.MethodPost { + //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 || call == nil{ @@ -58,9 +58,9 @@ func (c *TicTocController) TiktokMsg() { } c.Data["json"] = MsgSuccess() c.ServeJSON() - } else { - c.Abort("404") - } + //} else { + // c.Abort("404") + //} } func getPayInfo(ctx *context.Context) *http.Request {