Sfoglia il codice sorgente

调整第三方定位推送改为推送到topic.push.position

develop
H Vs 5 mesi fa
parent
commit
6c5cc2e807
4 ha cambiato i file con 26 aggiunte e 26 eliminazioni
  1. +1
    -1
      GpsCardGatewayPosition.Postion/appsettings.test.json
  2. +8
    -8
      GpsCardGatewayPosition.Service/Resolver/Property/GpsPositionResolver.cs
  3. +8
    -8
      GpsCardGatewayPosition.Service/Resolver/Property/WifiPlus2PositionResolver.cs
  4. +9
    -9
      GpsCardGatewayPosition.Service/Resolver/Property/WifiPositionResolver.cs

+ 1
- 1
GpsCardGatewayPosition.Postion/appsettings.test.json Vedi File

@@ -19,7 +19,7 @@
"EnablePushPosition": true,
"EnablePushHealthy": true,
"EnablePushFast": true, // 快速通道
"EnablePushFence": true,
"EnablePushFence": false,
"EnableLocationMonitor": true, //定位监测(非法区域定位检测)
"EnablePushIotPosition": true
},


+ 8
- 8
GpsCardGatewayPosition.Service/Resolver/Property/GpsPositionResolver.cs Vedi File

@@ -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 保存最后位置信息


+ 8
- 8
GpsCardGatewayPosition.Service/Resolver/Property/WifiPlus2PositionResolver.cs Vedi File

@@ -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
}



+ 9
- 9
GpsCardGatewayPosition.Service/Resolver/Property/WifiPositionResolver.cs Vedi File

@@ -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 保存最后位置信息


Loading…
Annulla
Salva