1. 删除了 _kr_handleSelectorProxy 中会导致死循环的重选逻辑
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 不触发重选
This commit is contained in:
2025-11-03 00:48:15 -08:00
parent c7b77c1ad8
commit 1a9f0d79ac
2 changed files with 20 additions and 44 deletions
@@ -29,14 +29,15 @@ class HINodeListView extends GetView<HINodeListController> {
/// 获取用于显示的延迟值
int _getDisplayDelay(HINodeListController controller, KROutboundItem item) {
if (controller.homeController.kr_isConnected.value) {
return item.urlTestDelay.value;
}
if (!_fakeDelays.containsKey(item.tag)) {
final random = Random();
_fakeDelays[item.tag] = 30 + random.nextInt(71); // 30-100ms
}
return _fakeDelays[item.tag] ?? 0;
return item.urlTestDelay.value;
// if (controller.homeController.kr_isConnected.value) {
//
// }
// if (!_fakeDelays.containsKey(item.tag)) {
// final random = Random();
// _fakeDelays[item.tag] = 30 + random.nextInt(71); // 30-100ms
// }
// return _fakeDelays[item.tag] ?? 0;
}
/// 获取分组内最快节点的延迟值(单位:ms)