返回提交历史
Modified
src/controllers/api/loginController.ts
+9
-7
Modified
src/types/loginTypes.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
fix: login failure on U31 the new war & U30.5 sisters of parvos (#1943)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1943 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
12b6e5d1
代码差异
2 个文件
+10
-8
@@ -99,7 +99,6 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
99
99
id: account.id,
100
100
DisplayName: account.DisplayName,
101
101
CountryCode: account.CountryCode,
102
ClientType: account.ClientType,
103
102
ForceLogoutVersion: account.ForceLogoutVersion,
104
103
AmazonAuthToken: account.AmazonAuthToken,
105
104
AmazonRefreshToken: account.AmazonRefreshToken,
@@ -112,12 +111,15 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
112
111
DTLS: 99,
113
112
BuildLabel: buildLabel
114
113
};
115
if (version_compare(buildLabel, "2022.09.06.19.24") >= 0) {
116
resp.CrossPlatformAllowed = account.CrossPlatformAllowed;
117
resp.HUB = `https://${myAddress}/api/`;
118
resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
119
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
120
resp.platformCDNs = [`https://${myAddress}/`];
114
if (version_compare(buildLabel, "2022.04.29.12.53") >= 0) {
115
resp.ClientType = account.ClientType;
116
if (version_compare(buildLabel, "2022.09.06.19.24") >= 0) {
117
resp.CrossPlatformAllowed = account.CrossPlatformAllowed;
118
resp.HUB = `https://${myAddress}/api/`;
119
resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
120
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
121
resp.platformCDNs = [`https://${myAddress}/`];
122
}
121
123
}
122
124
}
123
125
return resp;
@@ -3,7 +3,7 @@ import { Types } from "mongoose";
3
3
export interface IAccountAndLoginResponseCommons {
4
4
DisplayName: string;
5
5
CountryCode: string;
6
ClientType: string;
6
ClientType?: string;
7
7
CrossPlatformAllowed?: boolean;
8
8
ForceLogoutVersion: number;
9
9
AmazonAuthToken?: string;