topfans/frontend
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
..
components feat:修改铸造消耗弹窗样式 2026-07-27 13:38:23 +08:00
composables
config
hybrid/html
pages fix(frontend): align daily_login storage cache with backend task_completed 2026-07-27 16:45:49 +08:00
static feat:修改图片尺寸和uni配置 2026-07-27 12:48:02 +08:00
store fix(frontend): clear all daily_login_completed_* keys on logout 2026-07-27 16:36:58 +08:00
uni_modules fix:修改一键登录页到首页的bug 2026-07-21 15:00:49 +08:00
uniCloud-alipay
utils fix:修改登录页流程bug 2026-07-21 16:41:42 +08:00
.env.development
.env.production
.gitignore
App.vue feat:修改图片尺寸和uni配置 2026-07-27 12:48:02 +08:00
index.html
main.js
manifest.json feat:修改图片尺寸和uni配置 2026-07-27 12:48:02 +08:00
oss-upload-test(1).html
package.json
pages.json feat:修改详细页面,修改为每个类型的页面不对 2026-07-15 19:16:28 +08:00
RANKING_API_SPECIFICATION.md
uni.promisify.adaptor.js
uni.scss