diff --git a/src/Snap.Hutao/Snap.Hutao/Web/Bridge/MiHoYoJSInterface.cs b/src/Snap.Hutao/Snap.Hutao/Web/Bridge/MiHoYoJSInterface.cs index 644a0f7e..360e7a6a 100644 --- a/src/Snap.Hutao/Snap.Hutao/Web/Bridge/MiHoYoJSInterface.cs +++ b/src/Snap.Hutao/Snap.Hutao/Web/Bridge/MiHoYoJSInterface.cs @@ -237,14 +237,21 @@ internal class MiHoYoJSInterface /// Http请求头 public virtual JsResult> GetHttpRequestHeader(JsParam param) { + Dictionary headers = new() + { + { "x-rpc-client_type", "5" }, + { "x-rpc-device_id", HoyolabOptions.DeviceId }, + { "x-rpc-app_version", SaltConstants.CNVersion }, + }; + + if (!userAndUid.IsOversea) + { + headers.Add("x-rpc-device_fp", userAndUid.User.Fingerprint ?? string.Empty); + } + return new() { - Data = new Dictionary() - { - { "x-rpc-client_type", "5" }, - { "x-rpc-device_id", HoyolabOptions.DeviceId }, - { "x-rpc-app_version", SaltConstants.CNVersion }, - }, + Data = headers, }; }