feat: 更新设备空闲状态获取逻辑

主要修改:
1. 在DeviceStatusService中,使用从SystemConfigService获取的设备空闲状态字符串替代硬编码的默认值。

技术细节:
- 通过动态获取设备空闲状态,提升了系统的灵活性和可维护性,支持多语言环境下的状态标识。
This commit is contained in:
zyh
2025-08-27 22:21:53 +08:00
parent 6bca300ff9
commit c42e7445f8

View File

@@ -173,7 +173,8 @@ public class DeviceStatusService {
result.put("f0", f0Info); result.put("f0", f0Info);
// 状态信息需要额外获取,这里先设置默认值 // 状态信息需要额外获取,这里先设置默认值
f1Info.put("val", "空闲"); // 如果能获取到点数,可能表示空闲 String idleStatus = systemConfigService.getDeviceIdleStatus();
f1Info.put("val", idleStatus); // 如果能获取到点数,可能表示空闲
f1Info.put("time", time); f1Info.put("time", time);
result.put("f1", f1Info); result.put("f1", f1Info);
} else { } else {