Update app.ts to enforce HTTPS for base URL
This commit is contained in:
@@ -39,7 +39,7 @@ App<IAppOption>({
|
||||
if (gameServerHttp) {
|
||||
console.log('远程配置获取成功:', gameServerHttp);
|
||||
// 确保 URL 包含协议头
|
||||
const finalUrl = gameServerHttp.startsWith('http') ? gameServerHttp : `http://${gameServerHttp}`;
|
||||
const finalUrl = gameServerHttp.startsWith('https') ? gameServerHttp : `https://${gameServerHttp}`;
|
||||
// 更新全局配置
|
||||
config.updateBaseUrl(finalUrl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user