fix: 对特定基站推送新增日志

This commit is contained in:
yarnom 2025-11-17 18:35:11 +08:00
parent 494899c406
commit f2c614e2df

View File

@ -187,7 +187,8 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
// 特定基站站点 6541918 也允许插入 1005 // 特定基站站点 6541918 也允许插入 1005
if (((deviceBs.getModel()==null || deviceBs.getModel() == GnssDevice.MODEL_G505) if (((deviceBs.getModel()==null || deviceBs.getModel() == GnssDevice.MODEL_G505)
|| "6541918".equals(deviceBs.getDeviceId())) || "6541918".equals(deviceBs.getDeviceId()))
&& (device.getModel()!=null && device.getModel()==GnssDevice.MODEL_G510)){ && (device.getModel()!=null && device.getModel()==GnssDevice.MODEL_G510))
{
buf = insert1005(deviceBs, deviceId, buf); buf = insert1005(deviceBs, deviceId, buf);
} }
@ -267,6 +268,15 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
// LocalDateTime.now(), // LocalDateTime.now(),
// ByteUtil.bytesToHexString(buf.array())); // ByteUtil.bytesToHexString(buf.array()));
} }
if (logger.isDebugEnabled()) {
try {
logger.debug("insert1005 hex for base {} to {}: {}",
deviceBs.getDeviceId(), deviceId,
ByteUtil.bytesToHexString(buf1005.array()));
} catch (Exception ignore) {}
}
return buf1005; return buf1005;
} }