完成解决日志sentry日志代码被覆盖的问题
完成切换后台App获取列表和TCP连接后数据响应慢的问题。
This commit is contained in:
@@ -9,8 +9,8 @@ class DioClient {
|
||||
final dio = Dio(
|
||||
BaseOptions(
|
||||
baseUrl: HttpApiConsts.baseUrl,
|
||||
connectTimeout: const Duration(seconds: 10),
|
||||
receiveTimeout: const Duration(seconds: 10),
|
||||
connectTimeout: const Duration(seconds: 5),
|
||||
receiveTimeout: const Duration(seconds: 5),
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
),
|
||||
);
|
||||
|
||||
@@ -81,24 +81,6 @@ class NetMessageDispatcher {
|
||||
if (fullData.length > 5 && fullData[5] == 0x01) {
|
||||
debugPrint('✅ [Dispatcher] 状态位验证通过:0x01 - 可以发送下一个指令');
|
||||
///取全局的路径规划发送实体 queue
|
||||
|
||||
|
||||
// if (isStart && locationQueue.isEmpty) {
|
||||
// isStart = false;
|
||||
// print("[track]");
|
||||
// tcpClient.disconnect();
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// final entity = locationQueue.removeFirst(); // 类型:DeviceAddPathPointModel
|
||||
// final routePlanSendEntity = RoutePlanSendEntity(
|
||||
// commandType: 0x01,
|
||||
// pointCounts: 1,
|
||||
// targetLatitude: entity.latitude,
|
||||
// targetLongitude: entity.longitude,
|
||||
// speed: 1000,
|
||||
// );
|
||||
|
||||
/// 发送下一个指令 移除上一条数据
|
||||
var queue = _pathPlanningService.getQueue();
|
||||
//去除第一条数据
|
||||
|
||||
Reference in New Issue
Block a user