From a68b911d39524a8a95f27753af5c950065ca5844 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 20 May 2022 10:09:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AD=9B=E9=80=89=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/wechatapps/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()