fix manual input gacha url no auth_appid crash

This commit is contained in:
DismissedLight
2023-09-26 23:31:55 +08:00
parent 8caef9af0c
commit df23fe54d6
2 changed files with 1 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ internal sealed partial class GachaLogQueryManualInputProvider : IGachaLogQueryP
if (isOk) if (isOk)
{ {
QueryString query = QueryString.Parse(queryString); QueryString query = QueryString.Parse(queryString);
if (query["auth_appid"] == "webview_gacha") if (query.TryGetValue("auth_appid", out string? appId) && appId is "webview_gacha")
{ {
string queryLanguageCode = query["lang"]; string queryLanguageCode = query["lang"];
if (metadataOptions.IsCurrentLocale(queryLanguageCode)) if (metadataOptions.IsCurrentLocale(queryLanguageCode))

View File

@@ -90,15 +90,6 @@ internal sealed partial class LaunchScheme
IsOversea = true, IsOversea = true,
}; };
private static readonly LaunchScheme ServerGlobalChannelDefaultSubChannelDefault = new()
{
LauncherId = SdkStaticLauncherGlobalId,
Key = SdkStaticLauncherGlobalKey,
Channel = ChannelType.Default,
SubChannel = SubChannelType.Default,
IsOversea = true,
};
/// <summary> /// <summary>
/// 获取已知的启动方案 /// 获取已知的启动方案
/// </summary> /// </summary>