Skip to content

Commit

Permalink
add device finger print header to spiral abyss
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Nov 9, 2023
1 parent 476993d commit 09237c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Starward.Core/GameRecord/HyperionClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public override async Task<SpiralAbyssInfo> GetSpiralAbyssInfoAsync(GameRecordRo
request.Headers.Add(Referer, "https://webstatic.mihoyo.com/");
request.Headers.Add(x_rpc_app_version, AppVersion);
request.Headers.Add(x_rpc_client_type, "5");
request.Headers.Add(x_rpc_device_id, Regex.Match(role.Cookie ?? "", @"_MHYUUID=([^;]+)").Groups[1].Value);
request.Headers.Add(x_rpc_device_fp, Regex.Match(role.Cookie ?? "", @"DEVICEFP=([^;]+)").Groups[1].Value);
request.Headers.Add(X_Request_With, com_mihoyo_hyperion);
var data = await CommonSendAsync<SpiralAbyssInfo>(request, cancellationToken);
data.Uid = role.Uid;
Expand Down

0 comments on commit 09237c1

Please sign in to comment.