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 }