Browse Source

抖音本地

master
huangjiajun 5 months ago
parent
commit
51fbbf354d
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      tik_tok/csjp_life.go

+ 3
- 2
tik_tok/csjp_life.go View File

@@ -9,7 +9,7 @@ import (
)

//4.2.1 商品列表接口
func CsjpLifeGetGoods(args map[string]string) (*[]csjp.CsjpProductList, int64) {
func CsjpLifeGetGoods(args map[string]string) (*[]csjp.CsjpProductList, int64, bool) {
params := map[string]interface{}{
"count": zhios_third_party_utils.StrToInt(args["count"]),
}
@@ -44,9 +44,10 @@ func CsjpLifeGetGoods(args map[string]string) (*[]csjp.CsjpProductList, int64) {
fmt.Println(send)
cursor := gjson.Get(send, "data.cursor").Int()
data := gjson.Get(send, "data.product_list").String()
hasMore := gjson.Get(send, "data.has_more").Bool()
list := make([]csjp.CsjpProductList, 0)
json.Unmarshal([]byte(data), &list)
return &list, cursor
return &list, cursor, hasMore
}

//4.2.2 商品详情接口


Loading…
Cancel
Save