|
@@ -7,7 +7,7 @@ import ( |
|
|
"strings" |
|
|
"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) |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.goods.search", param) |
|
|
var res cps_pdd.SearchGoods |
|
|
var res cps_pdd.SearchGoods |
|
|
json.Unmarshal([]byte(send), &res) |
|
|
json.Unmarshal([]byte(send), &res) |
|
@@ -46,4 +46,5 @@ func GetSearchGoods(keyArr map[string]string, param map[string]interface{}) { |
|
|
tmp["goods_sign"] = v.GoodsSign |
|
|
tmp["goods_sign"] = v.GoodsSign |
|
|
data = append(data, tmp) |
|
|
data = append(data, tmp) |
|
|
} |
|
|
} |
|
|
|
|
|
return data |
|
|
} |
|
|
} |