@@ -19,7 +19,7 @@ | |||
"EnablePushPosition": true, | |||
"EnablePushHealthy": true, | |||
"EnablePushFast": true, // 快速通道 | |||
"EnablePushFence": true, | |||
"EnablePushFence": false, | |||
"EnableLocationMonitor": true, //定位监测(非法区域定位检测) | |||
"EnablePushIotPosition": true | |||
}, | |||
@@ -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 保存最后位置信息 | |||
@@ -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 | |||
} | |||
@@ -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 保存最后位置信息 | |||