From 7e06795e973686513f8217bc7d7d743ae741daed Mon Sep 17 00:00:00 2001 From: H Vs Date: Wed, 5 Jun 2024 16:41:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E6=B8=A9=E5=AE=9A=E4=BD=8D=E8=AD=A6?= =?UTF-8?q?=E5=91=8A=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GpsCardGatewayPosition.Service/MqProducer/MqProcessLogic.cs | 2 ++ 1 file changed, 2 insertions(+) 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分钟有效性限制