refactor(device): 替换消息ID生成器为UUID实现

- 移除自定义时间戳+随机数ID生成逻辑
- 集成uuid包依赖并配置版本
- 使用Uuid.v4()替换原有next()方法实现
- 更新MessageIdGenerator类文档注释
- 在JSON协议层添加设备日志警告输出
- 修改pubspec.yaml添加uuid依赖声明
This commit is contained in:
Developer
2026-06-04 16:45:06 +08:00
parent 55bdaa9211
commit 3ab2232845
4 changed files with 12 additions and 13 deletions

View File

@@ -763,7 +763,7 @@ packages:
source: hosted
version: "0.5.2"
uuid:
dependency: transitive
dependency: "direct main"
description:
name: uuid
sha256: "1fef9e8e11e2991bb773070d4656b7bd5d850967a2456cfc83cf47925ba79489"