Skip to content

Commit

Permalink
Updated AppID
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Sep 29, 2023
1 parent c5ab982 commit 1ade295
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions Lagrange.Core/Common/BotAppInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public class BotAppInfo
public uint MainSigMap { get; private set; }

public ushort SubSigMap { get; private set; }

public ushort NTLoginType { get; private set; }

private static readonly BotAppInfo Linux = new()
{
Expand All @@ -63,7 +65,8 @@ public class BotAppInfo
AppClientVersion = 13172,

MainSigMap = 169742560,
SubSigMap = 0
SubSigMap = 0,
NTLoginType = 1
};

private static readonly BotAppInfo MacOs = new()
Expand All @@ -82,12 +85,13 @@ public class BotAppInfo
WtLoginSdk = "nt.wtlogin.0.0.1",
PackageSign = "V1_MAC_NQ_6.9.20-17153_RDM_B",
AppId = 1600001602,
SubAppId = 537138182,
AppIdQrCode = 537138182,
SubAppId = 537162356,
AppIdQrCode = 537162356,
AppClientVersion = 13172,

MainSigMap = 169742560,
SubSigMap = 0
SubSigMap = 0,
NTLoginType = 5
};

private static readonly BotAppInfo Windows = new()
Expand All @@ -111,7 +115,8 @@ public class BotAppInfo
AppClientVersion = 13172,

MainSigMap = 169742560,
SubSigMap = 0
SubSigMap = 0,
NTLoginType = 5
};

public static readonly Dictionary<Protocols, BotAppInfo> ProtocolToAppInfo = new()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static BinaryPacket BuildNTLoginPacket(BotKeystore keystore, BotAppInfo a
{
Os = appInfo.Os,
DeviceName = device.DeviceName,
Type = 1,
Type = appInfo.NTLoginType,
Guid = device.Guid.ToByteArray()
},
Version = new SsoNTLoginVersion
Expand Down

0 comments on commit 1ade295

Please sign in to comment.