[add] 新增環境

This commit is contained in:
2022-09-06 16:55:24 +08:00
parent 8edd4b29b7
commit 37be2a01b1
4 changed files with 107 additions and 28 deletions

View File

@@ -3,8 +3,8 @@ export class BJ_Casino_Deeplink {
//#region public
public Servertype: any[] = [5, ["不選擇版本", "Web", "Out", "Submit", "Internal_release", "Internal_Dev"]];
public Hostport: any[] = [1, ["不選擇環境", "內版", "肉乾9006", "肉乾9007", "肉乾9008", "肉乾9009", "賴宏", "40", "送審", "外版", "testing1", "testing2", "testing3"]];
public Servertype: any[] = [5, ["不選擇版本", "Web", "Out", "Submit", "Internal_release", "Internal_Dev", "Out_B2B", "QA", "Test"]];
public Hostport: any[] = [1, ["不選擇環境", "內版", "肉乾9006", "肉乾9007", "肉乾9008", "肉乾9009", "賴宏", "40", "送審", "外版", "QA", "Test", "testing1", "testing2", "testing3"]];
public Patch: any[] = [1, [
"不選擇資源路徑",
"內版",
@@ -14,9 +14,12 @@ export class BJ_Casino_Deeplink {
"alex",
"bowei",
"建喵-內版",
"建喵-Test",
"建喵-B2B",
"建喵-送審",
"建喵-外版",
"QA",
"Test",
"打包機-內版",
"打包機-B2B",
"打包機-送審",
@@ -219,6 +222,16 @@ export class BJ_Casino_Deeplink {
}
}
public Install_Alex() {
if (this._isAndroid) {
window.open("http://220.134.195.1/public/bonus_casino/html5/alex/RedBeanTest/BJ_Casino-debug.apk?v=" + Date.now(), "_self");
} else if (this._isiOS) {
alert("iOS不提供");
} else {
window.open("http://220.134.195.1/public/bonus_casino/html5/alex/RedBeanTest/BJ_Casino-debug.apk?v=" + Date.now(), "_blank");
}
}
public Install_Bowei() {
if (this._isAndroid) {
window.open("http://220.134.195.1/public/bonus_casino/html5/bowei/BJ_Casino-debug.apk?v=" + Date.now(), "_self");
@@ -241,9 +254,24 @@ export class BJ_Casino_Deeplink {
}
}
public OnclickWanOpen() {
public OnclickOpenDevTools() {
this._client.PopupVisible.value = true;
// this.OnclickOpen(true);
this._client.PopupInfo.value = "請輸入IP";
this._client.PopupCallback.value = (content: string) => {
const url: string = `devtools://devtools/bundled/js_app.html?v8only=true&ws=${content}:6086/00010002-0003-4004-8005-000600070008`;
// const url: string = `https://devtools/bundled/js_app.html?v8only=true&ws=${content}:6086/00010002-0003-4004-8005-000600070008`;
// window.open(url, "_blank");
alert(url);
};
}
public OnclickWanOpen() {
let self: this = this;
this._client.PopupVisible.value = true;
this._client.PopupInfo.value = "請輸入裝置碼";
this._client.PopupCallback.value = (content: string) => {
self.OnclickOpen(true, { deviceid: content })
};
}
public OnclickOpen(isWan: boolean = false, obj: Object = {}) {
@@ -338,22 +366,36 @@ export class BJ_Casino_Deeplink {
break;
}
// testing1
// QA
case 10: {
URLscheme["host"] = "https://qa.online-bj.com";
URLscheme["port"] = "9005";
break;
}
// Test
case 11: {
URLscheme["host"] = "https://bot.online-bj.com";
URLscheme["port"] = "9005";
break;
}
// testing1
case 12: {
URLscheme["host"] = "http://bj-testing1.casino.catan.com.tw";
URLscheme["port"] = "9005";
break;
}
// testing2
case 11: {
case 13: {
URLscheme["host"] = "http://bj-testing2.casino.catan.com.tw";
URLscheme["port"] = "9005";
break;
}
// testing3
case 12: {
case 14: {
URLscheme["host"] = "http://bj-testing3.casino.catan.com.tw";
URLscheme["port"] = "9005";
break;
@@ -419,44 +461,62 @@ export class BJ_Casino_Deeplink {
break;
}
// jianmiau-Release
// jianmiau-Test
case 8: {
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Testing/";
break;
}
// jianmiau-Release
case 9: {
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Internal-Release/";
break;
}
// jianmiau-Submit
case 9: {
case 10: {
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Submit/";
break;
}
// jianmiau-Out
case 10: {
case 11: {
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Out/";
break;
}
// 108-Dev
case 11: {
// QA
case 12: {
URLscheme["patch"] = "https://patch-qa.online-bj.com/game/";
break;
}
// Test
case 13: {
URLscheme["patch"] = "https://patch-bot.online-bj.com/game/";
break;
}
// 打包機-Dev
case 14: {
URLscheme["patch"] = "http://192.168.5.108/BJ-Internal-Dev/";
break;
}
// 108-Release
case 12: {
// 打包機-Release
case 15: {
URLscheme["patch"] = "http://192.168.5.108/BJ-Internal-Release/";
break;
}
// 108-Submit
case 13: {
// 打包機-Submit
case 16: {
URLscheme["patch"] = "http://192.168.5.108/BJ-Submit/";
break;
}
// 108-Out
case 14: {
// 打包機-Out
case 17: {
URLscheme["patch"] = "http://192.168.5.108/BJ-Out/";
break;
}