From 0babff5f367bd10d7e29e299ae1ed72dc5b1beaf Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 22 Oct 2024 16:39:57 +0800 Subject: [PATCH] 1 --- chanxuanTikTok/api.go | 2 +- chanxuanTikTok/md.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chanxuanTikTok/api.go b/chanxuanTikTok/api.go index d5f4893..d6f848c 100644 --- a/chanxuanTikTok/api.go +++ b/chanxuanTikTok/api.go @@ -33,7 +33,7 @@ func GetGoodsUrl(acctoken, userId string, args map[string]string) ChanxuanTikTok args["user_id"] = userId send, _ := SendPost("/jx/v1/partner/dklive/shareProductLink", acctoken, args) var list ChanxuanTikTokGoodsUrl - str := gjson.Get(send, "data.data").String() + str := gjson.Get(send, "data").String() json.Unmarshal([]byte(str), &list) return list } diff --git a/chanxuanTikTok/md.go b/chanxuanTikTok/md.go index 155fd6a..deee57c 100644 --- a/chanxuanTikTok/md.go +++ b/chanxuanTikTok/md.go @@ -17,7 +17,7 @@ type ChanxuanTikTokGoods struct { } type ChanxuanTikTokGoodsUrl struct { DkPassword string `json:"dk_password"` - DkCode_img string `json:"dk_code_img"` + DkCodeImg string `json:"dk_code_img"` DyDeeplink string `json:"dy_deeplink"` DySharelink string `json:"dy_sharelink"` }