2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 19:10:53 +08:00

更正体力模板列表显示问题

This commit is contained in:
ctrlcvs 2022-09-09 19:39:03 +08:00
parent 6339a04ad3
commit 4c2f8ca59c

View File

@ -381,8 +381,7 @@ export async function Note_appoint(e) {
let type = 0; let type = 0;
if (msg.includes("列表")) { if (msg.includes("列表")) {
let xlmsg=msg.replace("列表","")*1 || 1 let xlmsg=msg.replace("列表","")*1 || 1
let mstList = []; let sumCount=(urlType.length/80+0.49).toFixed(0);
let sumCount=(urlType.length/80+0.4).toFixed(0);
xlmsg=sumCount-xlmsg>-1?xlmsg:sumCount==0?1:sumCount; xlmsg=sumCount-xlmsg>-1?xlmsg:sumCount==0?1:sumCount;
let xxmsg=(xlmsg-1)<=0?0:80*(xlmsg-1) let xxmsg=(xlmsg-1)<=0?0:80*(xlmsg-1)
let count=0; let count=0;
@ -400,7 +399,7 @@ export async function Note_appoint(e) {
} }
item = index+1 + "." + item item = index+1 + "." + item
count++; count++;
if(Object.keys(mstList).length==80){ if(msgData.length==81){
break; break;
} }
if(index<xxmsg){ if(index<xxmsg){
@ -413,7 +412,7 @@ export async function Note_appoint(e) {
msgData.push(msg_pass) msgData.push(msg_pass)
} }
let endMsg=""; let endMsg="";
if(count<urlType.length-1){ if(count<urlType.length){
endMsg= `更多内容请翻页查看\n如:#体力模板列表2` endMsg= `更多内容请翻页查看\n如:#体力模板列表2`
}else{ }else{
endMsg= `已经到底了~~` endMsg= `已经到底了~~`