feat(utils): 添加延迟测试工具类用于TCP连接延迟测试
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
简化代码逻辑,保持存储方式的一致性
This commit is contained in:
2025-11-09 05:38:02 -08:00
parent 610eb4f20d
commit 78c20f9ae9
2 changed files with 128 additions and 1 deletions
@@ -133,7 +133,7 @@ class KRHomeController extends GetxController with WidgetsBindingObserver {
if (value != null) {
isQuickConnectEnabled.value = value;
// 保存闪连状态到本地存储
await _saveQuickConnectStatus(value);
await _storage.kr_saveBool(key: _quickConnectKey, value: value);
KRLogUtil.kr_i('闪连状态已更新: $value', tag: 'QuickConnect');
}
}