typo: 部分描述调整

This commit is contained in:
bietiaop 2024-07-13 17:55:48 +08:00
parent 27171c5727
commit 4f6eaa979c
2 changed files with 5 additions and 4 deletions

View file

@ -106,8 +106,8 @@ export class GachaLog extends ZZZPlugin {
const { data, count } = await updateGachaLog(key, uid); const { data, count } = await updateGachaLog(key, uid);
let msg = `抽卡记录更新成功,共${Object.keys(data).length}个卡池`; let msg = `抽卡记录更新成功,共${Object.keys(data).length}个卡池`;
for (const name in data) { for (const name in data) {
msg += `\n${name}一共${data[name].length}条记录,新增${ msg += `\n${name}新增${count[name] || 0}条记录,一共${
count[name] || 0 data[name].length
}条记录`; }条记录`;
} }
await this.reply(msg); await this.reply(msg);

View file

@ -16,7 +16,7 @@ export class Panel extends ZZZPlugin {
fnc: 'refreshPanel', fnc: 'refreshPanel',
}, },
{ {
reg: `${rulePrefix}面板列表$`, reg: `${rulePrefix}面板(列表)?$`,
fnc: 'getCharPanelList', fnc: 'getCharPanelList',
}, },
{ {
@ -52,8 +52,9 @@ export class Panel extends ZZZPlugin {
await this.getPlayerInfo(); await this.getPlayerInfo();
let str = '面板列表获取成功,共计' + noteData.length + '个角色:'; let str = '面板列表获取成功,共计' + noteData.length + '个角色:';
for (const item of noteData) { for (const item of noteData) {
str += '\n' + item.name_mi18n; str += item.name_mi18n + '、';
} }
str = str.slice(0, -1);
await this.reply(str); await this.reply(str);
// const finalData = { // const finalData = {
// list: noteData, // list: noteData,