From c42e7445f8db4f2bdf4215353bd6f4c0832306ad Mon Sep 17 00:00:00 2001 From: zyh Date: Wed, 27 Aug 2025 22:21:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=A9=BA=E9=97=B2=E7=8A=B6=E6=80=81=E8=8E=B7=E5=8F=96=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 主要修改: 1. 在DeviceStatusService中,使用从SystemConfigService获取的设备空闲状态字符串替代硬编码的默认值。 技术细节: - 通过动态获取设备空闲状态,提升了系统的灵活性和可维护性,支持多语言环境下的状态标识。 --- .../server/service/device/DeviceStatusService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gameplatform/server/service/device/DeviceStatusService.java b/src/main/java/com/gameplatform/server/service/device/DeviceStatusService.java index 90dc466..6e273e3 100644 --- a/src/main/java/com/gameplatform/server/service/device/DeviceStatusService.java +++ b/src/main/java/com/gameplatform/server/service/device/DeviceStatusService.java @@ -173,7 +173,8 @@ public class DeviceStatusService { result.put("f0", f0Info); // 状态信息需要额外获取,这里先设置默认值 - f1Info.put("val", "空闲"); // 如果能获取到点数,可能表示空闲 + String idleStatus = systemConfigService.getDeviceIdleStatus(); + f1Info.put("val", idleStatus); // 如果能获取到点数,可能表示空闲 f1Info.put("time", time); result.put("f1", f1Info); } else {