This commit is contained in:
2026-07-11 16:49:55 +08:00
parent 1a4d0aedfd
commit bf2fc49c19

View File

@@ -75,7 +75,7 @@ class PathHttpDatasourceImpl implements PathHttpDatasource {
final dataObj = decoded['data'];
final pathJson = dataObj is Map ? dataObj['path'] : null;
if (pathJson != null) {
/ print('✅ [路径规划API] 路径数据点数: ${pathJson is List ? pathJson.length : '非列表'}');
print('✅ [路径规划API] 路径数据点数: ${pathJson is List ? pathJson.length : '非列表'}');
if (pathJson is! List) {
throw Exception('Expected "path" to be a List, but got ${pathJson.runtimeType}');
}