topfans/frontend/pages
zerosaturation d6573efcdd fix(frontend): align daily_login storage cache with backend task_completed
Header.vue 的 '日内去重' 逻辑原本在 reportEvent 走 .then() 时无条
件 setStorageSync(true),但 reportEvent 在后端 task_completed=false
时仍 HTTP 200 + code=0(例如 trigger_event=NULL / 任务不存在等),
.then() 照样跑,storage 缓存被错误标记为'已报',后续进 home 永远跳
过 reportEvent,daily_login 任务永远无法补完成(死锁)。

修后 .then((res) => ...) 按后端真实 task_completed 判定:
  - task_completed=true → setStorageSync + 清昨日(保持原优化)
  - task_completed=false → removeStorageSync(自愈,允许下次重试)

影响范围:仅 daily_login。其他 daily 任务(daily_browse_asset /
daily_place_asset)本来就没前端 storage cache,不受影响。

当前 daily_login 卡住的用户:手动清 storage 后重进 home 可触发自愈;
或等明天 5 点跨天后 storage key 自动失效(同日 5 点重置周期)。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 16:45:49 +08:00
..
ai-dazi
asset-detail chore(asset-detail): silence debug console.log in loadData 2026-07-27 16:37:54 +08:00
castlove feat:修改铸造消耗弹窗样式 2026-07-27 13:38:23 +08:00
components fix(frontend): align daily_login storage cache with backend task_completed 2026-07-27 16:45:49 +08:00
dashboard
discover
exhibition feat(frontend): daily-task reportEvent 接入 + exhibition 错位实现迁移 2026-07-27 15:47:01 +08:00
friends
login fix:修改登录页流程bug 2026-07-21 16:41:42 +08:00
mailbox
profile feat(frontend): daily-task reportEvent 接入 + exhibition 错位实现迁移 2026-07-27 15:47:01 +08:00
register
scan fix:修改登录页流程bug 2026-07-21 16:41:42 +08:00
square feat:修改铸造消耗弹窗样式 2026-07-27 13:38:23 +08:00
starbook feat(asset): restore starbook home More button by Asset.LikeCount ordering 2026-07-24 19:20:16 +08:00
starcity
support-activity
tasks feat(frontend): daily-task reportEvent 接入 + exhibition 错位实现迁移 2026-07-27 15:47:01 +08:00
welcome