1:修复远程遥控控制状态显示不正确的问题

2:更换端口映射为测试服的8081-59003,9001-59004
This commit is contained in:
2026-08-26 14:23:20 +08:00
parent ca616faf11
commit 7c01229b9e
22 changed files with 399 additions and 119 deletions

View File

@@ -959,7 +959,7 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
final String workRecordJson = jsonEncode(workRecord);
final http.MultipartRequest request = http.MultipartRequest(
'POST',
Uri.parse('http://1.95.137.212:8081/iot/workRecord/add'),
Uri.parse('http://1.95.137.212:59003/iot/workRecord/add'),
);
// 🔥 添加 Authorization 认证头
@@ -1027,7 +1027,7 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
// debugPrint('📤 [保存地块] path长度: ${(savePath['path'] as List?)?.length ?? 0}');
// debugPrint('📤 [保存地块] outer长度: ${(savePath['outer'] as List?)?.length ?? 0}');
// debugPrint('📤 [保存地块] 是否有图片文件: ${imgBase64 != null && imgBase64.isNotEmpty}');
// debugPrint('📤 [保存地块] 请求URL: http://1.95.137.212:8081/iot/workRecord/add');
// debugPrint('📤 [保存地块] 请求URL: http://1.95.137.212:59003/iot/workRecord/add');
// debugPrint('📤 [保存地块] workRecord(完整JSON): $workRecordJson');
// debugPrint('📤 [保存地块] savePath(原始对象): $savePath');
// debugPrint('📤 [保存地块] ========== 请求参数 END ==========');
@@ -2514,7 +2514,7 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
try {
final dio = sl<Dio>();
final response = await dio.get(
'http://1.95.137.212:8081/iot/taskPath/getTaskPath',
'http://1.95.137.212:59003/iot/taskPath/getTaskPath',
queryParameters: {
'taskId': currentTaskId,
},