From 311de595b7e77ac0ac74a14536324983764f1d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 24 Oct 2022 18:12:04 +0800 Subject: [PATCH] 1 --- controllers/tiktok_store.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/controllers/tiktok_store.go b/controllers/tiktok_store.go index fce674d7c..78cdd3f25 100644 --- a/controllers/tiktok_store.go +++ b/controllers/tiktok_store.go @@ -9,7 +9,6 @@ import ( "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/jx-callback/globals/api" "github.com/astaxie/beego/server/web" - "io/ioutil" "time" ) @@ -19,18 +18,12 @@ type TiktokShopController struct { // TokenMsg 抖音用户授权 func (c *TiktokShopController) TokenMsg() { - - body, _ := ioutil.ReadAll(c.Ctx.Request.Body) - globals.SugarLogger.Debugf("body=====%s", string(body)) - codeValues := c.Ctx.Request.URL.Query() globals.SugarLogger.Debugf("codeValues=====%s", utils.Format4Output(codeValues, false)) codeList := codeValues.Get("code") globals.SugarLogger.Debugf("codeList=====%s", utils.Format4Output(codeList, false)) - codeList2 := codeValues.Get("Code") - globals.SugarLogger.Debugf("codeList2=====%s", utils.Format4Output(codeList2, false)) var code []string if err := json.Unmarshal([]byte(codeList), &code); err != nil { globals.SugarLogger.Debugf("codeList=====err%s", utils.Format4Output(err, false))