From e25af3b6ead9a45f38773832833b87908fdf9ba9 Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Sun, 21 Aug 2022 23:26:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=93=E5=8A=9B=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=88=97=E8=A1=A8=E8=BF=90=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/Note.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/Note.js b/apps/Note.js index 92e8302..05beb15 100644 --- a/apps/Note.js +++ b/apps/Note.js @@ -391,12 +391,12 @@ export async function Note_appoint(e) { nickname = info.card || info.nickname } if (msg.includes("列表")) { - let xlmsg=msg.replace("列表","") || 1 + let xlmsg=msg.replace("列表","")*1 || 1 let mstList = []; let sumCount=(urlType.length/80).toFixed(0); - xlmsg=sumCount-xlmsg>-1?xlmsg:sumCount; + xlmsg=sumCount-xlmsg>-1?xlmsg:sumCount==0?1:sumCount; urlType.unshift(`模板列表共,第${xlmsg}页,共${urlType.length}张,\n您可通过【#体力模板设置1】来绑定你需要的体力模板~\n请选择序号~~\n当前支持选择的模板有:`) - let xxmsg=(xlmsg-1)==0?0:80*(xlmsg-1) + let xxmsg=(xlmsg-1)<=0?0:80*(xlmsg-1) let count=0; for (let [index, item] of urlType.entries()) { let msg_pass = [];