Przeglądaj źródła

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

develop
H Vs 5 miesięcy temu
rodzic
commit
6c5cc2e807
4 zmienionych plików z 26 dodań i 26 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz