|
@@ -62,9 +62,9 @@ func ActivityProduct(args map[string]string) ([]TikTokGoods, int64) { |
|
|
} |
|
|
} |
|
|
var lmData struct { |
|
|
var lmData struct { |
|
|
Data struct { |
|
|
Data struct { |
|
|
Data []TikTokGoodsLm `json:"data"` |
|
|
|
|
|
|
|
|
Data []TikTokGoodsLm `json:"data"` |
|
|
|
|
|
Total int64 `json:"total"` |
|
|
} `json:"data"` |
|
|
} `json:"data"` |
|
|
Total int64 `json:"total"` |
|
|
|
|
|
} |
|
|
} |
|
|
err = json.Unmarshal([]byte(send), &lmData) |
|
|
err = json.Unmarshal([]byte(send), &lmData) |
|
|
if err != nil { |
|
|
if err != nil { |
|
@@ -75,7 +75,7 @@ func ActivityProduct(args map[string]string) ([]TikTokGoods, int64) { |
|
|
goodsList = append(goodsList, tmp) |
|
|
goodsList = append(goodsList, tmp) |
|
|
} |
|
|
} |
|
|
fmt.Println(string(zhios_third_party_utils.Serialize(goodsList))) |
|
|
fmt.Println(string(zhios_third_party_utils.Serialize(goodsList))) |
|
|
return goodsList, lmData.Total |
|
|
|
|
|
|
|
|
return goodsList, lmData.Data.Total |
|
|
} |
|
|
} |
|
|
func ProductUrl(args map[string]string) map[string]string { |
|
|
func ProductUrl(args map[string]string) map[string]string { |
|
|
//args = map[string]string{ |
|
|
//args = map[string]string{ |
|
|