新增 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

@@ -24,10 +24,10 @@ class CommandService {
try {
return await onCommandReceived!(type, params);
} catch (e) {
print('执行命令出错: $e');
Logger.e('执行命令出错: $e');
}
} else {
print('警告: 命令处理回调未注册');
Logger.w('警告: 命令处理回调未注册');
}
return (false, null);
}