fix: prompt remark after qdreader quick submit

This commit is contained in:
2026-05-17 19:59:52 +08:00
parent 92bf1b3f95
commit 83e46e7065
3 changed files with 25 additions and 4 deletions
+7
View File
@@ -91,6 +91,13 @@ test('manual cookie save falls back to QDHeader embedded UserId before ywguid',
assert.equal(JSON.parse(r.store.qdreader_cookie_json)['475700975'], streamCookie);
});
test('quick submit prompts remark after saving cookie', () => {
const r = runPlugin({ content: '启点ck ' + cookie, userId: 'user-a', listens: ['主号'] });
assert.match(r.replies.join('\n'), /是否为该账号添加备注/);
assert.match(r.replies.join('\n'), /备注: 主号/);
assert.equal(JSON.parse(r.store.qdreader_remark_json)['12345'], '主号');
});
test('manual sign and cron sign both call sign gateway then qidian checkin', () => {
const store = {
qdreader_cookie_json: JSON.stringify({ '12345': cookie }),