1
This commit is contained in:
@@ -19,8 +19,10 @@ type TiktokShopController struct {
|
|||||||
// TokenMsg 抖音用户授权
|
// TokenMsg 抖音用户授权
|
||||||
func (c *TiktokShopController) TokenMsg() {
|
func (c *TiktokShopController) TokenMsg() {
|
||||||
codeList := c.Ctx.Request.URL.Query().Get("code")
|
codeList := c.Ctx.Request.URL.Query().Get("code")
|
||||||
|
globals.SugarLogger.Debugf("codeList=====%s", utils.Format4Output(codeList, false))
|
||||||
var code []string
|
var code []string
|
||||||
if err := json.Unmarshal([]byte(codeList), &code); err != nil {
|
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.Data["json"] = tiktok_api.CallbackResponse{Code: tiktok_api.CallbackFailCode, Msg: tiktok_api.CallbackFail}
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user