From fe8f1033069df5ea5239a91551885bfe94a85a37 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 15 May 2024 10:59:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=A4=9A=E5=A4=9A=E8=81=94=E7=9B=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pdd_union/goods.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdd_union/goods.go b/pdd_union/goods.go index 120b35f..0d34ed2 100644 --- a/pdd_union/goods.go +++ b/pdd_union/goods.go @@ -7,7 +7,7 @@ import ( "strings" ) -func GetSearchGoods(keyArr map[string]string, param map[string]interface{}) { +func GetSearchGoods(keyArr map[string]string, param map[string]interface{}) []map[string]string { send, _ := Send(keyArr, "pdd.ddk.oauth.goods.search", param) var res cps_pdd.SearchGoods json.Unmarshal([]byte(send), &res) @@ -46,4 +46,5 @@ func GetSearchGoods(keyArr map[string]string, param map[string]interface{}) { tmp["goods_sign"] = v.GoodsSign data = append(data, tmp) } + return data }