修复Hybrid HTTP
Some checks failed
build / build (api, amd64, linux) (push) Failing after -49s
build / build (api, arm64, linux) (push) Failing after -51s
build / build (api.exe, amd64, windows) (push) Failing after -51s

This commit is contained in:
CN-JS-HuiBai
2026-04-17 23:20:31 +08:00
parent 97f0672729
commit a3023fec39
2 changed files with 12 additions and 2 deletions

View File

@@ -27258,7 +27258,15 @@ const LL = [
];
const DL = FE.create({
baseURL: (function () {
const e = window.settings?.base_url || "/";
let e = window.settings?.base_url || "/";
if (
"undefined" != typeof window &&
"https:" === window.location?.protocol &&
"string" == typeof e &&
e.startsWith("http://")
) {
e = "/";
}
return e.endsWith("/") ? e + "api/v2" : e + "/api/v2";
})(),
timeout: 3e4,