rb7
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 43s

This commit is contained in:
TJH 2025-10-14 10:20:13 +08:00
parent ed244bd6ae
commit b3eb7c19ed
3 changed files with 15 additions and 6 deletions

View File

@ -1894,7 +1894,7 @@
"__id__": 9 "__id__": 9
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 50 "__id__": 50
@ -1907,7 +1907,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": -803, "y": -850,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {

View File

@ -13,6 +13,7 @@ let currency = "THB"
let supportUrl = "" let supportUrl = ""
let oddsUrl = "" let oddsUrl = ""
let historyUrl = "" let historyUrl = ""
let isRB7 = false;
export function getOddsUrl() { export function getOddsUrl() {
return oddsUrl; return oddsUrl;
@ -30,7 +31,10 @@ export function getLanguage() {
// return 'zh'; // return 'zh';
return language; return language;
} }
export function getIsRB7() {
// return true;
return isRB7;
}
export function initReqAddr() { export function initReqAddr() {
let partHost = ".rpfafafahkdev.com"; let partHost = ".rpfafafahkdev.com";
if (!PREVIEW) { if (!PREVIEW) {
@ -46,7 +50,12 @@ export function initReqAddr() {
if (c) { if (c) {
currency = c currency = c
} }
// brand=rb7
const rb7 = qs.get("brand");
if (rb7) {
isRB7 = rb7 == "rb7";
}
const dotidx = location.host.indexOf('.') const dotidx = location.host.indexOf('.')
partHost = location.host.slice(dotidx) partHost = location.host.slice(dotidx)
} }

View File

@ -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 { _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 { GameDataManager } from './manager/GameDataManager';
import { ResManager } from './manager/ResManager'; import { ResManager } from './manager/ResManager';
import { AudioManager } from './manager/AudioManager'; import { AudioManager } from './manager/AudioManager';
@ -59,6 +59,7 @@ export class LoadingUI extends Component {
async start() { async start() {
try { try {
initReqAddr(); initReqAddr();
this.LoadingUINode.getChildByName('Logo_RB7').active = getIsRB7();
await I18nManager.instance.init(getLanguage(), this.languageJson); await I18nManager.instance.init(getLanguage(), this.languageJson);
I18nManager.instance.updateSceneRenderers(); I18nManager.instance.updateSceneRenderers();
@ -92,7 +93,6 @@ export class LoadingUI extends Component {
try { try {
// 更新进度条到 0.6 // 更新进度条到 0.6
this.updateProgress(0.6); this.updateProgress(0.6);
this.tipLabel.string = `${I18nManager.instance.t('Loading')}...`; this.tipLabel.string = `${I18nManager.instance.t('Loading')}...`;
let gameInfo = await callGameApi("gameinfo", {}); let gameInfo = await callGameApi("gameinfo", {});
if (!gameInfo) throw new Error('Get game info failed'); if (!gameInfo) throw new Error('Get game info failed');