From 092be41f900149df98fe5e7f261696a00d757e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 29 Apr 2020 10:16:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=B6=E8=B1=B9=E6=9F=A5=E8=AF=A2api?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/yinbaoapi/yinbaoapi.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/platformapi/yinbaoapi/yinbaoapi.go b/platformapi/yinbaoapi/yinbaoapi.go index 602fb404..dc1b063e 100644 --- a/platformapi/yinbaoapi/yinbaoapi.go +++ b/platformapi/yinbaoapi/yinbaoapi.go @@ -308,8 +308,15 @@ type QueryProductPagesResult struct { //分页查询所有商品 //http://pospal.cn/openplatform/productapi.html#queryProductPages func (a *API) QueryProductPages(postBackParameter *PostBackParameter) (queryProductPagesResult *QueryProductPagesResult, err error) { + var mapP map[string]interface{} + if postBackParameter != nil { + mapP = map[string]interface{}{ + "parameterType": postBackParameter.ParameterType, + "parameterValue": postBackParameter.ParameterValue, + } + } result, err := a.AccessAPI("productOpenApi/queryProductPages", map[string]interface{}{ - "postBackParameter": postBackParameter, + "postBackParameter": mapP, }) if err == nil { utils.Map2StructByJson(result["data"], &queryProductPagesResult, false)