返回提交历史
Modified
src/controllers/api/loginController.ts
+3
-3
XFEstudio/SpaceNinjaServer
chore: fix unable to login in U13 (#2989)
Reviewed-on: https://www.onlyg.it/OpenWF/SpaceNinjaServer/pulls/2989 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
b8d0924f
代码差异
1 个文件
+3
-3
@@ -114,11 +114,11 @@ const createLoginResponse = (
114
114
Nonce: account.Nonce,
115
115
BuildLabel: buildLabel
116
116
};
117
if (version_compare(buildLabel, "2014.10.24.08.24") >= 0) {
118
// U15 and up
117
if (version_compare(buildLabel, "2014.04.10.17.47") >= 0) {
118
// U13 and up
119
119
resp.CountryCode = account.CountryCode;
120
120
} else {
121
// U8
121
// U12 and down
122
122
resp.NatHash =
123
123
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
124
124
resp.SteamId = "0";