Browse Source

测温定位警告过滤

develop
H Vs 5 months ago
parent
commit
7e06795e97
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      GpsCardGatewayPosition.Service/MqProducer/MqProcessLogic.cs

+ 2
- 0
GpsCardGatewayPosition.Service/MqProducer/MqProcessLogic.cs View File

@@ -81,6 +81,8 @@ namespace GpsCardGatewayPosition.Service.MqProducer
public async Task ProcessWxTemperatureAsync(string messageId, TemperatureInfoModel temp, LocationType type = default, MethodType method = default)
{
if (!_configServiceAccess.EnablePushWx) return;
// 小于34过滤 或者 大于41过滤
if (temp.Temperature < 34 || temp.Temperature > 41) return;

DateTime time = temp.TempTime ?? DateTime.Now;
//取消测温30分钟有效性限制


Loading…
Cancel
Save