完成优化等待接口返回最大时间

This commit is contained in:
2026-03-06 14:15:21 +08:00
parent c39eb6037d
commit 3331c9ec29
2 changed files with 3 additions and 4 deletions

View File

@@ -50,8 +50,7 @@ class AuthCubit extends Cubit<AuthState> {
// 1. print("App 启动时检查本地缓存user != null) ");
// print("App 启动时检查本地缓存 tcp.connect) ");
tcp.connect(host: TCPConsts.TCP_IP, port: TCPConsts.TCP_PORT);
await _authTcpDatasource.sendAuthPacket();//包括发送认证包和获取列表和切换函数
// await _authTcpDatasource.sendAuthPacket();//包括发送认证包和获取列表和切换函数
// 2. 同步全局 App 状态
appCubit.setAuth(user);
// 3. 进入已登录状态