Commit a778c194 by 孙亚楠

d

parent b2e44ddf
...@@ -33,6 +33,12 @@ class ActionAPI extends APIBase { ...@@ -33,6 +33,12 @@ class ActionAPI extends APIBase {
let result let result
switch (action_type) { switch (action_type) {
case 'getPage': case 'getPage':
if (!action_body.types) {
delete action_body.types
}
if (action_body.keywords == null || action_body.keywords == "") {
delete action_body.keywords
}
result = await this.productSve.getPage(Number(action_body.page), Number(action_body.limit), result = await this.productSve.getPage(Number(action_body.page), Number(action_body.limit),
action_body.types, action_body.keywords) action_body.types, action_body.keywords)
break break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment