Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Revert api salt to 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure99 committed Mar 18, 2021
1 parent 9150c12 commit e489843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/Core/GenshinAPI.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Security.Cryptography;
Expand Down Expand Up @@ -85,7 +84,7 @@ private static ServerResponse<T> Request<T>(Func<WebClient, string> func)
{
client.Encoding = Encoding.UTF8;
client.Headers["x-rpc-client_type"] = "5";
client.Headers["x-rpc-app_version"] = "2.4.0";
client.Headers["x-rpc-app_version"] = "2.3.0";
client.Headers["DS"] = CreateDynamicSecret();
client.Headers["Cookie"] = MessageBus.LoginTicket;

Expand All @@ -107,7 +106,7 @@ private static string CreateDynamicSecret()
{
long time = (long) (DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;
string random = CreateRandomString(6);
string check = ComputeMd5($"salt=pbcfcvnfsm5s2w4x3lsq8caor7v8nlqm&t={time}&r={random}");
string check = ComputeMd5($"salt=h8w582wxwgqvahcdkpvdhbh2w9casgfl&t={time}&r={random}");

return $"{time},{random},{check}";
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/UpdateChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace GenshinPlayerQuery.Core
{
internal static class UpdateChecker
{
private const int NOW_VERSION = 6;
private const int NOW_VERSION = 7;
private const string VERSION_URL = "https://www.rainng.com/ser/soft/genshin-player-query/version";
private const string RELEASE_PAGE_URL = "https://github.com/Azure99/GenshinPlayerQuery/releases/";

Expand Down

0 comments on commit e489843

Please sign in to comment.