Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
0b4d7f9457
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      tik_tok/svc_tik_tok_team.go

+ 5
- 4
tik_tok/svc_tik_tok_team.go View File

@@ -35,7 +35,7 @@ func Activity(args map[string]string) []TikTokActivity {
return goodsList

}
func ActivityProduct(args map[string]string) []TikTokGoods {
func ActivityProduct(args map[string]string) ([]TikTokGoods, int64) {
//args = map[string]string{
// "appkey": "7136155008692651560",
// "appSecret": "b132549f-f62c-491e-86f1-89af3658896a",
@@ -58,23 +58,24 @@ func ActivityProduct(args map[string]string) []TikTokGoods {
var goodsList = make([]TikTokGoods, 0)
product := gjson.Get(send, "data.data").String()
if err != nil || product == "" {
return goodsList
return goodsList, 0
}
var lmData struct {
Data struct {
Data []TikTokGoodsLm `json:"data"`
} `json:"data"`
Total int64 `json:"total"`
}
err = json.Unmarshal([]byte(send), &lmData)
if err != nil {
return goodsList
return goodsList, 0
}
for _, v := range lmData.Data.Data {
tmp := CommGoodsDetail(v)
goodsList = append(goodsList, tmp)
}
fmt.Println(string(zhios_third_party_utils.Serialize(goodsList)))
return goodsList
return goodsList, lmData.Total
}
func ProductUrl(args map[string]string) map[string]string {
//args = map[string]string{


Loading…
Cancel
Save