diff --git a/GpsCardGatewayPosition.Postion/appsettings.test.json b/GpsCardGatewayPosition.Postion/appsettings.test.json index 598c24f..50fecb8 100644 --- a/GpsCardGatewayPosition.Postion/appsettings.test.json +++ b/GpsCardGatewayPosition.Postion/appsettings.test.json @@ -19,7 +19,7 @@ "EnablePushPosition": true, "EnablePushHealthy": true, "EnablePushFast": true, // 快速通道 - "EnablePushFence": true, + "EnablePushFence": false, "EnableLocationMonitor": true, //定位监测(非法区域定位检测) "EnablePushIotPosition": true }, diff --git a/GpsCardGatewayPosition.Service/Resolver/Property/GpsPositionResolver.cs b/GpsCardGatewayPosition.Service/Resolver/Property/GpsPositionResolver.cs index bf38471..0f7e940 100644 --- a/GpsCardGatewayPosition.Service/Resolver/Property/GpsPositionResolver.cs +++ b/GpsCardGatewayPosition.Service/Resolver/Property/GpsPositionResolver.cs @@ -249,14 +249,14 @@ namespace GpsCardGatewayPosition.Service.Resolver.Property #region 处理围栏 //过滤历史定位消息 - if (!hisResult.IsHistoryLocation) - { - _serviceLocation.ProcessGeofence(loc, messageId); - } - else - { - _logger.LogInformation($"设备{serialno},收到历史定位"); - } + //if (!hisResult.IsHistoryLocation) + //{ + // _serviceLocation.ProcessGeofence(loc, messageId); + //} + //else + //{ + // _logger.LogInformation($"设备{serialno},收到历史定位"); + //} #endregion #region 保存最后位置信息 diff --git a/GpsCardGatewayPosition.Service/Resolver/Property/WifiPlus2PositionResolver.cs b/GpsCardGatewayPosition.Service/Resolver/Property/WifiPlus2PositionResolver.cs index 5bb73da..65e689e 100644 --- a/GpsCardGatewayPosition.Service/Resolver/Property/WifiPlus2PositionResolver.cs +++ b/GpsCardGatewayPosition.Service/Resolver/Property/WifiPlus2PositionResolver.cs @@ -683,14 +683,14 @@ namespace GpsCardGatewayPosition.Service.Resolver.Property { #region 处理围栏 //过滤历史定位 - if (!result.IsHistoryLocation) - { - _serviceLocation.ProcessGeofence(loc, messageId); - } - else - { - _logger.LogInformation($"设备{serialno},收到历史定位"); - } + //if (!result.IsHistoryLocation) + //{ + // _serviceLocation.ProcessGeofence(loc, messageId); + //} + //else + //{ + // _logger.LogInformation($"设备{serialno},收到历史定位"); + //} #endregion } diff --git a/GpsCardGatewayPosition.Service/Resolver/Property/WifiPositionResolver.cs b/GpsCardGatewayPosition.Service/Resolver/Property/WifiPositionResolver.cs index 94895c2..2c9bd16 100644 --- a/GpsCardGatewayPosition.Service/Resolver/Property/WifiPositionResolver.cs +++ b/GpsCardGatewayPosition.Service/Resolver/Property/WifiPositionResolver.cs @@ -387,15 +387,15 @@ namespace GpsCardGatewayPosition.Service.Resolver.Property #region 处理围栏 //过滤历史定位消息 - if (!hisResult.IsHistoryLocation) - { - //_serviceLocation.ProcessGeofence(loc, messageId); - await _serviceLocation.ProcessGeofenceAsync(loc, messageId); - } - else - { - _logger.LogInformation($"设备{serialno},收到历史定位"); - } + //if (!hisResult.IsHistoryLocation) + //{ + // //_serviceLocation.ProcessGeofence(loc, messageId); + // await _serviceLocation.ProcessGeofenceAsync(loc, messageId); + //} + //else + //{ + // _logger.LogInformation($"设备{serialno},收到历史定位"); + //} #endregion #region 保存最后位置信息