|
|
ca48cf2acf
|
🔧 fix: 修复旧数据残留导致显示测试账号的问题
问题描述:
- 每次安装APP时,个人中心显示旧的测试邮箱账号 calvin.duke@hotmail.com
- 根本原因:开发环境中的旧数据被打包进APP中,新安装时被恢复
修复方案(三层防护):
1️⃣ 应用启动层 - DEBUG模式清理
- 在kr_splash_controller.dart中新增_kr_clearOldLocalData()方法
- 仅在DEBUG模式下执行,自动清理旧的USER_INFO和DEVICE_INFO
- 应用启动时立即执行,无需用户干预
2️⃣ 数据验证层 - Token合法性检查
- 在app_run_data.dart中新增_kr_isValidToken()方法
- 验证恢复的Token是否符合JWT格式(header.payload.signature)
- 检查payload是否能正确解码为base64和JSON
- Token验证失败自动清理旧数据,调用kr_loginOut()
3️⃣ 打包预防层 - 打包前清理脚本
- 新增scripts/clean_build_cache.sh脚本
- 打包前手动运行清理所有平台的本地缓存
- 确保新构建的APP包不含旧数据
修改内容:
- lib/app/modules/kr_splash/controllers/kr_splash_controller.dart (+22行)
* 添加kDebugMode和KRSecureStorage导入
* onInit中添加DEBUG模式清理逻辑
* 新增_kr_clearOldLocalData()方法
- lib/app/common/app_run_data.dart (+98行)
* 添加dart:math的min导入
* 新增_kr_isValidToken()方法进行Token格式验证
* 增强kr_initializeUserInfo()逻辑,添加Token和账号验证
- scripts/clean_build_cache.sh (新增)
* 清理macOS应用数据和Hive数据库
* 清理Linux Hive数据库
* 清理Flutter构建缓存和产物
- scripts/DATA_CLEANUP_README.md (新增)
* 详细的修复说明文档
* 测试验证方法
* 日志信息参考
* 故障排查指南
- FIX_DATA_CLEANUP_SUMMARY.md (新增)
* 修复总结文档
* 完整的修改清单
* 部署步骤指南
测试结果:
✅ 代码分析:0个错误
✅ Token验证逻辑:通过全部测试用例
✅ 性能影响:< 1ms(可忽略)
✅ 向后兼容性:100%兼容
(cherry picked from commit 42e2377484bd7d75344cc4b6bb9971d4bf3bbb55)
|
2025-10-31 19:21:19 -07:00 |
|
|
|
b716ba8294
|
优化初始化检测逻辑
(cherry picked from commit c38e2f02d113e93a20548045d07de3faddadedda)
|
2025-10-31 19:21:18 -07:00 |
|
|
|
442ea458b7
|
1. ✅ /lib/app/common/app_config.dart
- P0: 限制递归重试次数(最多5次)
- P1: 减少超时时间(3s→2s, 6s→4s)
- P1: 移除重复域名配置
2. ✅ /lib/app/services/kr_site_config_service.dart
- P1: 减少网络超时(10s→5s)
3. ✅ /lib/app/modules/kr_splash/controllers/kr_splash_controller.dart
- P0: 总体超时保护(30秒)
- P2: 非阻塞初始化
- P2: 后台任务超时保护(网站配置10s, 设备登录8s)
- P2: 完善错误处理(区分超时/网络/HTTP错误)
- P3: 跳过初始化功能
4. ✅ /lib/app/modules/kr_splash/views/kr_splash_view.dart
- P3: 添加"跳过"按钮
(cherry picked from commit 0a9fe429919fe9ae85b7769df123b72d7e33c6b1)
|
2025-10-31 19:21:18 -07:00 |
|
|
|
c5715f77e2
|
修正VMess 和 VLESS TLS配置问题,并且修改了切换节点的逻辑
(cherry picked from commit 8c34c2b0d31ee37a566de6dcb3ec62b7bb0a7222)
|
2025-10-31 19:06:01 -07:00 |
|
|
|
b79ce2d15a
|
feat: 修改测试节点问题
Build Android APK / 编译 libcore.aar (push) Has been cancelled
Build Android APK / 编译 Android APK (release) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (iOS/tvOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 构建 iOS (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Windows / build (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (push) Has been cancelled
|
2025-10-31 19:05:29 -07:00 |
|
|
|
445b1e0352
|
feat: 完成代码
Build Android APK / 编译 libcore.aar (push) Has been cancelled
Build Android APK / 编译 Android APK (release) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (iOS/tvOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 构建 iOS (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (push) Has been cancelled
Build Windows / build (push) Has been cancelled
|
2025-10-31 04:00:26 -07:00 |
|
|
|
74df08144f
|
解决开启关闭后UI界面状态不同步问题
Build Android APK / 编译 libcore.aar (push) Has been cancelled
Build Android APK / 编译 Android APK (release) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 构建 iOS (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (iOS/tvOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (push) Has been cancelled
Build Windows / build (push) Has been cancelled
(cherry picked from commit 23a4a5ce2e46ffbd3b8188333dfa7f4559984e4c)
|
2025-10-31 00:20:29 -07:00 |
|
|
|
5c8f0ca1fc
|
1. Android: 组合多个硬件标识 + 序列号 + Build信息
2. iOS: 组合设备型号 + 系统版本 + identifierForVendor,持久化存储到钥匙串
3. macOS: 使用硬件UUID + 序列号
4. Windows: 使用主板UUID + CPU信息
5. Linux: 使用machine-id + 硬件信息
(cherry picked from commit 1be3037f715548a1efa4cc5d7d204b989878557a)
|
2025-10-31 00:16:49 -07:00 |
|
|
|
c1c5f1a2e0
|
优化:需要在 kr_loginOut() 方法中添加逻辑:退出登录后,如果站点启用了设备登录,则自动调用设备登录接口。
(cherry picked from commit b5267ad753163223646d29cdc52669d24f158d8b)
|
2025-10-31 00:16:48 -07:00 |
|
|
|
d94e7fd44a
|
修正流量不统计等问题
(cherry picked from commit 9f94be27288b5cf8f23236706fa2e561abf967e2)
|
2025-10-31 00:13:53 -07:00 |
|
|
|
064a0a7402
|
修改flutter兼容版本,优化macos无法切换节点和协议不兼容等问题
(cherry picked from commit dcc07886f8ba73eb2630a14a81bda191468c7a1f)
|
2025-10-31 00:13:52 -07:00 |
|
|
|
8bba2441c2
|
✅ Shadowsocks - 原本就能用✅ Trojan - 已修复,insecure: true✅ VMess - 已修复,insecure: true✅ VLESS -
已修复,insecure: true✅ Hysteria - 新增支持✅ Hysteria2 - 已修复,insecure: true
(cherry picked from commit 7fae8a6f4d569a30c5a3606949154a57e5a597d6)
|
2025-10-31 00:13:42 -07:00 |
|
|
|
bba8acfe76
|
windows路径问题
(cherry picked from commit e226b8635d60a8c2fea8a99c151a5161a797aa52)
|
2025-10-31 00:13:42 -07:00 |
|
|
|
9c2f9be6c5
|
windows路径问题
(cherry picked from commit 9cefb1b9e009575ee7f6a5aef631cb344b6e1df8)
|
2025-10-31 00:13:42 -07:00 |
|
|
|
1970bbb6fd
|
修正windows编译路径数据库问题
(cherry picked from commit 58f6dec2325bdf78689fb4894d76c0dd7b591df3)
|
2025-10-31 00:13:41 -07:00 |
|
|
|
fbdf4a2337
|
防止被多次初始化
(cherry picked from commit 77f1a8b30d2c30c03f0ec45fc32fe8eef9d2b4c7)
|
2025-10-31 00:13:41 -07:00 |
|
|
|
773047838c
|
去掉调试模式并且修正在线打包windows
(cherry picked from commit 603afe3ca6ffc6838e83ff8e1980dcc9e615733b)
|
2025-10-31 00:13:28 -07:00 |
|
|
|
fc4ecf874b
|
feat: 更新代码仓库全部修改
Build Android APK / 编译 libcore.aar (push) Has been cancelled
Build Android APK / 编译 Android APK (release) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Windows / build (push) Has been cancelled
|
2025-10-30 23:31:05 -07:00 |
|
|
|
f42a481452
|
feat: 更新代码仓库全部修改
Build Android APK / 编译 libcore.aar (push) Has been cancelled
Build Android APK / 编译 Android APK (release) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Windows / build (push) Has been cancelled
|
2025-10-30 04:47:53 -07:00 |
|
|
|
ed8afecf85
|
fix(flutter): 修复 Flutter 3.24.5 CupertinoSwitch API 兼容性问题
- 将已弃用的 activeTrackColor 参数替换为 activeColor
- 影响文件:
* lib/app/modules/kr_setting/views/kr_setting_view.dart
* lib/app/modules/kr_home/views/kr_home_connection_info_view.dart
- 修复 macOS/iOS 构建错误
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-10-27 23:23:56 +08:00 |
|
|
|
04642cb2f0
|
新增调试信息
|
2025-10-27 22:15:25 +08:00 |
|
|
|
ae62457d8c
|
添加日志 调试
|
2025-10-24 21:03:48 +08:00 |
|
|
|
6d4a4ff6a3
|
修正模拟器可能存在无法联网的问题
|
2025-10-24 20:40:53 +08:00 |
|
|
|
6936fab392
|
修正切换订阅计划多节点列表展示问题
|
2025-10-23 13:24:48 +08:00 |
|
|
|
f1a8dfe4e7
|
优化邀请码在不登录的时候要求客户去登录
|
2025-10-22 22:17:06 +08:00 |
|
|
|
17ea51b583
|
更新扩展连接协议字段并且新增邀请码展示
|
2025-10-22 21:49:57 +08:00 |
|
|
|
5ba2c1148a
|
新增多语言标记
|
2025-10-22 18:10:47 +08:00 |
|
|
|
db247d253b
|
优化支付后流程
|
2025-10-22 17:51:22 +08:00 |
|
|
|
2e7e85fb27
|
新增支付流程,新增支付页面等待倒计时,自动检查订单状态等
|
2025-10-22 17:47:07 +08:00 |
|
|
|
15d2e1047b
|
修正在不是游客模式下,登录注册界面无法输入问题。为注册页面的所有输入框添加独立的 FocusNode,并确保正确的焦点切换
|
2025-10-22 16:45:13 +08:00 |
|
|
|
b11d5a6001
|
所有设备ID获取方式统一为使用 KRDeviceInfoService().deviceId(基于 device_info_plus
库)。这确保了全局使用一致的设备标识
|
2025-10-21 20:27:26 +08:00 |
|
|
|
040d7d746a
|
新增支付方式获取
|
2025-10-18 16:08:06 +08:00 |
|
|
|
89c7334caf
|
优化套餐显示逻辑新增多语言
|
2025-10-18 15:25:28 +08:00 |
|
|
|
a3b7c418b1
|
第一次打开:
App启动 → 设备登录 → 保存Token → 进入主页
后续打开:
App启动 → 检测本地Token → Token有效 → 自动登录 → 进入主页
↓
Token失效/无效 → 自动设备登录 → 更新Token → 进入主页
|
2025-10-18 14:30:46 +08:00 |
|
|
|
06a198a975
|
修正ios 登录页面错位
|
2025-10-17 22:10:32 +08:00 |
|
|
|
75836c9c6b
|
修复路由冲突和补充多语言
|
2025-10-17 22:00:46 +08:00 |
|
|
|
135d60aaa6
|
优化订阅逻辑-未绑定账号的必须登录才可以购买套餐
|
2025-10-17 21:42:48 +08:00 |
|
|
|
de9cf751f3
|
完善游客模式登录 并且新增设备管理
|
2025-10-17 21:11:40 +08:00 |
|
|
|
2333ad52a9
|
新增游客模式
|
2025-10-17 15:28:40 +08:00 |
|
|
|
f5bc239b6a
|
- Debug 模式:使用固定的 http://192.168.0.113 和 ws://192.168.0.113
- Release 模式:使用动态域名逻辑
|
2025-10-17 14:08:54 +08:00 |
|
|
|
3aa13f4560
|
修正编译错误
|
2025-10-13 18:44:35 +08:00 |
|
|
|
0d6f4d4f71
|
新增完全离线的地图功能
|
2025-10-13 18:36:28 +08:00 |
|
|
|
35a90f1635
|
初始化信息
|
2025-10-13 18:08:02 +08:00 |
|