fix: 用户登录逻辑判断修改。

This commit is contained in:
tianyongbao
2026-04-05 12:13:34 +08:00
parent a425f1339d
commit 3d4ee0f33a
2 changed files with 50 additions and 6 deletions

View File

@@ -1744,7 +1744,8 @@ public class DeviceDataHandler {
try {
Integer rawCode = params.getInt("sensorErrorCode");
if (rawCode == null) {
log.warn("[探头错误码] 解析 sensorErrorCode 失败: {}", deviceName);
// 部分设备/数据包不携带此字段,属于正常情况
log.debug("[探头错误码] 设备上报数据不包含 sensorErrorCode 字段: {}", deviceName);
return;
}
int sensorErrorCode = rawCode;