diff --git a/src/rest/wechatapps/list.js b/src/rest/wechatapps/list.js index 9b90907..df6f172 100644 --- a/src/rest/wechatapps/list.js +++ b/src/rest/wechatapps/list.js @@ -11,7 +11,7 @@ module.exports = { return total = res.length }), new Promise(resolve => { - let sql = `select * from node_wechat_apps ${condition} limit ${(current-1)*size},${size}` + let sql = `select * from node_wechat_apps ${condition} limit ${(current-1)*size||0},${size||1}` dbUtils.query(sql).then(res => { records = res resolve()