fix(douyu): 绑定失败提示仅弹一次,刷新页面不再重复提示历史失败任务

This commit is contained in:
yml2213
2026-08-02 13:51:48 +08:00
parent 555f179b41
commit c62f52a067
@@ -436,6 +436,14 @@ export default function DouyuTasksPage({ handbook }: { handbook: HandbookKind })
if (hasPaymentQrcode(task)) autoOpenedPayTaskIds.current.add(task.id); if (hasPaymentQrcode(task)) autoOpenedPayTaskIds.current.add(task.id);
// 历史兑换成功任务不触发自动复制,避免页面加载时打扰 // 历史兑换成功任务不触发自动复制,避免页面加载时打扰
if (exchangeTaskSucceeded(task)) autoCopiedExchangeTaskIds.current.add(task.id); if (exchangeTaskSucceeded(task)) autoCopiedExchangeTaskIds.current.add(task.id);
// 历史确认绑定失败任务不重复弹提示(只提示一次)
if (
task.task_type === 'confirm_bind'
&& ['failed', 'error'].includes(task.status)
&& (task.message || '').includes('待绑定游戏账号')
) {
autoNotifiedConfirmFailedTaskIds.current.add(task.id);
}
} }
autoOpenQrReady.current = true; autoOpenQrReady.current = true;
autoOpenEsportsBindReady.current = true; autoOpenEsportsBindReady.current = true;