update readme

This commit is contained in:
DismissedLight
2023-02-05 21:06:41 +08:00
parent f2d4f0f1d3
commit f8ff1988bb
3 changed files with 15 additions and 1 deletions

View File

@@ -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)
## 特别感谢

View File

@@ -39,6 +39,8 @@ internal class GachaInfoClient
public async Task<Response<GachaLogPage>> 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);

View File

@@ -47,6 +47,11 @@ public struct GachaLogConfigration
EndId = endId;
}
/// <summary>
/// 是否为国际服
/// </summary>
public bool IsOversea { get; set; }
/// <summary>
/// 结束Id
/// 控制API返回的分页