推送规则,异常停机推送
This commit is contained in:
@@ -84,7 +84,7 @@ public class UserManager : IUserManager, IScoped
|
||||
/// </summary>
|
||||
public string UserId
|
||||
{
|
||||
get => _user.FindFirst(ClaimConst.CLAINMUSERID)?.Value;
|
||||
get => _user?.FindFirst(ClaimConst.CLAINMUSERID)?.Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -128,7 +128,7 @@ public class UserManager : IUserManager, IScoped
|
||||
/// </summary>
|
||||
public ConnectionConfigOptions ConnectionConfig
|
||||
{
|
||||
get => _user.FindFirst(ClaimConst.CONNECTIONCONFIG)?.Value.ToObject<ConnectionConfigOptions>();
|
||||
get => _user?.FindFirst(ClaimConst.CONNECTIONCONFIG)?.Value.ToObject<ConnectionConfigOptions>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user