jif2.zhang
|
d1f36b3b8f
|
修复扫码弹窗一闪而过
Docker Build and Push / build-image (push) Successful in 4m5s
现象: 米家授权过期后, 扫码弹窗从底部弹出但瞬间消失, 看不到二维码.
三处缺陷:
1. 服务端 startQrLogin() 在已有流程运行时提前 return, 未清 done.
上一轮成功残留的 done=true 会让前端第一次轮询就拿到
{running:false, done:true}, 误判为扫码成功立即关窗.
改为复用流程时显式返回 done:false.
2. 前端 AuthPopup 的成功/失败判定没有幂等保护, 且 onClose/onOk 是
父组件每次渲染新建的函数. 父级轮询触发重渲染后, 回调身份变化
会波及弹窗关闭路径. 改用 ref 持有最新回调 + settledRef 保证
一轮流程只结算一次.
3. 弹窗遮罩绑定 onMaskClick=cancel, 手机端极易误触; 关闭遮罩点击,
只允许显式点「取消」关闭.
注意: 前端需重新构建发布, 服务端需重启后生效.
|
2026-10-24 06:30:00 +08:00 |
|
jif2.zhang
|
95b9985e8b
|
修复米家会话失效后不弹登录二维码
Docker Build and Push / build-image (push) Successful in 5m46s
根因一: 过期检测形同虚设
- @zythum02/mijia-api 的 refreshToken() 在本地凭证字段齐全时直接返回成功,
根本不发请求, 因此 checkAuth() 永远判定 ok, 过期后既不出横幅也不出扫码入口
- checkAuth() 改为真打一次 getHomesList() 验证 token; 成功缓存 5 分钟,
失败只缓存 30 秒(便于网络恢复后自愈); 增加并发探测合并; 状态未变不写库
- getStatus() 以实时探测结果为准, DB 里的 status 仅在探测为 unknown 时兜底,
避免残留的 ok 遮蔽已失效状态
根因二: 二维码图片 401 导致弹窗空白
- /api/mihome/reauthorize/qr-image 在 authRequired 之后, 而 <img src> 无法携带
Authorization 头, 图片请求被拒, 用户看到的是空白/裂图
- 新增 fetchMihomeQrImage(): 带 JWT fetch 后转 blob URL 给 <img>, 并在卸载/换码时释放
其他修复
- EnvView 的 load 依赖 [status] 且成功回调又 setStatus, 造成 /status 无限重复请求;
改为空依赖 + 函数式 setStatus; 首屏与重试走 ?force=1 强查
- 会话失效(非网络类错误)时自动弹出扫码窗, 每次挂载仅弹一次
- 扫码状态机新增 done 标记, 只有真正登录成功才算成功, 避免取消后误判
- 二维码 120s 超时自动续码(最多 2 次), 慢扫不再直接失败
- 取消后不再丢弃可能已成功的扫码结果
- scripts/mihome-login.mjs 适配 done 语义
- 同步更新设计文档 §5.2 / §5.4 / §6
注意: 前端需重新构建发布后生效。
|
2026-10-23 22:21:08 +08:00 |
|
jif2.zhang
|
7b4e59957b
|
修复容器内 news/oil 定时失效: 运行时镜像携带 scripts/ + axios 转生产依赖 + cron 脚本模块惰性加载降级
Docker Build and Push / build-image (push) Failing after 9m34s
|
2026-09-21 14:09:18 +08:00 |
|
jif2.zhang
|
1d69915cf3
|
米家调度独立模块注册, 避免被容器中无法加载的旧 cron.js 连带失效
Docker Build and Push / build-image (push) Successful in 4m36s
|
2026-09-21 11:52:24 +08:00 |
|
jif2.zhang
|
8e2c6ffa35
|
新增米家环境监控模块 (采集/聚合/历史/前端 EnvView) + CI 挂载米家凭证目录并自动应用迁移
Docker Build and Push / build-image (push) Successful in 6m54s
|
2026-09-21 11:42:58 +08:00 |
|
jif2.zhang
|
53f63e0986
|
新增 CI secrets 同步到注册中心的独立 workflow
Docker Build and Push / build-image (push) Successful in 10m57s
|
2026-09-20 20:32:54 +08:00 |
|
cheney
|
508419180c
|
调整App头部显示,固定头部和分类
Docker Build and Push / build-image (push) Successful in 4m56s
|
2026-08-08 19:40:39 +08:00 |
|
cheney
|
4f2becb99a
|
调整App头部显示,避免与系统消息栏重合
Docker Build and Push / build-image (push) Successful in 4m51s
|
2026-08-08 19:20:30 +08:00 |
|
cheney
|
2fa7c7fc70
|
remove pagespy
Docker Build and Push / build-image (push) Successful in 4m56s
|
2026-08-08 18:12:48 +08:00 |
|
cheney
|
1b330bdd4d
|
移除 reasonix.toml
Docker Build and Push / build-image (push) Successful in 5m0s
|
2026-08-08 11:44:12 +08:00 |
|
cheney
|
5822a01ed7
|
fix rust env
Android Build & Publish / build-android (push) Successful in 18m36s
|
2026-08-08 10:40:33 +08:00 |
|
cheney
|
b0bc1e9727
|
开放 http
Android Build & Publish / build-android (push) Failing after 2m12s
|
2026-08-08 10:32:28 +08:00 |
|
cheney
|
68998fa07e
|
token 名字修改
Android Build & Publish / build-android (push) Successful in 42m17s
|
2026-08-08 09:13:23 +08:00 |
|
cheney
|
d5a31e5366
|
修改签名脚本
Android Build & Publish / build-android (push) Failing after 39m54s
|
2026-08-08 08:28:49 +08:00 |
|
cheney
|
05ad191913
|
环境变量
Android Build & Publish / build-android (push) Failing after 23m5s
|
2026-08-08 07:52:39 +08:00 |
|
cheney
|
9ecbf8d8e0
|
更新脚本
Android Build & Publish / build-android (push) Failing after 18m32s
|
2026-08-08 07:01:50 +08:00 |
|
cheney
|
44d60471ca
|
fix: 修复登录成功但未跳转内部页面的竞态
Docker Build and Push / build-image (push) Successful in 6m12s
LoginPage.onSubmit 在 setUser 异步提交前手动 navigate(from),
切到受保护页时 user 仍为 null, 被 RequireAuth 立即踢回 /login,
导致提示登录成功却进不去内部页面。改为依赖组件顶部
<Navigate to={from} replace/> 在 user 就绪后可靠跳转。
|
2026-08-08 05:37:40 +08:00 |
|
cheney
|
60628775ac
|
ota 升级地址
Docker Build and Push / build-image (push) Successful in 5m9s
|
2026-08-07 18:11:43 +08:00 |
|
cheney
|
add3ff8831
|
修改 ota cicd
Docker Build and Push / build-image (push) Successful in 6m37s
|
2026-08-07 17:10:07 +08:00 |
|
cheney
|
22a36fb213
|
fix 打开 ota 授权
Docker Build and Push / build-image (push) Successful in 2m51s
|
2026-08-07 16:24:10 +08:00 |
|
cheney
|
a5bc8ef1f1
|
功能完成
Docker Build and Push / build-image (push) Successful in 2m53s
|
2026-08-07 14:56:27 +08:00 |
|
cheney
|
b9ec6fbe0b
|
油价集成
|
2026-08-07 14:36:57 +08:00 |
|
cheney
|
8999b29646
|
跟新 CICD,每次制作 ota 升级包
Docker Build and Push / build-image (push) Successful in 2m50s
|
2026-08-07 10:04:57 +08:00 |
|
cheney
|
4f5cdb4325
|
OTA
Docker Build and Push / build-image (push) Successful in 2m55s
|
2026-08-07 09:50:42 +08:00 |
|
cheney
|
dbe04b7da3
|
ota
|
2026-08-07 09:49:26 +08:00 |
|
cheney
|
ac8a4b8cd2
|
准备切换分支
|
2026-08-07 09:10:40 +08:00 |
|
cheney
|
6bacda05f8
|
fix bugs
Docker Build and Push / build-image (push) Successful in 3m2s
|
2026-08-06 17:43:21 +08:00 |
|
cheney
|
f2e53df25b
|
怎加版本
|
2026-08-06 17:27:23 +08:00 |
|
cheney
|
4f39f428bd
|
热加载
Docker Build and Push / build-image (push) Successful in 3m0s
|
2026-08-06 17:12:32 +08:00 |
|
cheney
|
eddddc56ae
|
完成基础功能
Docker Build and Push / build-image (push) Successful in 3m1s
|
2026-08-06 16:55:03 +08:00 |
|
cheney
|
4d02439ecb
|
更新首页
|
2026-08-06 16:41:47 +08:00 |
|
cheney
|
547181d333
|
更新首页
|
2026-08-06 15:39:59 +08:00 |
|
cheney
|
ec15f40323
|
数据源修改
|
2026-08-06 15:24:55 +08:00 |
|
cheney
|
b10b1c44db
|
修改数据获取方式
|
2026-08-06 14:00:11 +08:00 |
|
cheney
|
4da9489662
|
修改数据获取方法
|
2026-08-06 13:58:56 +08:00 |
|
cheney
|
7fcd0c9569
|
页面调整
|
2026-08-06 11:26:54 +08:00 |
|
Cheney
|
7f72bf809b
|
更换 UI
|
2026-08-06 09:32:15 +08:00 |
|
cheney
|
28d1b5d1c6
|
添加调试,网络正常
Docker Build and Push / build-image (push) Successful in 2m45s
|
2026-08-06 08:58:22 +08:00 |
|
cheney
|
789505fb34
|
fix
Docker Build and Push / build-image (push) Successful in 3m23s
|
2026-08-04 09:33:52 +08:00 |
|
Cheney
|
3d84e8d8f7
|
停止追踪 dist 目录
|
2026-08-04 09:33:31 +08:00 |
|
Cheney
|
79341bb8cc
|
save
Docker Build and Push / build-image (push) Successful in 3m16s
|
2026-08-03 18:09:08 +08:00 |
|
cheney
|
0f74602036
|
unsigned 编译通过
|
2026-08-03 18:08:19 +08:00 |
|
cheney
|
08b3655a38
|
修改架构,移动端优先。
save
|
2026-08-03 18:05:50 +08:00 |
|
cheney
|
1c07b417ce
|
暂时还是内网部署
Docker Build and Push / build-image (push) Successful in 5m27s
|
2026-04-26 17:03:43 +08:00 |
|
cheney
|
becf0364ad
|
对比图完成
|
2026-04-26 11:41:39 +08:00 |
|
cheney
|
342042577d
|
沪深300 与汇率负相关
|
2026-04-26 08:54:19 +08:00 |
|
cheney
|
f2824d88f7
|
获取沪深 300 数据
Docker Build and Push / build-image (push) Successful in 4m44s
|
2026-04-25 20:08:03 +08:00 |
|
cheney
|
306af38fdc
|
增加数据-人民币汇率
|
2026-04-25 19:48:19 +08:00 |
|
cheney
|
d232591a38
|
添加汇率数据
|
2026-04-25 19:22:57 +08:00 |
|
cheney
|
b61cf9628e
|
添加汇率 scraper
|
2026-04-25 12:16:41 +08:00 |
|