diff --git a/GpsCardGatewayPosition.Service/MqProducer/MqProcessLogic.cs b/GpsCardGatewayPosition.Service/MqProducer/MqProcessLogic.cs index 08b15d1..8e03903 100644 --- a/GpsCardGatewayPosition.Service/MqProducer/MqProcessLogic.cs +++ b/GpsCardGatewayPosition.Service/MqProducer/MqProcessLogic.cs @@ -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分钟有效性限制