This commit is contained in:
邹宗楠
2022-10-24 17:47:00 +08:00
parent d963fa8bf6
commit ddd27fb327

View File

@@ -19,8 +19,10 @@ type TiktokShopController struct {
// TokenMsg 抖音用户授权
func (c *TiktokShopController) TokenMsg() {
codeList := c.Ctx.Request.URL.Query().Get("code")
globals.SugarLogger.Debugf("codeList=====%s", utils.Format4Output(codeList, false))
var code []string
if err := json.Unmarshal([]byte(codeList), &code); err != nil {
globals.SugarLogger.Debugf("codeList=====err%s", utils.Format4Output(err, false))
c.Data["json"] = tiktok_api.CallbackResponse{Code: tiktok_api.CallbackFailCode, Msg: tiktok_api.CallbackFail}
c.ServeJSON()
return