优化流信息存储的兼容性
This commit is contained in:
@@ -213,7 +213,7 @@ public class Device {
|
||||
@Schema(description = "所属服务Id")
|
||||
private String serverId;
|
||||
|
||||
public boolean isWgs84() {
|
||||
public boolean checkWgs84() {
|
||||
return geoCoordSys.equalsIgnoreCase("WGS84");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user