diff --git a/Campofinale/Http/SDK.cs b/Campofinale/Http/SDK.cs index 6543039..f6261a4 100644 --- a/Campofinale/Http/SDK.cs +++ b/Campofinale/Http/SDK.cs @@ -140,7 +140,7 @@ namespace Campofinale.Http 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; diff --git a/Campofinale/Packets/Cs/HandleCsLogin.cs b/Campofinale/Packets/Cs/HandleCsLogin.cs index 8ba75f1..78c475d 100644 --- a/Campofinale/Packets/Cs/HandleCsLogin.cs +++ b/Campofinale/Packets/Cs/HandleCsLogin.cs @@ -57,7 +57,7 @@ namespace Campofinale.Packets.Cs // rsp.ServerPublicKey = ByteString.CopyFrom(encryptedEncKey); 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) {