84 Commits

Author SHA1 Message Date
adcde623c7 feat: bugfix 2025-11-27 22:05:44 -08:00
569f9f6d05 feat: 修改bug 2025-11-27 03:10:47 -08:00
4fdf4da4f3 feat: 节点测速auto调整 2025-11-26 22:57:52 -08:00
b059d01556 feat: 节点测速调整 2025-11-26 19:23:15 -08:00
909020654f feat: 节点测速调整 2025-11-25 23:06:20 -08:00
becc03acfd feat: 更改节点测速
Some checks failed
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 20m53s
Build Windows / build (push) Has been cancelled
2025-11-21 02:52:23 -08:00
9123d5f0e4 feat: 登录接口修改
Some checks failed
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 20m33s
Build Windows / build (push) Has been cancelled
2025-11-21 01:24:44 -08:00
3b05d4ff72 feat: 修改国家选择匹配问题 2025-11-20 09:08:23 -08:00
b442289b8a feat: 修改bug
Some checks failed
Build Windows / build (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Has started running
2025-11-20 06:19:05 -08:00
89d13e6237 feat: 修改兼容 2025-11-20 00:51:14 -08:00
8fd742a688 feat: 修改兼容 2025-11-19 04:06:46 -08:00
679c303457 feat: 1.新增在 VPN 配置中添加了一条规则,2.修复全局代理无法使用 2025-11-18 05:15:06 -08:00
59aa67d456 feat: 提交国家分组功能和debug功能
Some checks failed
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 20m13s
Build Windows / build (push) Has been cancelled
2025-11-16 22:51:30 -08:00
2a1ee3018d feat: 提交国家分组功能和debug功能 2025-11-16 22:50:09 -08:00
76e83e0135 feat: 先改变节点选择方法
Some checks failed
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 20m11s
Build Windows / build (push) Has been cancelled
2025-11-14 20:19:10 -08:00
89d6ec3c76 feat: 先改变节点选择方法
Some checks failed
Build Windows / build (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Has been cancelled
2025-11-14 20:18:38 -08:00
670eb7ebc9 feat: 保存节点调试进度
Some checks failed
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 20m7s
Build Windows / build (push) Has been cancelled
2025-11-13 22:43:27 -08:00
a47174df56 feat: 初始化并发问题处理
Some checks failed
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Has been cancelled
Build Windows / build (push) Has been cancelled
2025-11-13 05:15:18 -08:00
748ec6bee9 feat: 提交国家选择
All checks were successful
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 20m1s
Build Windows / build (push) Successful in 7h7m43s
2025-11-11 01:29:16 -08:00
a884e6c838 feat: 修改id和sn显示
Some checks failed
Build Windows / build (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Has been cancelled
2025-11-09 22:55:01 -08:00
920b86e56a feat: 修改代码冲突
Some checks failed
Build Windows / build (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Has been cancelled
2025-11-09 22:46:53 -08:00
a78b40c339 feat: 修改代码冲突
Some checks failed
Build Windows / build (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Has been cancelled
2025-11-09 22:43:57 -08:00
33917e774d fix(kr_home_controller): 将超时时间从Duration改为毫秒数值
All checks were successful
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 19m56s
Build Windows / build (push) Successful in 7h7m9s
将KRLatencyTester.testMultipleNodes方法的timeout参数从Duration类型改为直接使用毫秒数值,保持与接口定义一致
2025-11-09 18:49:33 -08:00
78c20f9ae9 feat(utils): 添加延迟测试工具类用于TCP连接延迟测试
Some checks failed
Build Windows / build (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Has been cancelled
新增KRLatencyTester工具类,提供单节点和批量节点的TCP延迟测试功能
支持自定义超时时间和并发数,测试结果包含成功/失败状态和延迟时间
```

```msg
refactor(home): 使用_storage直接保存闪连状态

将_saveQuickConnectStatus方法替换为直接调用_storage.kr_saveBool
简化代码逻辑,保持存储方式的一致性
2025-11-09 05:38:02 -08:00
6131a80b2c feat: 优化未连接节点时候批量节点测速功能,修复网络初始化报错后,导致的连锁反应界面出现错乱和DioExceptionType.unknown报错信息,直连模式,不依赖未初始化的核心
Some checks failed
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 / 构建 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 Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (push) Has been cancelled
Build Windows / build (push) Has been cancelled
2025-11-04 03:08:24 -08:00
1a9f0d79ac 1. 删除了 _kr_handleSelectorProxy 中会导致死循环的重选逻辑
Some checks failed
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
2. 简化了 _kr_handleManualMode,只更新 UI 不触发重选
2025-11-03 00:48:15 -08:00
c7b77c1ad8 解决kr_start() 方法中缺少对分组数据流的订阅
Some checks failed
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-11-02 17:41:31 -08:00
7cd022093b 修改 KRSecureStorage 类,确保每次操作前 box 都是打开状态。目前解决了从新打开app登录状态失效
(cherry picked from commit ab22be112a1753e5063799b5424f5d3feef06e2d)
2025-11-02 05:13:01 -08:00
7a223d614b 安卓15部分机型出现界面不兼容并且UI库有BUG,MD
Some checks failed
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
(cherry picked from commit 010405edda74bdb0251dcff2e32482edae2c9976)
2025-11-02 02:50:55 -08:00
0ec2f72a93 彻底解决在安卓15部分机型出现界面不兼容等问题
(cherry picked from commit fc31fc6e5ee3a7aefa8928bb40d164282e4edf90)
2025-11-02 02:48:03 -08:00
dee7f0a591 优化部分安卓机型可能存在连接超时等问题新增日志排查
(cherry picked from commit e0fcc27f28f27321a49115df86507e3ac55e8ef8)
2025-11-02 02:46:36 -08:00
f1e8e7f530 1. 订阅卡片 - 移除 ScreenUtil,内容可见
Some checks failed
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
2.  连接选项 - 移除 ScreenUtil,"国家/地区"可见
  3.  连接信息卡片 - 移除 ScreenUtil
  4.  试用卡片 - 移除 ScreenUtil
  5.  最后一天卡片 - 移除 ScreenUtil
  6.  底部面板 - 移除 ScreenUtil
  7.  购买页面 - 移除 ScreenUtil,点击订阅不再卡死

(cherry picked from commit 1b059c57f55d65a737d5713754486a9cf576b210)
2025-11-02 01:06:45 -08:00
75c7d31da1 修复ScreenUtil 在某些安卓设备上计算异常,导致所有使用 .w 和 .h 的尺寸都变成 0 或极小值,导致界面不显示
(cherry picked from commit 73af298aebafc2e13668d645d461b99786b0c1e2)
2025-11-02 01:05:44 -08:00
17b3f6b92d 新增日志全局开关便于调试,优化部分机型可能出现的界面错乱或不显示等问题
(cherry picked from commit 5853ba7fe4e0cbe4f04b20c86e9fd84c5557139f)
2025-11-02 01:05:43 -08:00
cf297caf09 feat: fixbug
Some checks failed
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 Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
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 Windows / 编译 libcore (Windows) (push) Has been cancelled
Build Windows / build (push) Has been cancelled
2025-11-02 01:58:04 -07:00
2b80fcba0d 新增编译模式下对日志进行输出,并且更新了hive缓存取出后进行连通性判断
Some checks failed
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
(cherry picked from commit 40f95d0c463c31428c5f25118f59b0c3a60e73ba)
2025-11-01 23:39:13 -07:00
4c5763647d refactor: 优化日志输出,仅在调试模式下启用
- 为所有 print 语句添加 kDebugMode 检查
- 更新 KRLogUtil 工具类,Release 模式下禁用日志输出
- 优化 18 个文件中的 335+ 条日志语句
- 提升 Release 版本性能并增强安全性

(cherry picked from commit 301f1510ba81fe94fb08e013ca80b3ca708a2e15)
2025-11-01 23:31:11 -07:00
b3ee1cc6dc 修正切换节点长连接还存在的问题,目前使用切换之后先关闭服务在启动服务
(cherry picked from commit 3c0c6dde0969fa9847fa77db78abbb6a098e50ef)
2025-11-01 23:25:38 -07:00
b7a78aa76a 修复:大量的ScreenUtil误用,导致界面可能出现问题
(cherry picked from commit 2829da5267a14a9e0f43ff56060a68f1f8b2ca6a)
2025-11-01 23:25:23 -07:00
18ec3e36fc 修正多语言当中的硬编码,更新七国语言
(cherry picked from commit e72e682f526651453dc44b2db78a5df8ba70a733)
2025-11-01 23:24:02 -07:00
8b982d1ba8 优化核心在切换节点时候以往的浏览器保持长连接导致无法使用新节点的逻辑
(cherry picked from commit c920d9fbcd0589f1051bac5bb5bcb5f5deca1017)
2025-11-01 23:20:06 -07:00
3f838d224c 新增手机号码注册,手机号码验证码登录
(cherry picked from commit 8e269ab2807642d77a109d6bead0ff12915f1dd7)
2025-11-01 23:18:55 -07:00
9ef53abad5 通过检查两个条件:
1. kr_isLogin.value - 确认用户已登录
  2. !isDeviceLogin() - 确认不是设备登录(游客模式)
  只有同时满足这两个条件(即账号密码登录)时,退出登录按钮才会显示。

(cherry picked from commit 7b0acbb4a81d9d6e25c1bcaf1777dd95fc40bb55)
2025-11-01 23:17:13 -07:00
f379a8ee8f 用户点击邀请按钮 → 立即弹出对话框 → 停留在当前页面
(cherry picked from commit b641d661d7b7c6e5e9fa4d2d8456170ee078b043)
2025-11-01 23:17:12 -07:00
765b45c0fc feat: debug
Some checks failed
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 Windows / 编译 libcore (Windows) (push) Has been cancelled
Build Windows / build (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
2025-11-01 23:14:39 -07:00
1e7175edf5 feat: 删除初始化跳过按钮
Some checks failed
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 19:52:03 -07:00
61ab0ea225 优化节点列表国旗显示问题
Some checks failed
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
(cherry picked from commit 7b9d6bb33be8b0c619d35b835017e963d5bdc97f)
2025-10-31 19:38:00 -07:00
138209929b 修正切换和国旗问题
(cherry picked from commit bec2464da85e981636077276de36b2ea5f6c40f4)
2025-10-31 19:37:48 -07:00
7083369cd4 🔍 debug: 添加详细诊断日志以追踪节点切换失败问题
问题现象:
- 用户从韩国节点切换到日本节点
- UI 显示已切换到日本
- 但实际流量仍从韩国节点出去

诊断目标:
1. 验证目标节点是否在 SingBox 活动组中存在
2. 追踪 selectOutbound() 是否真正被调用
3. 确认节点标签 (tag) 的匹配情况

修改内容:

1. kr_home_controller.dart (kr_performNodeSwitch 方法):
   - 在调用 kr_selectOutbound 之前,列出所有活动组和节点
   - 检查目标节点是否存在于活动组中
   - 打印调用前后的关键日志

2. kr_sing_box_imp.dart (kr_selectOutbound 方法):
   - 搜索目标节点是否在活动组中存在
   - 如果找不到,打印所有可用的节点列表
   - 添加 selectOutbound API 调用的详细日志

日志输出示例:
 在组 "select" 中找到目标节点: Japan-Tokyo
 调用 selectOutbound("select", "Japan-Tokyo")...
 节点切换完成: Japan-Tokyo

或

⚠️ 未能在任何活动组中找到目标节点: Japan-Tokyo
  可用节点: Korea-Seoul
  可用节点: USA-NewYork
  ...

验证:
 编译通过(仅有之前存在的警告)
 无新增编译错误

下一步:
- 运行此版本并获取用户的日志输出
- 根据日志结果定位真正的原因
- 实施正式修复

(cherry picked from commit 40ff4cc2654c6c1fd939a157483f94872ecbda73)
2025-10-31 19:37:24 -07:00
16a1ed789e 🔧 fix: 修复节点切换完成后仍显示'正在连接中'状态的问题
问题描述:
- 用户在已连接VPN的情况下切换节点
- 节点切换成功,但UI仍然显示"正在连接中"状态
- 原因:节点切换完成后,kr_currentNodeLatency 仍然是 -1(连接中状态)

根本原因:
- kr_performNodeSwitch() 设置 kr_currentNodeLatency = -1 来显示加载状态
- 调用 await kr_selectOutbound(tag) 等待后台完成
- 但是完成后没有立即更新 kr_currentNodeLatency 为真实的延迟值
- 导致 UI 持续显示"正在连接中"

修复方案:
1. 在 kr_selectOutbound() 完成后,增加 200ms 延迟(等待活动组更新)
2. 立即调用 _kr_updateLatencyOnConnected() 获取新节点的真实延迟
3. 这样 UI 会立即从"正在连接中"变为"已连接 + 新延迟值"

修改内容:
- 在 kr_performNodeSwitch() 的成功分支中
- 在 kr_moveToSelectedNode() 之后,添加延迟更新逻辑
- 调用 _kr_updateLatencyOnConnected() 来同步新节点的延迟

验证:
 编译通过:No issues found!
 逻辑正确:使用现有的 _kr_updateLatencyOnConnected() 方法
 无新增依赖:只是调用现有方法

(cherry picked from commit 9ddf6bab2c2f09df30fc1fe7d085058508e6ff1c)
2025-10-31 19:37:23 -07:00