Commit 3422f478 by wkliang

兼容 string page limit

parent af3fadfb
......@@ -49,6 +49,16 @@ class ActionAPI extends APIBase {
return system.getResult(null, '不能选择组合产品为子产品')
}
}
if (isNaN(parseInt(action_body.limit))) {
return system.getResult(null, `can't use limit of except number`)
} else {
action_body.limit = parseInt(action_body.limit)
}
if (isNaN(parseInt(action_body.page))) {
return system.getResult(null, `can't use page of except number`)
} else {
action_body.page = parseInt(action_body.page)
}
result = await this.productSve.createOrUpdate(action_body)
break
case 'getAllDic':
......
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