Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Update T544.cs (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
Awbugl authored Aug 27, 2023
1 parent 5908b16 commit f5147ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Konata.Core/Packets/Tlv/Model/T544.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ public T544Body(uint subCmd, int v, string sdkVersion, byte[] guid, uint userId)
var salt = new TlvBody();
if (v == 2) // Tlv544v2
{
salt.PutUintLE(0);
salt.PutUintBE(0);
salt.PutBytes(guid);
salt.PutBytes(Encoding.ASCII.GetBytes(sdkVersion));
salt.PutUintLE(subCmd);
salt.PutUintLE(0);
salt.PutUintBE(subCmd);
salt.PutUintBE(0);
}
else
{
salt.PutUintLE(userId);
salt.PutUintBE(userId);
salt.PutBytes(guid);
salt.PutBytes(Encoding.ASCII.GetBytes(sdkVersion));
salt.PutUintLE(subCmd);
salt.PutUintBE(subCmd);
}
var sign = Algorithm.Sign((uint)(DateTime.UtcNow.Ticks / 10), salt.GetBytes());
PutBytes(sign);
Expand Down

0 comments on commit f5147ec

Please sign in to comment.