集成CSRedis分布式存储,调整创建者和更新者字段,登录RSA使用配置文件配置私钥

This commit is contained in:
2023-09-22 01:09:47 +08:00
parent de76f5872a
commit d3556cc058
25 changed files with 95 additions and 33 deletions
@@ -91,6 +91,14 @@ namespace Infrastructure.Extensions
return uid;
}
public static string? GetNickName(this HttpContext context)
{
var nickName = context.User.FindFirstValue("NickName");
if (string.IsNullOrEmpty(nickName))
nickName = null;
return nickName;
}
/// <summary>
/// 判断是否是管理员