mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
add more compatonly scheme
This commit is contained in:
@@ -23,6 +23,9 @@ internal sealed class HutaoStatisticsFactory
|
|||||||
{
|
{
|
||||||
this.context = context;
|
this.context = context;
|
||||||
|
|
||||||
|
// TODO: when in new verion
|
||||||
|
// due to lack of newer metadata
|
||||||
|
// this can crash
|
||||||
DateTimeOffset now = DateTimeOffset.Now;
|
DateTimeOffset now = DateTimeOffset.Now;
|
||||||
avatarEvent = context.GachaEvents.Single(g => g.From < now && g.To > now && g.Type == GachaConfigType.AvatarEventWish);
|
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);
|
avatarEvent2 = context.GachaEvents.Single(g => g.From < now && g.To > now && g.Type == GachaConfigType.AvatarEventWish2);
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ internal sealed partial class LaunchScheme
|
|||||||
Channel = ChannelType.Default,
|
Channel = ChannelType.Default,
|
||||||
SubChannel = SubChannelType.Default,
|
SubChannel = SubChannelType.Default,
|
||||||
IsOversea = false,
|
IsOversea = false,
|
||||||
|
IsCompatOnly = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
private static readonly LaunchScheme ServerChineseChannelOfficialSubChannelDefault = new()
|
private static readonly LaunchScheme ServerChineseChannelOfficialSubChannelDefault = new()
|
||||||
@@ -54,6 +55,16 @@ internal sealed partial class LaunchScheme
|
|||||||
IsOversea = false,
|
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()
|
private static readonly LaunchScheme ServerChineseChannelBilibiliSubChannelDefault = new()
|
||||||
{
|
{
|
||||||
LauncherId = SdkStaticLauncherBilibiliId,
|
LauncherId = SdkStaticLauncherBilibiliId,
|
||||||
@@ -122,6 +133,7 @@ internal sealed partial class LaunchScheme
|
|||||||
ServerChineseChannelOfficialSubChannelDefault,
|
ServerChineseChannelOfficialSubChannelDefault,
|
||||||
ServerChineseChannelOfficialSubChannelOfficial,
|
ServerChineseChannelOfficialSubChannelOfficial,
|
||||||
ServerChineseChannelOfficialSubChannelNoTapTap,
|
ServerChineseChannelOfficialSubChannelNoTapTap,
|
||||||
|
ServerChineseChannelOfficialSubChannelEpicCompatOnly,
|
||||||
|
|
||||||
// 渠道服
|
// 渠道服
|
||||||
ServerChineseChannelBilibiliSubChannelDefault,
|
ServerChineseChannelBilibiliSubChannelDefault,
|
||||||
|
|||||||
Reference in New Issue
Block a user