zerosaturation
|
83999995f5
|
refactor(frontend): consolidate user storage read via getStoredUser helper
uni.getStorageSync('user') 在 key 从未写过的 UniApp 平台下默认返回 ""(空串)
而非 null/undefined,旧式 `JSON.parse(uni.getStorageSync('user')) || {}` 在
parse 阶段直接抛 `SyntaxError: Unexpected end of JSON input`,导致 quickLogin
setup 崩溃,并触发 Vue 二次告警 `Invalid vnode type: undefined`。
新增 utils/getStoredUser.js 单点封装,统一处理:
- 空值/损坏 JSON 兜底(返回 null,不抛)
- 与 store/modules/user.js 初始化块同源守卫
- 失败 warn 级别日志,不影响业务
替换全库 16 处不安全 `JSON.parse(userStr)` 调用:
composables/useLaserMint.js composables/useShare.js
utils/guideConfig.js utils/preloadApi/core.js
pages/castlove/lenticular/lenticular-result.vue
pages/support-activity/index.vue pages/support-activity/components/{TopRanking,ActionBar}.vue
pages/components/{Header,ShareModal,ShareReportButtons}.vue
pages/tasks/{GuideModal,daily-tasks}.vue
pages/asset-detail/asset-detail.vue pages/exhibition/exhibition.vue
pages/profile/profile.vue pages/login/quickLogin.vue(原崩点)
净 -18 行,17 文件改动 + 1 文件新增。后续如需支持多 key(如 'adminUser'),
把 getStoredUser 扩成泛型 getStoredJSON(key) 即可。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-07-27 17:16:49 +08:00 |
|
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 |
|
zerosaturation
|
bf92ab3ac8
|
feat:修改路由
|
2026-07-13 15:23:50 +08:00 |
|
zerosaturation
|
74853800b6
|
feat:增加二维码验证真伪的功能
|
2026-07-13 11:22:56 +08:00 |
|
|
|
5625f6ac28
|
feat:增加预加载接口
|
2026-07-09 13:27:25 +08:00 |
|
zerosaturation
|
37a3f292df
|
feat:访问他人展览页面修改
|
2026-06-23 22:29:39 +08:00 |
|
zerosaturation
|
7eb6dad434
|
feat:新增举报和反馈功能
|
2026-06-22 17:19:48 +08:00 |
|
|
|
2d4fbc4a5b
|
feat:修改活动页面
|
2026-06-17 15:10:55 +08:00 |
|
|
|
a2d36cb7a0
|
feat:增加主要刷新
|
2026-06-16 15:19:53 +08:00 |
|
zerosaturation
|
271e0350c7
|
feat:重构code状态码
|
2026-06-15 16:28:35 +08:00 |
|
zerosaturation
|
71b8e454ee
|
feat: 样式调整
|
2026-06-04 15:57:42 +08:00 |
|
|
|
f768613509
|
feat: 修改页面bug
|
2026-06-04 00:51:29 +08:00 |
|
|
|
463e6cc008
|
feat:新增数据看板
|
2026-06-03 01:20:51 +08:00 |
|
zerosaturation
|
a7854a4fe7
|
feat:修改菜单路由
|
2026-06-02 16:57:54 +08:00 |
|
|
|
3c7960e1c5
|
image:修改图片
|
2026-06-02 16:56:28 +08:00 |
|
|
|
7bc6c7e535
|
feat: 增加主页的动画
|
2026-06-02 16:00:58 +08:00 |
|
zerosaturation
|
e1829b2296
|
feat: 修改短信认证bug
|
2026-06-02 15:43:57 +08:00 |
|
|
|
60db94e377
|
style:修改前端样式
|
2026-06-01 15:06:35 +08:00 |
|
zerosaturation
|
3a2575c78e
|
style: 修改header的水晶样式
|
2026-05-31 20:52:21 +08:00 |
|
zerosaturation
|
6acf423a26
|
feat: 修改docket配置
|
2026-05-29 22:15:47 +08:00 |
|
|
|
10bf5b9578
|
feat:修改铸造选择卡片滑动bug异常
|
2026-05-28 22:27:31 +08:00 |
|
|
|
59fdac5bc2
|
style:修改主页样式和个人页样式
|
2026-05-28 17:46:09 +08:00 |
|
zerosaturation
|
b8e462f9b5
|
feat:修改广场页面,铸造页面
|
2026-05-26 19:26:27 +08:00 |
|
zerosaturation
|
0852f96436
|
feat:去掉重复的点赞约束
|
2026-05-25 19:03:35 +08:00 |
|
zerosaturation
|
ee0433464f
|
feat: 修改铸造消耗确认框和新增批量购买道具的功能,修改回退按钮的颜色
|
2026-05-22 00:14:28 +08:00 |
|
zerosaturation
|
bb797ebf87
|
feat: 修改双击点赞的逻辑和处理收益记录的bug
|
2026-05-21 10:45:47 +08:00 |
|
zerosaturation
|
7b8fba5701
|
feat: 添加实时查询余额的接口
|
2026-05-19 18:50:57 +08:00 |
|
zerosaturation
|
5f4a443a93
|
feat: 新增余额不足不能铸造的功能提示,新增详细页面图片正常显示,docker修改配置
|
2026-05-18 18:32:58 +08:00 |
|
|
|
6e09afe843
|
feat: 替换字体
|
2026-05-13 16:34:50 +08:00 |
|
zerosaturation
|
8b03809c7a
|
feat: 修改活动小按钮改为动态
|
2026-05-13 14:41:17 +08:00 |
|
zerosaturation
|
44ba103e64
|
feat: 修改字体
|
2026-05-12 11:26:32 +08:00 |
|
zerosaturation
|
8652f1af2e
|
style: 样式修改
|
2026-05-11 17:56:16 +08:00 |
|
zerosaturation
|
958dffce6a
|
feat: 修改跳转小屋的路由,和修改header的样式
|
2026-05-07 17:55:13 +08:00 |
|
zerosaturation
|
4b2f43ecc5
|
feat: 新增个人页
|
2026-05-06 10:51:08 +08:00 |
|
zerosaturation
|
ef257261f3
|
feat: 重构广场页面
|
2026-05-06 10:50:53 +08:00 |
|
zerosaturation
|
1ebc23b832
|
fix: 修改遗漏bug
|
2026-04-22 18:14:56 +08:00 |
|
zerosaturation
|
dd838fccc4
|
style: 修改每日任务和引导任务的样式
|
2026-04-22 15:08:05 +08:00 |
|
zerosaturation
|
bebdc13c80
|
fix: 修改任务系统的bug
|
2026-04-17 17:17:32 +08:00 |
|
zerosaturation
|
4e13c86aa4
|
fix: 修改任务系统奖励修复
|
2026-04-15 14:11:07 +08:00 |
|
zerosaturation
|
a5e3008819
|
feat: 增加health健康检查和替换前端跳转路由api
|
2026-04-14 00:10:24 +08:00 |
|
zerosaturation
|
9a2d597e2b
|
feat: 修改遗留bug
|
2026-04-12 16:05:13 +08:00 |
|
zerosaturation
|
21630016f5
|
提交前端代码
|
2026-04-07 23:08:49 +08:00 |
|