Compare commits

...

2 Commits

Author SHA1 Message Date
zhangbin 5bb38d60e0 去掉大华 2025-11-26 08:32:59 +08:00
zhangbin 74d9c313d7 修改sod数据 2025-11-25 13:42:09 +08:00
3 changed files with 8 additions and 4 deletions

View File

@ -50,7 +50,11 @@ namespace OpenAuth.WebApi.Model.mqtt
};
var droneportinfo = _cache.Set(root["gateway"]?.ToString(), data, DateTime.Now.AddMinutes(1));
}
var uavinfo = _cache.Set(root["gateway"]?.ToString() + "_osd", payload, DateTime.Now.AddMonths(1));
if (!string.IsNullOrEmpty(root["data"]?["latitude"]?.ToString() ?? ""))
{
var uavinfo = _cache.Set(root["gateway"]?.ToString() + "_osd", payload, DateTime.Now.AddMonths(1));
}
// 自定义处理逻辑
//return Task.CompletedTask;
}

View File

@ -189,8 +189,8 @@ namespace OpenAuth.WebApi
services.AddHostedService<DelayedExecutionService>();
#region rabbitmq
services.AddSingleton<RabbitMqListenerService>();
services.AddHostedService(sp => sp.GetRequiredService<RabbitMqListenerService>());
//services.AddSingleton<RabbitMqListenerService>();
//services.AddHostedService(sp => sp.GetRequiredService<RabbitMqListenerService>());
#endregion
#region AppSetting

View File

@ -23,7 +23,7 @@
//
"RedisConf": {
//"Conn": "192.168.10.163:6379,password=123456",
"Conn": "127.0.0.1:9205,password=123456",
"Conn": "127.0.0.1:6379,password=123456",
"Database": 7
},
//redis