From 375ac321f7b97e11f71ee9f520a10eae23cebf5e Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 15 May 2024 20:23:00 +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 --- zhimeng/own_pdd_goods.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zhimeng/own_pdd_goods.go b/zhimeng/own_pdd_goods.go index d9f90fb..9cc0f13 100644 --- a/zhimeng/own_pdd_goods.go +++ b/zhimeng/own_pdd_goods.go @@ -27,6 +27,12 @@ func OwnPddSearchGoods(pid string, auth *model.SysUnionSet, postData map[string] param["access_token"] = gjson.Get(auth.KeyData, "accessToken").String() param["page"] = postData["p"] param["page_size"] = postData["size"] + if postData["p"] == "" || postData["keyword"] == nil { + param["page"] = "1" + } + if postData["size"] == "" || postData["size"] == nil { + param["page_size"] = "1" + } param["sort_type"] = "0" param["pid"] = gjson.Get(auth.KeyData, "pid").String() if postData["keyword"] != "" && postData["keyword"] != nil {