add more compatonly scheme

This commit is contained in:
Lightczx
2023-09-27 17:20:27 +08:00
parent 390b89fc82
commit a86f5e1b59
2 changed files with 15 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ internal sealed class HutaoStatisticsFactory
{
this.context = context;
// TODO: when in new verion
// due to lack of newer metadata
// this can crash
DateTimeOffset now = DateTimeOffset.Now;
avatarEvent = context.GachaEvents.Single(g => g.From < now && g.To > now && g.Type == GachaConfigType.AvatarEventWish);
avatarEvent2 = context.GachaEvents.Single(g => g.From < now && g.To > now && g.Type == GachaConfigType.AvatarEventWish2);

View File

@@ -25,6 +25,7 @@ internal sealed partial class LaunchScheme
Channel = ChannelType.Default,
SubChannel = SubChannelType.Default,
IsOversea = false,
IsCompatOnly = true,
};
private static readonly LaunchScheme ServerChineseChannelOfficialSubChannelDefault = new()
@@ -54,6 +55,16 @@ internal sealed partial class LaunchScheme
IsOversea = false,
};
private static readonly LaunchScheme ServerChineseChannelOfficialSubChannelEpicCompatOnly = new()
{
LauncherId = SdkStaticLauncherChineseId,
Key = SdkStaticLauncherChineseKey,
Channel = ChannelType.Official,
SubChannel = SubChannelType.Epic,
IsOversea = false,
IsCompatOnly = true,
};
private static readonly LaunchScheme ServerChineseChannelBilibiliSubChannelDefault = new()
{
LauncherId = SdkStaticLauncherBilibiliId,
@@ -122,6 +133,7 @@ internal sealed partial class LaunchScheme
ServerChineseChannelOfficialSubChannelDefault,
ServerChineseChannelOfficialSubChannelOfficial,
ServerChineseChannelOfficialSubChannelNoTapTap,
ServerChineseChannelOfficialSubChannelEpicCompatOnly,
// 渠道服
ServerChineseChannelBilibiliSubChannelDefault,