返回提交历史
Modified
src/app.ts
+0
-5
Modified
src/controllers/api/loginController.ts
+5
-1
XFEstudio/SpaceNinjaServer
fix: view profile on U39.1+ (#2709)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2709 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
0bf142ed
代码差异
2 个文件
+5
-6
@@ -13,8 +13,6 @@ import { payRouter } from "./routes/pay.ts";
13
13
import { statsRouter } from "./routes/stats.ts";
14
14
import { webuiRouter } from "./routes/webui.ts";
15
15
16
import { worldStateController } from "./controllers/dynamic/worldStateController.ts";
17
18
16
const app = express();
19
17
20
18
app.use((req, _res, next) => {
@@ -47,9 +45,6 @@ app.use("/pay", payRouter);
47
45
app.use("/stats", statsRouter);
48
46
app.use("/", webuiRouter);
49
47
50
// U39.1+ gets worldState from that location
51
app.get("/worldState.php", worldStateController);
52
53
48
app.use(unknownEndpointHandler);
54
49
app.use(errorHandler);
55
50
@@ -140,7 +140,11 @@ const createLoginResponse = (
140
140
resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
141
141
}
142
142
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
143
resp.platformCDNs = [`${myUrlBase}/`];
143
if (version_compare(buildLabel, "2025.08.26.09.49") >= 0) {
144
resp.platformCDNs = [`${myUrlBase}/dynamic/`];
145
} else {
146
resp.platformCDNs = [`${myUrlBase}/`];
147
}
144
148
}
145
149
return resp;
146
150
};