返回提交历史
Modified
src/controllers/api/loginController.ts
+8
-6
Modified
src/types/loginTypes.ts
+2
-2
XFEstudio/XFESpaceNinjaServer
fix: login failure on U31.5 angels of the zariman (#1933)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1933 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
c4b2248d
代码差异
2 个文件
+10
-8
@@ -100,7 +100,6 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
100
100
DisplayName: account.DisplayName,
101
101
CountryCode: account.CountryCode,
102
102
ClientType: account.ClientType,
103
CrossPlatformAllowed: account.CrossPlatformAllowed,
104
103
ForceLogoutVersion: account.ForceLogoutVersion,
105
104
AmazonAuthToken: account.AmazonAuthToken,
106
105
AmazonRefreshToken: account.AmazonRefreshToken,
@@ -109,14 +108,17 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
109
108
Nonce: account.Nonce,
110
109
Groups: [],
111
110
IRC: config.myIrcAddresses ?? [myAddress],
112
HUB: `https://${myAddress}/api/`,
113
111
NRS: config.NRS,
114
112
DTLS: 99,
115
BuildLabel: buildLabel,
116
MatchmakingBuildId: buildConfig.matchmakingBuildId
113
BuildLabel: buildLabel
117
114
};
118
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
119
resp.platformCDNs = [`https://${myAddress}/`];
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}/`];
121
}
120
122
}
121
123
return resp;
122
124
};
@@ -4,7 +4,7 @@ export interface IAccountAndLoginResponseCommons {
4
4
DisplayName: string;
5
5
CountryCode: string;
6
6
ClientType: string;
7
CrossPlatformAllowed: boolean;
7
CrossPlatformAllowed?: boolean;
8
8
ForceLogoutVersion: number;
9
9
AmazonAuthToken?: string;
10
10
AmazonRefreshToken?: string;
@@ -46,7 +46,7 @@ export interface ILoginResponse extends IAccountAndLoginResponseCommons {
46
46
id: string;
47
47
Groups: IGroup[];
48
48
BuildLabel: string;
49
MatchmakingBuildId: string;
49
MatchmakingBuildId?: string;
50
50
platformCDNs?: string[];
51
51
NRS?: string[];
52
52
DTLS: number;