Bladeren bron

更新

master
huangjiajun 1 jaar geleden
bovenliggende
commit
be4ed89fbe
1 gewijzigde bestanden met toevoegingen van 13 en 0 verwijderingen
  1. +13
    -0
      tik_tok/svc_tik_tok_goods.go

+ 13
- 0
tik_tok/svc_tik_tok_goods.go Bestand weergeven

@@ -148,6 +148,19 @@ func GetKlGoods(args map[string]string) TikTokGoods {
goodsList = GetDetail(args)
return goodsList
}
func GetKlGoodsNew(args map[string]string) TikTokGoods {
content, _ := php2go.Base64Decode(args["content"])
params := map[string]interface{}{"command": content}
send, err := Send(args["appkey"], args["appSecret"], "buyin.commonShareCommandParse", params, args["acctoken"])
var goodsList = TikTokGoods{}
product := gjson.Get(send, "data.common_share_command_parse_info.product_info").String()
if err != nil || product == "" {
return goodsList
}
args["id"] = gjson.Get(product, "product_id").String()
goodsList = GetDetail(args)
return goodsList
}
func CommGoodsDetail(goods TikTokGoodsLm) TikTokGoods {
ShopTotalScores, ok := goods.ShopTotalScore.(ShopTotalScore)
ShopTotalScore := ShopTotalScore1{}


Laden…
Annuleren
Opslaan