From a4c3317c1034d93991ec5aa6eb7feaa96366d25e Mon Sep 17 00:00:00 2001 From: Aigio Liu Date: Mon, 17 May 2021 22:02:42 +0800 Subject: [PATCH] fix null --- .../GameAccountPlatformAuthenticatorRepository.cs | 2 +- .../Models/GAPAuthenticators/IGAPAuthenticatorDTO.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }