fix: login failure on U31 the new war & U30.5 sisters of parvos (#1943)
Reviewed-on: #1943 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
8eefd67d79
commit
12b6e5d16e
@ -99,7 +99,6 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
|
|||||||
id: account.id,
|
id: account.id,
|
||||||
DisplayName: account.DisplayName,
|
DisplayName: account.DisplayName,
|
||||||
CountryCode: account.CountryCode,
|
CountryCode: account.CountryCode,
|
||||||
ClientType: account.ClientType,
|
|
||||||
ForceLogoutVersion: account.ForceLogoutVersion,
|
ForceLogoutVersion: account.ForceLogoutVersion,
|
||||||
AmazonAuthToken: account.AmazonAuthToken,
|
AmazonAuthToken: account.AmazonAuthToken,
|
||||||
AmazonRefreshToken: account.AmazonRefreshToken,
|
AmazonRefreshToken: account.AmazonRefreshToken,
|
||||||
@ -112,12 +111,15 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
|
|||||||
DTLS: 99,
|
DTLS: 99,
|
||||||
BuildLabel: buildLabel
|
BuildLabel: buildLabel
|
||||||
};
|
};
|
||||||
if (version_compare(buildLabel, "2022.09.06.19.24") >= 0) {
|
if (version_compare(buildLabel, "2022.04.29.12.53") >= 0) {
|
||||||
resp.CrossPlatformAllowed = account.CrossPlatformAllowed;
|
resp.ClientType = account.ClientType;
|
||||||
resp.HUB = `https://${myAddress}/api/`;
|
if (version_compare(buildLabel, "2022.09.06.19.24") >= 0) {
|
||||||
resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
|
resp.CrossPlatformAllowed = account.CrossPlatformAllowed;
|
||||||
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
|
resp.HUB = `https://${myAddress}/api/`;
|
||||||
resp.platformCDNs = [`https://${myAddress}/`];
|
resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
|
||||||
|
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
|
||||||
|
resp.platformCDNs = [`https://${myAddress}/`];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return resp;
|
return resp;
|
||||||
|
@ -3,7 +3,7 @@ import { Types } from "mongoose";
|
|||||||
export interface IAccountAndLoginResponseCommons {
|
export interface IAccountAndLoginResponseCommons {
|
||||||
DisplayName: string;
|
DisplayName: string;
|
||||||
CountryCode: string;
|
CountryCode: string;
|
||||||
ClientType: string;
|
ClientType?: string;
|
||||||
CrossPlatformAllowed?: boolean;
|
CrossPlatformAllowed?: boolean;
|
||||||
ForceLogoutVersion: number;
|
ForceLogoutVersion: number;
|
||||||
AmazonAuthToken?: string;
|
AmazonAuthToken?: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user