|
@@ -27,6 +27,12 @@ func OwnPddSearchGoods(pid string, auth *model.SysUnionSet, postData map[string] |
|
|
param["access_token"] = gjson.Get(auth.KeyData, "accessToken").String() |
|
|
param["access_token"] = gjson.Get(auth.KeyData, "accessToken").String() |
|
|
param["page"] = postData["p"] |
|
|
param["page"] = postData["p"] |
|
|
param["page_size"] = postData["size"] |
|
|
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["sort_type"] = "0" |
|
|
param["pid"] = gjson.Get(auth.KeyData, "pid").String() |
|
|
param["pid"] = gjson.Get(auth.KeyData, "pid").String() |
|
|
if postData["keyword"] != "" && postData["keyword"] != nil { |
|
|
if postData["keyword"] != "" && postData["keyword"] != nil { |
|
|