fix(qdreader): tidy query and delete menu text

This commit is contained in:
2026-05-23 02:10:06 +08:00
parent 50824baae4
commit a8dc7233a7
3 changed files with 62 additions and 46 deletions
+10 -10
View File
@@ -333,11 +333,11 @@ test('query falls back to archived sign results after daily log was cleared', ()
qdreader_archive_json: JSON.stringify({ '2026-05-18': archiveRun }),
};
const r = runPlugin({ content: '启点查询', store, userId: 'user-a', listens: ['1'] });
assert.match(r.replies[1], /启点最近签到记录/);
assert.match(r.replies[1], /归档批次:2026-05-18/);
assert.match(r.replies[1], /汇总:✅ 1 1 总计 2/);
assert.match(r.replies[1], / 12\*\*\*45(主号):✅ 签到成功/);
assert.match(r.replies[1], / 67\*\*\*90(副号):❌ Cookie失效/);
assert.match(r.replies[1], /启点查询|最近签到/);
assert.match(r.replies[1], /批次:2026-05-18(归档)/);
assert.match(r.replies[1], /统计:成功 1 \/ 失败 1 \/ 总计 2/);
assert.match(r.replies[1], /- 12\*\*\*45\[主号\]:✅ 签到成功/);
assert.match(r.replies[1], /- 67\*\*\*90\[副号\]:❌ Cookie失效/);
});
test('query output shortens timestamps and long raw messages for readability', () => {
@@ -602,10 +602,10 @@ test('query command shows last sign log not account management', () => {
};
const r = runPlugin({ content: '启点查询', store, userId: 'user-a', listens: ['1'] });
assert.match(r.replies[0], /启点查询/);
assert.match(r.replies[1], /启点最近签到记录/);
assert.match(r.replies[1], /最近批次/);
assert.match(r.replies[1], /启点查询|最近签到/);
assert.match(r.replies[1], /批次:最近(最近)/);
assert.match(r.replies[1], /来源:定时任务/);
assert.match(r.replies[1], /汇总:✅ 1 1 总计 2/);
assert.match(r.replies[1], /统计:成功 1 \/ 失败 1 \/ 总计 2/);
assert.match(r.replies[1], /12\*\*\*45/);
assert.match(r.replies[1], /主号/);
assert.match(r.replies[1], /签到成功/);
@@ -629,7 +629,7 @@ test('query menu can inspect a single bound account', () => {
assert.match(r.replies[1], /请选择要查询的账号/);
assert.match(r.replies[1], /1\. 12\*\*\*45/);
assert.match(r.replies[1], /2\. 67\*\*\*90/);
assert.match(r.replies[2], /启点单账号最近签到记录/);
assert.match(r.replies[2], /启点查询|单账号/);
assert.match(r.replies[2], /67\*\*\*90/);
assert.match(r.replies[2], /副号/);
assert.doesNotMatch(r.replies[2], /12\*\*\*45/);
@@ -683,7 +683,7 @@ test('account menu first screen lists accounts and positive number opens config'
assert.match(r.replies[0], /账号列表如下/);
assert.match(r.replies[0], /1、12\*\*\*45\[主号\]/);
assert.match(r.replies[0], /2、67\*\*\*90\[副号\]/);
assert.match(r.replies[0], /负编号删除账号/);
assert.match(r.replies[0], /-删除账号,例如 -1/);
assert.match(r.replies[1], /启点账号详情/);
assert.match(r.replies[1], /67\*\*\*90/);
assert.match(r.replies[1], /账号操作/);