From ddb6441413eef58c74373b7da0b687068e21e108 Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Wed, 11 Mar 2026 15:49:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presentation/widgets/map/testmap_pages.dart | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/features/home/presentation/widgets/map/testmap_pages.dart b/lib/features/home/presentation/widgets/map/testmap_pages.dart index 936caf46..ee4487a8 100644 --- a/lib/features/home/presentation/widgets/map/testmap_pages.dart +++ b/lib/features/home/presentation/widgets/map/testmap_pages.dart @@ -496,7 +496,11 @@ class _MapPageEnterpriseState extends State { ToastUtils.showError(context, '用户ID为空,无法保存!'); return; } - + debugPrint("===打印生成的路径开始 "); + for (var i = 0; i < typedPathList.length; i++) { + debugPrint(typedPathList[i].toString()); + } + debugPrint("===打印生成的路径结束"); // 2. 构造 SavePath 数据 (严格对应你的 JS 结构) final Map savePath = { //'img': imgBase64 ?? '', // 截图的 Base64 字符串 @@ -1447,7 +1451,12 @@ class _MapPageEnterpriseState extends State { final List typedList = startWorkList.whereType>().map((item) { return work_area_model.DeviceAddPathPointModel(latitude: (item['lat'] as num).toDouble(), longitude: (item['lon'] as num).toDouble()); }).toList(); - debugPrint('✅ 类型转换成功,长度:${typedList.length}'); + + debugPrint("===打印发送开始作业的路径开始 "); + for (var i = 0; i < typedList.length; i++) { + debugPrint(typedList[i].toString()); + } + debugPrint("===打印发送开始作业的路径结束"); final Queue pathQueue = Queue.from(typedList); debugPrint('🚀 开始作业:${_selectedPlot?.plotName ?? "未命名"},路径点数量:${pathQueue.length}');