i hope some fix

This commit is contained in:
AlessandroCH
2025-05-23 23:11:58 +02:00
parent 482197b5fe
commit 62df1581a9
2 changed files with 2 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ namespace Campofinale.Http
if (account != null) if (account != null)
{ {
resp = "{\"data\": { \"uid\": \"" + account.id + "\", \"code\": \"" + account.grantToken + "\" }, \"msg\": \"OK\", \"status\": 0, \"type\": \"A\"}"; resp = "{\"data\": { \"token\": \"" + account.token + "\", \"uid\": \"" + account.id + "\", \"code\": \"" + account.grantToken + "\" }, \"msg\": \"OK\", \"status\": 0, \"type\": \"A\"}";
} }
ctx.Response.StatusCode = 200; ctx.Response.StatusCode = 200;

View File

@@ -57,7 +57,7 @@ namespace Campofinale.Packets.Cs
// rsp.ServerPublicKey = ByteString.CopyFrom(encryptedEncKey); // rsp.ServerPublicKey = ByteString.CopyFrom(encryptedEncKey);
CSChaCha20 cipher = new CSChaCha20(encKey, serverEncrypNonce, 1); CSChaCha20 cipher = new CSChaCha20(encKey, serverEncrypNonce, 1);
if (req.ClientVersion == GameConstants.GAME_VERSION) if (req.ClientVersion == GameConstants.GAME_VERSION || req.ClientVersion == GameConstants.GAME_VERSION_ANDROID)
{ {
if (account == null) if (account == null)
{ {