1
This commit is contained in:
@@ -18,10 +18,13 @@ type TiktokShopController struct {
|
|||||||
|
|
||||||
// TokenMsg 抖音用户授权
|
// TokenMsg 抖音用户授权
|
||||||
func (c *TiktokShopController) TokenMsg() {
|
func (c *TiktokShopController) TokenMsg() {
|
||||||
codeList := c.Ctx.Request.URL.Query().Get("code")
|
codeValues := c.Ctx.Request.URL.Query()
|
||||||
codeList2 := c.Ctx.Request.URL.Query().Get("Code")
|
globals.SugarLogger.Debugf("codeValues=====%s", utils.Format4Output(codeValues, false))
|
||||||
globals.SugarLogger.Debugf("codeList0=====%s", utils.Format4Output(c.Ctx.Request.URL.Query(), false))
|
|
||||||
|
codeList := codeValues.Get("code")
|
||||||
globals.SugarLogger.Debugf("codeList=====%s", utils.Format4Output(codeList, false))
|
globals.SugarLogger.Debugf("codeList=====%s", utils.Format4Output(codeList, false))
|
||||||
|
|
||||||
|
codeList2 := codeValues.Get("Code")
|
||||||
globals.SugarLogger.Debugf("codeList2=====%s", utils.Format4Output(codeList2, false))
|
globals.SugarLogger.Debugf("codeList2=====%s", utils.Format4Output(codeList2, 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user