修复路径规划暂停

修复路径规划继续
修复路径规开始工作
修复路径规停止工作+
This commit is contained in:
2026-03-12 12:49:31 +08:00
parent 0f0d2a89ac
commit 31c399937f
4 changed files with 74 additions and 24 deletions

View File

@@ -64,7 +64,7 @@ class AuthCubit extends Cubit<AuthState> {
/// 当 HTTP 登录/注册成功后调用
Future<void> loginSuccess(UserEntity user) async {
await storage.saveUser(user);
//await tcp.connect(host: TCPConsts.TCP_IP, port: TCPConsts.TCP_PORT);
await tcp.connect(host: TCPConsts.TCP_IP, port: TCPConsts.TCP_PORT);
// await _authTcpDatasource.sendAuthPacket(); //包括发送认证包和获取列表和切换函数
//tcp.startHeartbeat(interval: const Duration(seconds: 4)); //启动心跳
appCubit.setAuth(user);