add ActiveUserRecordDTO.IsAuthenticated

This commit is contained in:
Aigio Liu
2021-12-10 22:45:42 +08:00
parent 0c9c66fe1d
commit 4a802a88d6
2 changed files with 9 additions and 0 deletions
@@ -107,6 +107,14 @@ namespace System.Application.Models
[S_JsonProperty("10")]
public ArchitectureFlags ProcessArch { get; set; } = RuntimeInformation.ProcessArchitecture.Convert(false);
/// <summary>
/// 是否已登录账号
/// </summary>
[MPKey(11)]
[N_JsonProperty("11")]
[S_JsonProperty("11")]
public bool? IsAuthenticated { get; set; }
bool IExplicitHasValue.ExplicitHasValue()
{
return Type.IsDefined() && Platform.IsDefined() && DeviceIdiom.IsDefined() && !string.IsNullOrWhiteSpace(OSVersion) && ProcessArch.IsDefined();
+1
View File
@@ -499,6 +499,7 @@ namespace System.Application
SumScreenWidth = screens.All.Sum(x => x.Bounds.Width),
SumScreenHeight = screens.All.Sum(x => x.Bounds.Height),
#endif
IsAuthenticated = UserService.Current.IsAuthenticated,
};
Guid? lastNotificationRecordId = default;
if (type == ActiveUserType.OnStartup)