Revert "fix(qdreader): split archive and sign cron plugins"

This reverts commit 2413bd5b12.
This commit is contained in:
2026-05-20 12:16:36 +08:00
parent 2413bd5b12
commit d09073c33c
8 changed files with 23 additions and 1668 deletions
-10
View File
@@ -557,13 +557,3 @@ test('user cannot overwrite another user bound cookie', () => {
assert.equal(JSON.parse(r.store.qdreader_cookie_json)['12345'], cookie);
assert.equal(JSON.parse(r.store.qdreader_user_bind_json)['12345'], '987654321');
});
test('qdreader cron is split into simple independent schedules for Autman compatibility', () => {
const signCode = fs.readFileSync(new URL('../plugins/qdreader/qdreader_sign_autman.js', import.meta.url), 'utf8');
const archiveCode = fs.readFileSync(new URL('../plugins/qdreader/qdreader_archive_autman.js', import.meta.url), 'utf8');
assert.match(signCode, /\/\/\[cron: 1 7 \* \* \*\]/);
assert.doesNotMatch(signCode, /\/\/\[cron: 1 0,7 \* \* \*\]/);
assert.match(archiveCode, /\/\/\[cron: 1 0 \* \* \*\]/);
assert.doesNotMatch(archiveCode, /\/\/\[rule:/);
assert.match(archiveCode, /日志归档插件/);
});