Merge branch 'refs/heads/abp' into digital-collectibles
This commit is contained in:
@@ -78,7 +78,12 @@ namespace Yi.Framework.ChatHub.Domain.Managers
|
|||||||
public async Task<ChatOnlineUserCacheItem?> GetUserAsync(Guid userId)
|
public async Task<ChatOnlineUserCacheItem?> GetUserAsync(Guid userId)
|
||||||
{
|
{
|
||||||
var key = new ChatOnlineUserCacheKey(CacheKeyPrefix);
|
var key = new ChatOnlineUserCacheKey(CacheKeyPrefix);
|
||||||
var cacheUser = System.Text.Json.JsonSerializer.Deserialize<ChatOnlineUserCacheItem>(await RedisClient.HGetAsync(key.GetKey(), key.GetField(userId)));
|
var cacheUserOrNull= await RedisClient.HGetAsync(key.GetKey(), key.GetField(userId));
|
||||||
|
if (cacheUserOrNull is null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var cacheUser = System.Text.Json.JsonSerializer.Deserialize<ChatOnlineUserCacheItem>(cacheUserOrNull);
|
||||||
return cacheUser;
|
return cacheUser;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ namespace Yi.Abp.Web
|
|||||||
{
|
{
|
||||||
//默认关闭,开启会有大量的审计日志
|
//默认关闭,开启会有大量的审计日志
|
||||||
optios.IsEnabled = true;
|
optios.IsEnabled = true;
|
||||||
//审计日志过滤器
|
//审计日志过滤器,符合条件的才记录
|
||||||
optios.AlwaysLogSelectors.Add(x => Task.FromResult(!x.Url.StartsWith("/api/app/file/")));
|
optios.AlwaysLogSelectors.Add(x => Task.FromResult(x.Url is null?true:!x.Url.StartsWith("/api/app/file/")));
|
||||||
});
|
});
|
||||||
|
|
||||||
//采用furion格式的规范化api,默认不开启,使用abp优雅的方式
|
//采用furion格式的规范化api,默认不开启,使用abp优雅的方式
|
||||||
|
|||||||
Reference in New Issue
Block a user