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}');