Compare commits
2 Commits
8f63c10dd8
...
5bb38d60e0
| Author | SHA1 | Date |
|---|---|---|
|
|
5bb38d60e0 | |
|
|
74d9c313d7 |
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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配置
|
||||
|
|
|
|||
Loading…
Reference in New Issue