From f8ff1988bba2f1a92a9eb21a3970118f5feeabf5 Mon Sep 17 00:00:00 2001 From: DismissedLight <1686188646@qq.com> Date: Sun, 5 Feb 2023 21:06:41 +0800 Subject: [PATCH] update readme --- README.md | 9 ++++++++- .../Web/Hoyolab/Hk4e/Event/GachaInfo/GachaInfoClient.cs | 2 ++ .../Hoyolab/Hk4e/Event/GachaInfo/GachaLogConfigration.cs | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7aa8977a..3fa21219 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,13 @@ ![](https://repository-images.githubusercontent.com/482734649/5f8cf574-2ef0-43e9-aa8d-6cf094b54dd9) -现已上架 [微软商店](https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52) +## 下载使用 + +[![](https://get.microsoft.com/images/zh-cn%20light.svg)](https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52) + +## 贡献 + +* [向我们提交 PR](https://github.com/DGP-Studio/Snap.Hutao/pulls) +* [在 Crowdin 上进行本地化](https://crowdin.com/project/snap-hutao) ## 特别感谢 diff --git a/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Hk4e/Event/GachaInfo/GachaInfoClient.cs b/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Hk4e/Event/GachaInfo/GachaInfoClient.cs index cdfe3d06..80516df3 100644 --- a/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Hk4e/Event/GachaInfo/GachaInfoClient.cs +++ b/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Hk4e/Event/GachaInfo/GachaInfoClient.cs @@ -39,6 +39,8 @@ internal class GachaInfoClient public async Task> GetGachaLogPageAsync(GachaLogConfigration config, CancellationToken token = default) { string query = config.AsQuery(); + + // TODO: fix oversea behavior string url = query.Contains("hoyoverse.com") ? ApiOsEndpoints.GachaInfoGetGachaLog(query) : ApiEndpoints.GachaInfoGetGachaLog(query); diff --git a/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Hk4e/Event/GachaInfo/GachaLogConfigration.cs b/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Hk4e/Event/GachaInfo/GachaLogConfigration.cs index 1a0bad38..015d80cf 100644 --- a/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Hk4e/Event/GachaInfo/GachaLogConfigration.cs +++ b/src/Snap.Hutao/Snap.Hutao/Web/Hoyolab/Hk4e/Event/GachaInfo/GachaLogConfigration.cs @@ -47,6 +47,11 @@ public struct GachaLogConfigration EndId = endId; } + /// + /// 是否为国际服 + /// + public bool IsOversea { get; set; } + /// /// 结束Id /// 控制API返回的分页