|
@@ -169,15 +169,22 @@ class HomeController extends GetxController {
|
|
|
|
|
|
|
|
|
// await Future.delayed(Duration(seconds: 3)); // 等待核心状态更新
|
|
|
- // 继续后面的逻辑
|
|
|
- var error = await networkService.fetchAuthUser();
|
|
|
-
|
|
|
- // 根据 error 的结果继续处理
|
|
|
- if (error == "") {
|
|
|
+ if(globalController.selectedNode.value != null)
|
|
|
+ {
|
|
|
await connectionService.startConnection();
|
|
|
} else {
|
|
|
- globalController.updateMsg("验证失败,{$error}");
|
|
|
+ // 继续后面的逻辑
|
|
|
+ var error = await networkService.fetchAuthUser();
|
|
|
+
|
|
|
+ // 根据 error 的结果继续处理
|
|
|
+ if (error == "") {
|
|
|
+ await connectionService.startConnection();
|
|
|
+ } else {
|
|
|
+ globalController.updateMsg("验证失败,{$error}");
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|