diff --git a/pdd_union/goods.go b/pdd_union/goods.go index 2197555..43f4351 100644 --- a/pdd_union/goods.go +++ b/pdd_union/goods.go @@ -100,6 +100,9 @@ func GetSearchGoodsDetail(keyArr map[string]string, param map[string]interface{} json.Unmarshal([]byte(send), &res) data := make([]map[string]string, 0) for _, v := range res.GoodsSearchResponse.GoodsList { + if v.GoodsName == "" { + continue + } tmp := make(map[string]string) tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId) tmp["goods_title"] = v.GoodsName