From 965c69827fb448b1c1c119153a36be903a5252aa Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 23 May 2024 18:04:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=A4=9A=E5=A4=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pdd_union/goods.go | 3 +++ 1 file changed, 3 insertions(+) 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