fix: remove qdreader message box time gate
This commit is contained in:
@@ -93,7 +93,6 @@ test('README documents QDReader task schedule windows and required endpoints', (
|
||||
'checkinexchangepage',
|
||||
'exchangegoods',
|
||||
'chaptercardwithbook',
|
||||
'20:00-22:00',
|
||||
'magev6.if.qidian.com/argus/api/v2/message/pullmessage',
|
||||
'BigInt',
|
||||
]) assert.match(readme, new RegExp(token.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')));
|
||||
@@ -1161,7 +1160,7 @@ test('daily task follows upstream sequence: surprise task, one-ad task, then thr
|
||||
});
|
||||
|
||||
|
||||
test('message box skips outside Beijing 20-22 window without calling message API', () => {
|
||||
test('message box runs outside former Beijing 20-22 window and calls message API', () => {
|
||||
const store = {
|
||||
qdreader_cookie_json: JSON.stringify({ '12345': cookie }),
|
||||
qdreader_user_bind_json: JSON.stringify({ '12345': 'user-a' }),
|
||||
@@ -1178,11 +1177,14 @@ test('message box skips outside Beijing 20-22 window without calling message API
|
||||
{ statusCode: 200, body: { code: 1, msg: '今日已签到' } },
|
||||
{ body: { code: 0, data: { headers: { 'QD-Sign': 'sig' } } } },
|
||||
{ statusCode: 200, body: { code: 1, msg: '无可领取礼包' } },
|
||||
{ body: { code: 0, data: { headers: { 'QD-Sign': 'sig' } } } },
|
||||
{ statusCode: 200, body: { code: 0, Data: { UserList: [] } } },
|
||||
],
|
||||
});
|
||||
assert.match(r.replies[0], /大咖荐书⏭\(不在执行时间 20:00-22:00,已跳过\)/);
|
||||
assert.doesNotMatch(r.replies[0], /不在执行时间|已跳过/);
|
||||
assert.match(r.replies[0], /大咖荐书✅\(无消息\)/);
|
||||
assert.match(r.replies[0], /汇总:成功 1 \/ 失败 0 \/ 总计 1/);
|
||||
assert.equal(r.calls.some(c => /message\/pullmessage/.test(c.url)), false);
|
||||
assert.equal(r.calls.some(c => /message\/pullmessage/.test(c.url)), true);
|
||||
});
|
||||
|
||||
test('message box uses upstream appappend/fromId/interaction reward chain instead of parameter-error one-shot', () => {
|
||||
|
||||
Reference in New Issue
Block a user