diff --git a/src/ST.Client/Repositories/Implementation/GameAccountPlatformAuthenticatorRepository.cs b/src/ST.Client/Repositories/Implementation/GameAccountPlatformAuthenticatorRepository.cs index 4d588018e..a2f5e2ff0 100644 --- a/src/ST.Client/Repositories/Implementation/GameAccountPlatformAuthenticatorRepository.cs +++ b/src/ST.Client/Repositories/Implementation/GameAccountPlatformAuthenticatorRepository.cs @@ -112,7 +112,7 @@ namespace System.Application.Repositories.Implementation (var notSecondaryPassword, var encryptionMode) = GetEncryptionMode2(isLocal, secondaryPassword); - var name_bytes = await ss.E(item.Name, encryptionMode, secondaryPassword); + var name_bytes = await ss.E(item.Name ?? string.Empty, encryptionMode, secondaryPassword); name_bytes = name_bytes.ThrowIsNull(nameof(name_bytes)); var value_bytes = await ss.EB(value, encryptionMode, secondaryPassword); diff --git a/src/ST.Services.CloudService/Models/GAPAuthenticators/IGAPAuthenticatorDTO.cs b/src/ST.Services.CloudService/Models/GAPAuthenticators/IGAPAuthenticatorDTO.cs index ae7d73c92..56b7154dc 100644 --- a/src/ST.Services.CloudService/Models/GAPAuthenticators/IGAPAuthenticatorDTO.cs +++ b/src/ST.Services.CloudService/Models/GAPAuthenticators/IGAPAuthenticatorDTO.cs @@ -1,4 +1,4 @@ -namespace System.Application.Models +namespace System.Application.Models { /// /// 游戏平台令牌可传输模型 @@ -7,7 +7,7 @@ { ushort Id { get; set; } - public int Index { get; set; } + int Index { get; set; } string Name { get; set; }