fix web cache query provider

This commit is contained in:
Lightczx
2024-03-13 10:45:34 +08:00
parent 65517abcb4
commit 54cbd9dfb9

View File

@@ -105,8 +105,8 @@ internal sealed partial class GachaLogQueryWebCacheProvider : IGachaLogQueryProv
{
ReadOnlySpan<byte> span = stream.ToArray();
ReadOnlySpan<byte> match = isOversea
? "https://gs.hoyoverse.com/genshin/event/e20190909gacha-v2/index.html"u8
: "https://webstatic.mihoyo.com/hk4e/event/e20190909gacha-v2/index.html"u8;
? "https://gs.hoyoverse.com/genshin/event/e20190909gacha-v3/index.html"u8
: "https://webstatic.mihoyo.com/hk4e/event/e20190909gacha-v3/index.html"u8;
int index = span.LastIndexOf(match);
if (index >= 0)