mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix #1810
This commit is contained in:
@@ -236,6 +236,8 @@ internal static class ApiOsEndpoints
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public const string CalculateCompute = $"{SgPublicApi}/event/calculateos/compute";
|
public const string CalculateCompute = $"{SgPublicApi}/event/calculateos/compute";
|
||||||
|
|
||||||
|
public const string CalculateBatchCompute = $"{SgPublicApi}/event/calculateos/batch_compute";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 计算器同步角色详情 size 20
|
/// 计算器同步角色详情 size 20
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ internal sealed partial class CalculateClient
|
|||||||
};
|
};
|
||||||
|
|
||||||
HttpRequestMessageBuilder builder = httpRequestMessageBuilderFactory.Create()
|
HttpRequestMessageBuilder builder = httpRequestMessageBuilderFactory.Create()
|
||||||
.SetRequestUri(ApiEndpoints.CalculateBatchCompute)
|
.SetRequestUri(userAndUid.IsOversea ? ApiOsEndpoints.CalculateBatchCompute : ApiEndpoints.CalculateBatchCompute)
|
||||||
.SetUserCookieAndFpHeader(userAndUid.User, CookieType.Cookie)
|
.SetUserCookieAndFpHeader(userAndUid.User, CookieType.Cookie)
|
||||||
.SetReferer(userAndUid.IsOversea ? ApiOsEndpoints.ActHoyolabReferer : ApiEndpoints.WebStaticMihoyoReferer)
|
.SetReferer(userAndUid.IsOversea ? ApiOsEndpoints.ActHoyolabReferer : ApiEndpoints.WebStaticMihoyoReferer)
|
||||||
.PostJson(data);
|
.PostJson(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user