revert some region

This commit is contained in:
qhy040404
2023-12-20 15:49:18 +08:00
parent 05a8ab990c
commit 2c320fe7e6
6 changed files with 10 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ internal sealed class GenAuthKeyData
AuthAppId = authAppId;
GameBiz = gameBiz;
GameUid = int.Parse(uid.Value, CultureInfo.InvariantCulture);
Region = uid.Region.Value;
Region = uid.Region;
}
/// <summary>

View File

@@ -17,7 +17,7 @@ internal sealed class SignInData
public SignInData(PlayerUid uid, bool isOversea)
{
ActivityId = isOversea ? ApiOsEndpoints.SignInRewardActivityId : ApiEndpoints.LunaActivityId;
Region = uid.Region.Value;
Region = uid.Region;
Uid = uid.Value;
}

View File

@@ -55,7 +55,7 @@ internal sealed partial class CalculateClient
public async ValueTask<List<Avatar>> GetAvatarsAsync(UserAndUid userAndUid, CancellationToken token = default)
{
int currentPage = 1;
SyncAvatarFilter filter = new() { Uid = userAndUid.Uid.Value, Region = userAndUid.Uid.Region.Value };
SyncAvatarFilter filter = new() { Uid = userAndUid.Uid.Value, Region = userAndUid.Uid.Region };
List<Avatar> avatars = [];
Response<ListWrapper<Avatar>>? resp;

View File

@@ -20,7 +20,7 @@ internal sealed class CharacterData
{
CharacterIds = characterIds;
Uid = uid.Value;
Server = uid.Region.Value;
Server = uid.Region;
}
/// <summary>
@@ -39,5 +39,6 @@ internal sealed class CharacterData
/// 服务器
/// </summary>
[JsonPropertyName("server")]
public string Server { get; }
[JsonConverter(typeof(RegionConverter))]
public Region Server { get; }
}

View File

@@ -22,11 +22,10 @@ internal sealed class Role
public string Nickname { get; set; } = default!;
/// <summary>
/// 服务器
/// 服务器名称
/// </summary>
[JsonPropertyName("region")]
[JsonConverter(typeof(RegionConverter))]
public Region Region { get; set; } = default!;
public string Region { get; set; } = default!;
/// <summary>
/// 等级

View File

@@ -23,11 +23,10 @@ internal sealed class BasicRoleInfo
public string Nickname { get; set; } = default!;
/// <summary>
/// 区域代码
/// 服务器名称
/// </summary>
[JsonPropertyName("region")]
[JsonConverter(typeof(RegionConverter))]
public Region Region { get; set; } = default!;
public string Region { get; set; } = default!;
/// <summary>
/// 等级