From 972d78f0426718047299d2cdf43090c5ac581e13 Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Thu, 4 Aug 2022 09:37:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=BD=AC=E5=8F=91=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/Note.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/Note.js b/apps/Note.js index fce4295..b7a22f9 100644 --- a/apps/Note.js +++ b/apps/Note.js @@ -386,10 +386,10 @@ export async function Note_appoint(e) { if (msg.includes("列表")) { let xlmsg=msg.replace("列表","") || 1 let mstList = []; - let sumCount=(urlType.length/98).toFixed(0); + let sumCount=(urlType.length/80).toFixed(0); xlmsg=sumCount-xlmsg>-1?xlmsg:sumCount; - urlType.unshift(`模板列表共,第${xlmsg+1}页,共${urlType.length}张,请选择序号~~\n当前支持选择的模板有:`) - let count=0; + urlType.unshift(`模板列表共,第${xlmsg}页,共${urlType.length}张,请选择序号~~\n当前支持选择的模板有:`) + let xxmsg=(xlmsg-1)==0?0:80*(xlmsg-1) for (let [index, item] of urlType.entries()) { let msg_pass = []; let imgurl; @@ -404,10 +404,10 @@ export async function Note_appoint(e) { } item = index + "." + item } - if(msg_pass.length==98){ + if(Object.keys(mstList).length==80){ break; } - if(index<98*(xlmsg-1)){ + if(index