From e39a108c645814b683f85a1d1d88e29db8e0fc6f Mon Sep 17 00:00:00 2001 From: Eric-Joker <1277243150@qq.com> Date: Thu, 19 Sep 2024 15:15:42 +0800 Subject: [PATCH] fix: ZZZ timezone error --- src/Starward/Services/Gacha/ZZZGachaService.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Starward/Services/Gacha/ZZZGachaService.cs b/src/Starward/Services/Gacha/ZZZGachaService.cs index 4646c60fd..ccf2e5851 100644 --- a/src/Starward/Services/Gacha/ZZZGachaService.cs +++ b/src/Starward/Services/Gacha/ZZZGachaService.cs @@ -80,7 +80,6 @@ public Dictionary GetItemsInfo() } - public override (List GachaStats, List ItemStats) GetGachaTypeStats(long uid) { var statsList = new List(); @@ -338,10 +337,10 @@ public UIGF40Game() { } public UIGF40Game(long uid, List list) { this.uid = uid; - timezone = uid.ToString().FirstOrDefault() switch + timezone = uid.ToString().Length == 8 ? 8 : uid.ToString()[..2] switch { - '6' => -5, - '7' => 1, + "10" => -5, + "15" => 1, _ => 8, }; lang = list.FirstOrDefault()?.Lang ?? "";