Parcourir la source

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

develop
H Vs il y a 9 mois
Parent
révision
6c5cc2e807
4 fichiers modifiés avec 26 ajouts et 26 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

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


Chargement…
Annuler
Enregistrer