This commit is contained in:
parent
ed244bd6ae
commit
b3eb7c19ed
@ -1894,7 +1894,7 @@
|
||||
"__id__": 9
|
||||
},
|
||||
"_children": [],
|
||||
"_active": false,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 50
|
||||
@ -1907,7 +1907,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": -803,
|
||||
"y": -850,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
|
||||
@ -13,6 +13,7 @@ let currency = "THB"
|
||||
let supportUrl = ""
|
||||
let oddsUrl = ""
|
||||
let historyUrl = ""
|
||||
let isRB7 = false;
|
||||
|
||||
export function getOddsUrl() {
|
||||
return oddsUrl;
|
||||
@ -30,7 +31,10 @@ export function getLanguage() {
|
||||
// return 'zh';
|
||||
return language;
|
||||
}
|
||||
|
||||
export function getIsRB7() {
|
||||
// return true;
|
||||
return isRB7;
|
||||
}
|
||||
export function initReqAddr() {
|
||||
let partHost = ".rpfafafahkdev.com";
|
||||
if (!PREVIEW) {
|
||||
@ -46,7 +50,12 @@ export function initReqAddr() {
|
||||
if (c) {
|
||||
currency = c
|
||||
}
|
||||
|
||||
// brand=rb7
|
||||
const rb7 = qs.get("brand");
|
||||
if (rb7) {
|
||||
isRB7 = rb7 == "rb7";
|
||||
}
|
||||
|
||||
const dotidx = location.host.indexOf('.')
|
||||
partHost = location.host.slice(dotidx)
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { _decorator, Component, Node, ProgressBar, Label, Button, view, VideoPlayer, UITransform, AssetManager, tween, ResolutionPolicy, game, director, Director, sys, macro, JsonAsset } from 'cc';
|
||||
import { callGameApi, getLanguage, initReqAddr } from './comm';
|
||||
import { callGameApi, getIsRB7, getLanguage, initReqAddr } from './comm';
|
||||
import { GameDataManager } from './manager/GameDataManager';
|
||||
import { ResManager } from './manager/ResManager';
|
||||
import { AudioManager } from './manager/AudioManager';
|
||||
@ -59,6 +59,7 @@ export class LoadingUI extends Component {
|
||||
async start() {
|
||||
try {
|
||||
initReqAddr();
|
||||
this.LoadingUINode.getChildByName('Logo_RB7').active = getIsRB7();
|
||||
await I18nManager.instance.init(getLanguage(), this.languageJson);
|
||||
I18nManager.instance.updateSceneRenderers();
|
||||
|
||||
@ -92,7 +93,6 @@ export class LoadingUI extends Component {
|
||||
try {
|
||||
// 更新进度条到 0.6
|
||||
this.updateProgress(0.6);
|
||||
|
||||
this.tipLabel.string = `${I18nManager.instance.t('Loading')}...`;
|
||||
let gameInfo = await callGameApi("gameinfo", {});
|
||||
if (!gameInfo) throw new Error('Get game info failed');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user