opt: 添加日志

This commit is contained in:
2025-07-07 16:03:48 +08:00
parent 03c0f641c4
commit 39d780ad5c

View File

@@ -35,6 +35,7 @@ public class AutoQueryDeviceStatus {
boolean tryLock = lock.tryLock(0, TimeUnit.SECONDS);
try {
if (tryLock){
log.info("正在更新温度....");
for (URLEnum url : URLEnum.values()) {
try {
String product_area = url.getProduct_area();
@@ -54,7 +55,7 @@ public class AutoQueryDeviceStatus {
String countdown_house = row.getString("countdown_house");
String countdown_min = row.getString("countdown_min");
String countdown_sec = row.getString("countdown_sec");
log.info("设备:{} - 温度:{}", device_code, row.getString("now_temperature"));
if (StrUtil.isEmpty(countdown_house)) {
countdown_house = "0";
}