瀏覽代碼

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

develop
H Vs 6 月之前
父節點
當前提交
6c5cc2e807
共有 4 個文件被更改,包括 26 次插入26 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存