增加版本号配置
This commit is contained in:
@@ -45,6 +45,7 @@ import { PlayerDataService } from "../../chat18x/network/services/PlayerDataServ
|
||||
import proto from "db://assets/Scripts/proto/proto.pb.js";
|
||||
import { ViewManager } from "../../Main/Manager/ViewManager";
|
||||
import { MainScene } from "../MainScene";
|
||||
import { prodConfig } from "../../chat18x/config/env/prod";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -62,13 +63,16 @@ export class PreloadUI extends Component {
|
||||
private jinduBar: Node = null;
|
||||
private jinduFilled: Sprite = null;
|
||||
private VideoPlayer: VideoPlayer;
|
||||
|
||||
private appVersion: Label;
|
||||
start() {
|
||||
//Utils.addInnerEL(InnerMsgCode.UI_ShowPrompt, this, this.resiveShowPrompt)
|
||||
Utils.parseNode(this.node, this._nodeTab);
|
||||
|
||||
this.appVersion = this._nodeTab.appVersion.getComponent(Label);
|
||||
this.loginBtn = this._nodeTab.btnLogin;
|
||||
this.loginBtn.active = false;
|
||||
|
||||
this.appVersion.string = `app version: ${prodConfig.appVersion}`;
|
||||
this.VideoPlayer = this._nodeTab.VideoPlayer.getComponent(VideoPlayer);
|
||||
|
||||
GButton.BandClick(this.loginBtn, this.onLogin, this);
|
||||
|
||||
+14
-14
@@ -2,24 +2,24 @@
|
||||
* 环境的类型,接口定义
|
||||
*/
|
||||
export enum Env {
|
||||
Dev = "dev",
|
||||
Test = "test",
|
||||
Prod = "prod",
|
||||
Dev = "dev",
|
||||
Test = "test",
|
||||
Prod = "prod",
|
||||
}
|
||||
|
||||
|
||||
export interface CDNConfig {
|
||||
bgm: string;
|
||||
bgm: string;
|
||||
}
|
||||
|
||||
|
||||
export interface Endpoints {
|
||||
httpBase: string; // 业务 HTTP
|
||||
socketBase: string; // WebSocket
|
||||
cdn: CDNConfig; // 各类静态资源
|
||||
httpBase: string; // 业务 HTTP
|
||||
socketBase: string; // WebSocket
|
||||
cdn: CDNConfig; // 各类静态资源
|
||||
}
|
||||
|
||||
|
||||
export interface AppConfigShape {
|
||||
env: Env;
|
||||
endpoints: Endpoints;
|
||||
// 其他:开关、埋点、灰度、版本号……
|
||||
env: Env;
|
||||
endpoints: Endpoints;
|
||||
// 其他:开关、埋点、灰度、版本号……
|
||||
appVersion: string;
|
||||
}
|
||||
|
||||
+2
-1
@@ -11,4 +11,5 @@ export const prodConfig: AppConfigShape = {
|
||||
bgm: "https://hxzgame.vip.hnhxzkj.com/lzx/XiangQin/BGM/",
|
||||
},
|
||||
},
|
||||
};
|
||||
appVersion: "0.8.1",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user