新增 logger 打印方法

This commit is contained in:
2025-09-30 14:48:12 +08:00
parent 1729d0f266
commit 07980fea87
12 changed files with 109 additions and 105 deletions

View File

@@ -1,4 +1,5 @@
import '../enums/vehicle_command_type.dart';
import '../utils/logger.dart';
/// 车辆控制命令类
class VehicleCommand {
@@ -22,8 +23,6 @@ class VehicleCommand {
orElse: () => VehicleCommandType.unknown,
);
} catch (e) {
print('Error parsing command string: $e');
// 默认为搜车指令,或者你可以选择抛出异常
type = VehicleCommandType.unknown;
}