完成优化登录的优化
完成切换和切回APP数据的及时响应
This commit is contained in:
@@ -328,7 +328,7 @@ class TcpClient {
|
||||
(failure) {
|
||||
// 处理失败:打印日志或抛出异常
|
||||
debugPrint('❌ [AuthTcp] 获取设备列表失败:$failure');
|
||||
_sendAuthPacket();
|
||||
// _sendAuthPacket();
|
||||
throw Exception('获取设备列表失败:$failure');
|
||||
},
|
||||
(devices) async {
|
||||
@@ -349,7 +349,7 @@ class TcpClient {
|
||||
await switchResult.fold(
|
||||
(failure) {
|
||||
debugPrint('❌ [AuthTcp] 切换设备失败:$failure');
|
||||
_sendAuthPacket();
|
||||
// _sendAuthPacket();
|
||||
throw Exception('切换设备失败:$failure');
|
||||
},
|
||||
(success) {
|
||||
|
||||
Reference in New Issue
Block a user