fix(qdreader): remove inferred adv task filters
This commit is contained in:
@@ -865,7 +865,7 @@ test('adv task does not report success when only unrelated task is finished afte
|
||||
assert.match(r.replies[0], /汇总:成功 0 \/ 失败 1 \/ 总计 1/);
|
||||
});
|
||||
|
||||
test('adv task reports failure when submitted target ids remain unfinished even if unrelated actionable task exists', () => {
|
||||
test('adv task follows upstream final-item completion instead of submitted-id inference', () => {
|
||||
const store = {
|
||||
qdreader_cookie_json: JSON.stringify({ '12345': cookie }),
|
||||
qdreader_user_bind_json: JSON.stringify({ '12345': 'user-a' }),
|
||||
@@ -891,19 +891,20 @@ test('adv task reports failure when submitted target ids remain unfinished even
|
||||
{ body: { code: 0, data: { headers: { 'QD-Sign': 'sig' } } } },
|
||||
{ statusCode: 200, body: { result: 9, message: '' } },
|
||||
{ body: { code: 0, data: { headers: { 'QD-Sign': 'sig' } } } },
|
||||
{ statusCode: 200, body: { result: 9, message: '' } },
|
||||
{ body: { code: 0, data: { headers: { 'QD-Sign': 'sig' } } } },
|
||||
{ statusCode: 200, body: { code: 0, Data: { VideoRewardTab: { TaskList: [
|
||||
{ TaskId: 'target-a', Title: '看视频领福利A', IsFinished: 0 },
|
||||
{ TaskId: 'target-b', Title: '看视频领福利B', IsFinished: 0 },
|
||||
{ TaskId: 'unrelated-actionable', Title: '其它视频福利', IsFinished: 1 },
|
||||
{ TaskId: '1165585369246138370', Title: '每日签到', IsFinished: 0 },
|
||||
{ TaskId: '1165585369246138370', Title: '每日签到', IsFinished: 1 },
|
||||
] } } } },
|
||||
],
|
||||
});
|
||||
assert.match(r.replies[0], /激励任务❌\(任务未完成\)/);
|
||||
assert.match(r.replies[0], /汇总:成功 0 \/ 失败 1 \/ 总计 1/);
|
||||
assert.match(r.replies[0], /激励任务✅\(已完成\)/);
|
||||
assert.match(r.replies[0], /汇总:成功 1 \/ 失败 0 \/ 总计 1/);
|
||||
});
|
||||
|
||||
test('adv task skips non-ad entries that must be handled by their own modules', () => {
|
||||
test('adv task iterates every unfinished upstream entry without local non-ad filtering', () => {
|
||||
const store = {
|
||||
qdreader_cookie_json: JSON.stringify({ '12345': cookie }),
|
||||
qdreader_user_bind_json: JSON.stringify({ '12345': 'user-a' }),
|
||||
@@ -965,7 +966,7 @@ test('adv task accepts nested data result 9 with empty message from sign gateway
|
||||
});
|
||||
|
||||
|
||||
test('adv task repeats same upstream fragment task until requested count before verification', () => {
|
||||
test('adv task submits each unfinished upstream list item once before verification', () => {
|
||||
const store = {
|
||||
qdreader_cookie_json: JSON.stringify({ '12345': cookie }),
|
||||
qdreader_user_bind_json: JSON.stringify({ '12345': 'user-a' }),
|
||||
|
||||
Reference in New Issue
Block a user