优化流信息存储的兼容性

This commit is contained in:
lin
2025-10-29 15:56:29 +08:00
parent 952d38d69b
commit 091d6e67ee
4 changed files with 12 additions and 6 deletions

View File

@@ -213,7 +213,7 @@ public class Device {
@Schema(description = "所属服务Id")
private String serverId;
public boolean isWgs84() {
public boolean checkWgs84() {
return geoCoordSys.equalsIgnoreCase("WGS84");
}
}

View File

@@ -124,7 +124,7 @@ public class NotifyRequestForCatalogProcessor extends SIPRequestProcessorParent
catalogChannelEvent.getChannel().setDataDeviceId(device.getId());
if (catalogChannelEvent.getChannel().getLongitude() > 0
&& catalogChannelEvent.getChannel().getLatitude() > 0) {
if (device.isWgs84()) {
if (device.checkWgs84()) {
catalogChannelEvent.getChannel().setGbLongitude(catalogChannelEvent.getChannel().getLongitude());
catalogChannelEvent.getChannel().setGbLatitude(catalogChannelEvent.getChannel().getLatitude());
}else {