瀏覽代碼

拼多多商品

master
huangjiajun 6 月之前
父節點
當前提交
0e33cdb806
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      pdd_union/goods.go

+ 6
- 0
pdd_union/goods.go 查看文件

@@ -13,6 +13,9 @@ func GetRecommendGoods(keyArr map[string]string, param map[string]interface{}) [
json.Unmarshal([]byte(send), &res)
data := make([]map[string]interface{}, 0)
for _, v := range res.GoodsBasicDetailResponse.List {
if v.GoodsName == "" {
continue
}
tmp := make(map[string]interface{})
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId)
tmp["goods_title"] = v.GoodsName
@@ -56,6 +59,9 @@ func GetSearchGoods(keyArr map[string]string, param map[string]interface{}) []ma
json.Unmarshal([]byte(send), &res)
data := make([]map[string]interface{}, 0)
for _, v := range res.GoodsSearchResponse.GoodsList {
if v.GoodsName == "" {
continue
}
tmp := make(map[string]interface{})
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId)
tmp["goods_title"] = v.GoodsName


Loading…
取消
儲存