[add] 裝置碼
This commit is contained in:
parent
61bffe4315
commit
8edd4b29b7
52
package.json
52
package.json
@ -1,27 +1,27 @@
|
||||
{
|
||||
"name": "bj-casino-deeplink",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vite build",
|
||||
"build1": "vue-tsc --noEmit && vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/cli": "^5.0.4",
|
||||
"@vue/compiler-sfc": "^3.2.32",
|
||||
"bootstrap": "^5.1.3",
|
||||
"element-plus": "^2.1.9",
|
||||
"moment": "^2.29.2",
|
||||
"vue": "^3.2.25"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^2.3.1",
|
||||
"typescript": "^4.5.4",
|
||||
"vite": "^2.9.2",
|
||||
"vue-tsc": "^0.29.8"
|
||||
},
|
||||
"@vue/compiler-sfc": "file: node_modules/@vue/compiler-sfc"
|
||||
}
|
||||
"name": "bj-casino-deeplink",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "vite --host",
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vite build",
|
||||
"build1": "vue-tsc --noEmit && vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/cli": "^5.0.4",
|
||||
"@vue/compiler-sfc": "^3.2.32",
|
||||
"bootstrap": "^5.1.3",
|
||||
"element-plus": "^2.1.9",
|
||||
"moment": "^2.29.2",
|
||||
"vue": "^3.2.25"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^2.3.1",
|
||||
"typescript": "^4.5.4",
|
||||
"vite": "^2.9.2",
|
||||
"vue-tsc": "^0.29.8"
|
||||
},
|
||||
"@vue/compiler-sfc": "file: node_modules/@vue/compiler-sfc"
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { ElDialog } from 'element-plus';
|
||||
import { ref } from "vue";
|
||||
import { BJ_Casino_Deeplink } from "../script/BJ_Casino_Deeplink";
|
||||
import Popup from './Popup.vue';
|
||||
|
||||
const servertypeDefault = ref('')
|
||||
const hostportDefault = ref('')
|
||||
@ -9,103 +11,120 @@ const servertype = ref(0)
|
||||
const hostport = ref(0)
|
||||
const patch = ref(0)
|
||||
const iscustom = ref(false)
|
||||
const isBtn_WanOpen = ref(false)
|
||||
const PopupVisible = ref(false)
|
||||
const input3 = ref('')
|
||||
const self = {
|
||||
servertypeDefault: servertypeDefault,
|
||||
hostportDefault: hostportDefault,
|
||||
patchDefault: patchDefault,
|
||||
servertype: servertype,
|
||||
hostport: hostport,
|
||||
patch: patch,
|
||||
iscustom: iscustom,
|
||||
servertypeDefault: servertypeDefault,
|
||||
hostportDefault: hostportDefault,
|
||||
patchDefault: patchDefault,
|
||||
servertype: servertype,
|
||||
hostport: hostport,
|
||||
patch: patch,
|
||||
iscustom: iscustom,
|
||||
isBtn_WanOpen: isBtn_WanOpen,
|
||||
PopupVisible: PopupVisible,
|
||||
Script: null
|
||||
}
|
||||
const Script = new BJ_Casino_Deeplink(self);
|
||||
self.Script = Script;
|
||||
const ServertypeData = Script.GetServerType();
|
||||
const HostportData = Script.GetHostport();
|
||||
const Patch = Script.GetPatch();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<h1>
|
||||
<div>
|
||||
servertype:
|
||||
<el-select v-model="servertypeDefault" filterable
|
||||
@change="(data: any) => { Script.SelectServertype(data) }">
|
||||
<el-option v-for="(item, index) in ServertypeData" :key="item.value" :label="item.label"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</div>
|
||||
<div>
|
||||
hostport:
|
||||
<el-select v-model="hostportDefault" filterable
|
||||
@change="(data: any) => { Script.SelectHostport(data) }">
|
||||
<el-option v-for="(item, index) in HostportData" :key="item.value" :label="item.label"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</div>
|
||||
<div>
|
||||
patch:
|
||||
<el-select v-model="patchDefault" filterable @change="(data: any) => { Script.SelectPatch(data) }">
|
||||
<el-option v-for="(item, index) in Patch" :key="item.value" :label="item.label"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</div>
|
||||
<div>
|
||||
使用自己帶進來的URL參數
|
||||
<label class="switch">
|
||||
<input type="checkbox" id="iscustom">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<el-button type="success" @click.native="() => { Script.OnclickOpen() }" size="large" round>開啟遊戲>>
|
||||
</el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_Debug() }" size="large" round>
|
||||
安裝Debug>>
|
||||
</el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_Release() }" size="large" round>
|
||||
安裝Release>></el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_Release_Debug() }" size="large" round>
|
||||
安裝Release(可看log)>></el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_B2B() }" size="large" round>安裝B2B>>
|
||||
</el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_JM() }" size="large" round>安裝建喵版>>
|
||||
</el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_Store() }" size="large" round>APP商店>>
|
||||
</el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_Bowei() }" size="large" round>安裝柏威版>>
|
||||
</el-button>
|
||||
<div>
|
||||
<el-button type="warning" @click.native="() => { Script.Install_InternalTest(input3) }" size="large"
|
||||
round>
|
||||
前往
|
||||
</el-button>
|
||||
<el-input v-model="input3" placeholder="Google Play商店(內部測試) 版本號" class="input-with-select"
|
||||
style="width:25%; font-size:25px; text-align">
|
||||
</el-input>
|
||||
Google Play商店(內部測試) 版本號
|
||||
</div>
|
||||
<br>
|
||||
<a href="bjcasino://get/message?ClearAllCache">清空資料>></a>
|
||||
<br><br>
|
||||
<a href="bjcasino://get/message?GetOtherUserProfile=100000185">跟建喵做朋友>></a>
|
||||
<br><br>
|
||||
<a href="bjcasino://get/message?GetOtherUserProfile=100000157">跟豆豆做朋友>></a>
|
||||
<br><br>
|
||||
<a href="bjcasino://get/message?GetOtherUserProfile=100000148">跟柏威做朋友>></a>
|
||||
<br><br>
|
||||
<a href="bjcasino://get/message?OnClickChatAndChat=100000157">跟豆豆聊聊天>></a>
|
||||
<br><br>
|
||||
<a href="http://org.vicking.bj">Test>></a>
|
||||
<!-- http://220.134.195.1/public/bonus_casino/html5/jianmiau/SD_Casino_Deeplink/apple-app-site-association -->
|
||||
<br><br>
|
||||
</h1>
|
||||
</div>
|
||||
<el-dialog v-model="PopupVisible" :show-close="false">
|
||||
<Popup :APP="self" />
|
||||
</el-dialog>
|
||||
<div>
|
||||
<h1>
|
||||
<div>
|
||||
servertype:
|
||||
<el-select v-model="servertypeDefault" filterable
|
||||
@change="(data: any) => { Script.SelectServertype(data) }">
|
||||
<el-option v-for="(item, index) in ServertypeData" :key="item.value" :label="item.label"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</div>
|
||||
<div>
|
||||
hostport:
|
||||
<el-select v-model="hostportDefault" filterable
|
||||
@change="(data: any) => { Script.SelectHostport(data) }">
|
||||
<el-option v-for="(item, index) in HostportData" :key="item.value" :label="item.label"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</div>
|
||||
<div>
|
||||
patch:
|
||||
<el-select v-model="patchDefault" filterable @change="(data: any) => { Script.SelectPatch(data) }">
|
||||
<el-option v-for="(item, index) in Patch" :key="item.value" :label="item.label"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</div>
|
||||
<div>
|
||||
使用自己帶進來的URL參數
|
||||
<label class="switch">
|
||||
<input type="checkbox" id="iscustom">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<el-button type="success" @click.native="() => { Script.OnclickOpen() }" size="large" round>開啟遊戲>>
|
||||
</el-button>
|
||||
<span v-show="isBtn_WanOpen">
|
||||
<el-button type="success" @click.native="() => { Script.OnclickWanOpen() }" size="large" round>
|
||||
外網開啟遊戲>>
|
||||
</el-button>
|
||||
</span>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_Debug() }" size="large" round>
|
||||
安裝Debug>>
|
||||
</el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_Release() }" size="large" round>
|
||||
安裝Release>></el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_Release_Debug() }" size="large" round>
|
||||
安裝Release(可看log)>></el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_B2B() }" size="large" round>
|
||||
安裝B2B>>
|
||||
</el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_JM() }" size="large" round>安裝建喵版>>
|
||||
</el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_Store() }" size="large" round>
|
||||
APP商店>>
|
||||
</el-button>
|
||||
<br>
|
||||
<el-button type="primary" @click.native="() => { Script.Install_Bowei() }" size="large" round>
|
||||
安裝柏威版>>
|
||||
</el-button>
|
||||
<div>
|
||||
<el-button type="warning" @click.native="() => { Script.Install_InternalTest(+input3) }" size="large"
|
||||
round>
|
||||
前往
|
||||
</el-button>
|
||||
<el-input v-model="input3" placeholder="Google Play商店(內部測試) 版本號" class="input-with-select"
|
||||
style="width:25%; font-size:25px; text-align">
|
||||
</el-input>
|
||||
Google Play商店(內部測試) 版本號
|
||||
</div>
|
||||
<br>
|
||||
<a href="bjcasino://get/message?ClearAllCache">清空資料>></a>
|
||||
<br><br>
|
||||
<a href="bjcasino://get/message?GetOtherUserProfile=100000185">跟建喵做朋友>></a>
|
||||
<br><br>
|
||||
<a href="bjcasino://get/message?GetOtherUserProfile=100000157">跟豆豆做朋友>></a>
|
||||
<br><br>
|
||||
<a href="bjcasino://get/message?GetOtherUserProfile=100000148">跟柏威做朋友>></a>
|
||||
<br><br>
|
||||
<a href="bjcasino://get/message?OnClickChatAndChat=100000157">跟豆豆聊聊天>></a>
|
||||
<br><br>
|
||||
<a href="http://org.vicking.bj">Test>></a>
|
||||
<!-- http://220.134.195.1/public/bonus_casino/html5/jianmiau/SD_Casino_Deeplink/apple-app-site-association -->
|
||||
<br><br>
|
||||
</h1>
|
||||
</div>
|
||||
</template>
|
18
src/components/Popup.vue
Normal file
18
src/components/Popup.vue
Normal file
@ -0,0 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
|
||||
const props = defineProps<{ APP: any }>()
|
||||
|
||||
const input = ref('')
|
||||
const APP = props.APP
|
||||
function Send(content: string) {
|
||||
APP.Script.OnclickOpen(true, { deviceid: content });
|
||||
APP.PopupVisible.value = false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-input v-model="input" placeholder="請輸入裝置碼" />
|
||||
<el-button type="primary" @click.native="() => { Send(input) }" size="large" round>確定
|
||||
</el-button>
|
||||
</template>
|
@ -1,437 +1,505 @@
|
||||
|
||||
export class BJ_Casino_Deeplink {
|
||||
|
||||
//#region public
|
||||
//#region public
|
||||
|
||||
public Servertype: any[] = [5, ["不選擇版本", "Web", "Out", "Submit", "Internal_release", "Internal_Dev"]];
|
||||
public Hostport: any[] = [1, ["不選擇環境", "內版", "肉乾", "賴宏", "40", "送審", "外版", "testing1", "testing2", "testing3"]];
|
||||
public Patch: any[] = [1, [
|
||||
"不選擇資源路徑",
|
||||
"內版",
|
||||
"B2B",
|
||||
"送審",
|
||||
"外版",
|
||||
"alex",
|
||||
"bowei",
|
||||
"建喵-內版",
|
||||
"建喵-B2B",
|
||||
"建喵-送審",
|
||||
"建喵-外版",
|
||||
"打包機-內版",
|
||||
"打包機-B2B",
|
||||
"打包機-送審",
|
||||
"打包機-外版",
|
||||
]];
|
||||
public Servertype: any[] = [5, ["不選擇版本", "Web", "Out", "Submit", "Internal_release", "Internal_Dev"]];
|
||||
public Hostport: any[] = [1, ["不選擇環境", "內版", "肉乾9006", "肉乾9007", "肉乾9008", "肉乾9009", "賴宏", "40", "送審", "外版", "testing1", "testing2", "testing3"]];
|
||||
public Patch: any[] = [1, [
|
||||
"不選擇資源路徑",
|
||||
"內版",
|
||||
"B2B",
|
||||
"送審",
|
||||
"外版",
|
||||
"alex",
|
||||
"bowei",
|
||||
"建喵-內版",
|
||||
"建喵-B2B",
|
||||
"建喵-送審",
|
||||
"建喵-外版",
|
||||
"打包機-內版",
|
||||
"打包機-B2B",
|
||||
"打包機-送審",
|
||||
"打包機-外版",
|
||||
]];
|
||||
|
||||
//#endregion
|
||||
//#endregion
|
||||
|
||||
//#region private
|
||||
//#region private
|
||||
|
||||
private _client: any;
|
||||
private _client: any;
|
||||
|
||||
private _u = navigator.userAgent;
|
||||
private _isAndroid = this._u.indexOf("Android") > -1 || this._u.indexOf("Adr") > -1;
|
||||
private _isiOS = !!this._u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||
private _u = navigator.userAgent;
|
||||
private _isAndroid = this._u.indexOf("Android") > -1 || this._u.indexOf("Adr") > -1;
|
||||
private _isiOS = !!this._u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||
|
||||
//#endregion
|
||||
//#endregion
|
||||
|
||||
//#region Lifecycle
|
||||
//#region Lifecycle
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
constructor(client: any) {
|
||||
this._client = client;
|
||||
this.onLoad();
|
||||
}
|
||||
/**
|
||||
*
|
||||
*/
|
||||
constructor(client: any) {
|
||||
this._client = client;
|
||||
this.onLoad();
|
||||
}
|
||||
|
||||
public onLoad() {
|
||||
this._client.servertype.value = this.Servertype[0];
|
||||
this._client.hostport.value = this.Hostport[0];
|
||||
this._client.patch.value = this.Patch[0];
|
||||
this._client.servertypeDefault.value = this.Servertype[1][this._client.servertype.value];
|
||||
this._client.hostportDefault.value = this.Hostport[1][this._client.hostport.value];
|
||||
this._client.patchDefault.value = this.Patch[1][this._client.patch.value];
|
||||
}
|
||||
public onLoad() {
|
||||
this._client.servertype.value = this.Servertype[0];
|
||||
this._client.hostport.value = this.Hostport[0];
|
||||
this._client.patch.value = this.Patch[0];
|
||||
this._client.servertypeDefault.value = this.Servertype[1][this._client.servertype.value];
|
||||
this._client.hostportDefault.value = this.Hostport[1][this._client.hostport.value];
|
||||
this._client.patchDefault.value = this.Patch[1][this._client.patch.value];
|
||||
// this.GetLanIP();
|
||||
|
||||
//#endregion
|
||||
if (!this._isAndroid && !this._isiOS) {
|
||||
this._client.isBtn_WanOpen.value = true;
|
||||
}
|
||||
}
|
||||
|
||||
//#region Get Data
|
||||
//#endregion
|
||||
|
||||
public SelectServertype(data: any) {
|
||||
// data为el-option上:value绑定的对象
|
||||
this._client.servertype.value = data;
|
||||
}
|
||||
//#region Get Data
|
||||
|
||||
public SelectHostport(data: any) {
|
||||
// data为el-option上:value绑定的对象
|
||||
this._client.hostport.value = data;
|
||||
}
|
||||
public SelectServertype(data: any) {
|
||||
// data为el-option上:value绑定的对象
|
||||
this._client.servertype.value = data;
|
||||
}
|
||||
|
||||
public SelectPatch(data: any) {
|
||||
// data为el-option上:value绑定的对象
|
||||
this._client.patch.value = data;
|
||||
}
|
||||
public SelectHostport(data: any) {
|
||||
// data为el-option上:value绑定的对象
|
||||
this._client.hostport.value = data;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
public SelectPatch(data: any) {
|
||||
// data为el-option上:value绑定的对象
|
||||
this._client.patch.value = data;
|
||||
}
|
||||
|
||||
//#region Get Data
|
||||
//#endregion
|
||||
|
||||
public GetServerType(): { key: string; value: string; label: string; }[] {
|
||||
const servertypes: any[] = this.Servertype[1];
|
||||
let options: any[] = [];
|
||||
for (let i: number = 0; i < servertypes.length; i++) {
|
||||
const servertype = servertypes[i];
|
||||
options.push({
|
||||
value: i,
|
||||
label: servertype,
|
||||
});
|
||||
}
|
||||
return options;
|
||||
}
|
||||
//#region Get Data
|
||||
|
||||
public GetHostport(): { key: string; value: string; label: string; }[] {
|
||||
const hostports: any[] = this.Hostport[1];
|
||||
let options: any[] = [];
|
||||
for (let i: number = 0; i < hostports.length; i++) {
|
||||
const hostport = hostports[i];
|
||||
options.push({
|
||||
value: i,
|
||||
label: hostport,
|
||||
});
|
||||
}
|
||||
return options;
|
||||
}
|
||||
public GetServerType(): { key: string; value: string; label: string; }[] {
|
||||
const servertypes: any[] = this.Servertype[1];
|
||||
let options: any[] = [];
|
||||
for (let i: number = 0; i < servertypes.length; i++) {
|
||||
const servertype = servertypes[i];
|
||||
options.push({
|
||||
value: i,
|
||||
label: servertype,
|
||||
});
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
public GetPatch(): { key: string; value: string; label: string; }[] {
|
||||
const patchs: any[] = this.Patch[1];
|
||||
let options: any[] = [];
|
||||
for (let i: number = 0; i < patchs.length; i++) {
|
||||
const patch = patchs[i];
|
||||
options.push({
|
||||
value: i,
|
||||
label: patch,
|
||||
});
|
||||
}
|
||||
return options;
|
||||
}
|
||||
public GetHostport(): { key: string; value: string; label: string; }[] {
|
||||
const hostports: any[] = this.Hostport[1];
|
||||
let options: any[] = [];
|
||||
for (let i: number = 0; i < hostports.length; i++) {
|
||||
const hostport = hostports[i];
|
||||
options.push({
|
||||
value: i,
|
||||
label: hostport,
|
||||
});
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
public GetPatch(): { key: string; value: string; label: string; }[] {
|
||||
const patchs: any[] = this.Patch[1];
|
||||
let options: any[] = [];
|
||||
for (let i: number = 0; i < patchs.length; i++) {
|
||||
const patch = patchs[i];
|
||||
options.push({
|
||||
value: i,
|
||||
label: patch,
|
||||
});
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
//#region Custom
|
||||
// public async GetLanIP(): Promise<string> {
|
||||
// let run: boolean = true;
|
||||
// let ip: string = "";
|
||||
// // var url: string = "http://192.168.5.36/page/Net/";
|
||||
// var url: string = "http://220.134.195.1/public/bonus_casino/html5/jianmiau/Net/";
|
||||
// var xhr: XMLHttpRequest = new XMLHttpRequest();
|
||||
// xhr.onreadystatechange = function (): void {
|
||||
// if (xhr.readyState === 4 && (xhr.status >= 200 && xhr.status < 400)) {
|
||||
// ip = xhr.responseText;
|
||||
// run = false;
|
||||
// }
|
||||
// };
|
||||
// xhr.open("GET", url);
|
||||
// xhr.timeout = 500; // 超时时间,单位是毫秒
|
||||
// xhr.ontimeout = function (e) {
|
||||
// // XMLHttpRequest 超时。在此做某事。
|
||||
// run = false;
|
||||
// };
|
||||
// xhr.send();
|
||||
// while (run) {
|
||||
// await Tools.Sleep(1000);
|
||||
// }
|
||||
// if (ip !== "") {
|
||||
// this._isWan = false;
|
||||
// }
|
||||
// return ip;
|
||||
// }
|
||||
|
||||
public Install_Debug() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/aoh4p9vs1lrofy2/BJ_Casino-debug.apk?v=" + Date.now(), "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/z390yysswqiiii4/BJ_Casino-debug.plist", "_self");
|
||||
} else {
|
||||
window.open("https://dl.dropboxusercontent.com/s/aoh4p9vs1lrofy2/BJ_Casino-debug.apk?v=" + Date.now(), "_blank");
|
||||
window.open("https://dl.dropboxusercontent.com/s/4ki0rglk4w01ian/BJ_Casino-debug.ipa", "_blank");
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
|
||||
public Install_Release() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/6mjrw913u6ma5w8/BJ_Casino-release.apk?v=" + Date.now(), "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/9qckj6t66jgb6rw/BJ_Casino-release.plist", "_self");
|
||||
} else {
|
||||
window.open("https://dl.dropboxusercontent.com/s/6mjrw913u6ma5w8/BJ_Casino-release.apk?v=" + Date.now(), "_blank");
|
||||
window.open("https://dl.dropboxusercontent.com/s/hyyswyun3m42qbk/BJ_Casino-release.ipa?v=" + Date.now(), "_blank");
|
||||
}
|
||||
}
|
||||
//#region Custom
|
||||
|
||||
public Install_Release_Debug() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/16m2b5sncymj6f9/BJ_Casino-release-debug.apk?v=" + Date.now(), "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/wixnsxbc7ctk87f/BJ_Casino-release-debug.plist", "_self");
|
||||
} else {
|
||||
window.open("https://dl.dropboxusercontent.com/s/16m2b5sncymj6f9/BJ_Casino-release-debug.apk?v=" + Date.now(), "_blank");
|
||||
window.open("https://dl.dropboxusercontent.com/s/f6qjm1gk8jjvmhx/BJ_Casino-release-debug.ipa?v=" + Date.now(), "_blank");
|
||||
}
|
||||
}
|
||||
public Install_Debug() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/aoh4p9vs1lrofy2/BJ_Casino-debug.apk?v=" + Date.now(), "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/z390yysswqiiii4/BJ_Casino-debug.plist", "_self");
|
||||
} else {
|
||||
window.open("https://dl.dropboxusercontent.com/s/aoh4p9vs1lrofy2/BJ_Casino-debug.apk?v=" + Date.now(), "_blank");
|
||||
window.open("https://dl.dropboxusercontent.com/s/4ki0rglk4w01ian/BJ_Casino-debug.ipa", "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
public Install_B2B() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/g66xrcdfj9e093i/BJ_Casino-B2B.apk?v=" + Date.now(), "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/rrs1ev3llogrm0a/BJ_Casino-B2B.plist", "_self");
|
||||
} else {
|
||||
window.open("https://dl.dropboxusercontent.com/s/g66xrcdfj9e093i/BJ_Casino-B2B.apk?v=" + Date.now(), "_blank");
|
||||
window.open("https://dl.dropboxusercontent.com/s/fm79uc9ygrnzone/BJ_Casino-B2B.ipa?v=" + Date.now(), "_blank");
|
||||
}
|
||||
}
|
||||
public Install_Release() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/6mjrw913u6ma5w8/BJ_Casino-release.apk?v=" + Date.now(), "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/9qckj6t66jgb6rw/BJ_Casino-release.plist", "_self");
|
||||
} else {
|
||||
window.open("https://dl.dropboxusercontent.com/s/6mjrw913u6ma5w8/BJ_Casino-release.apk?v=" + Date.now(), "_blank");
|
||||
window.open("https://dl.dropboxusercontent.com/s/hyyswyun3m42qbk/BJ_Casino-release.ipa?v=" + Date.now(), "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
public Install_JM() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/9zlj6og4octmim8/BJ_Casino-JM.apk?v=" + Date.now(), "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/23mx7l7cchbvjcv/BJ_Casino-JM.plist", "_self");
|
||||
} else {
|
||||
window.open("https://dl.dropboxusercontent.com/s/9zlj6og4octmim8/BJ_Casino-JM.apk?v=" + Date.now(), "_blank");
|
||||
window.open("https://dl.dropboxusercontent.com/s/dwlil2rbfe1wi13/BJ_Casino-JM.ipa?v=" + Date.now(), "_blank");
|
||||
}
|
||||
}
|
||||
public Install_Release_Debug() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/16m2b5sncymj6f9/BJ_Casino-release-debug.apk?v=" + Date.now(), "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/wixnsxbc7ctk87f/BJ_Casino-release-debug.plist", "_self");
|
||||
} else {
|
||||
window.open("https://dl.dropboxusercontent.com/s/16m2b5sncymj6f9/BJ_Casino-release-debug.apk?v=" + Date.now(), "_blank");
|
||||
window.open("https://dl.dropboxusercontent.com/s/f6qjm1gk8jjvmhx/BJ_Casino-release-debug.ipa?v=" + Date.now(), "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
public Install_Store() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://play.google.com/store/apps/details?id=org.vicking.bj_casino", "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("https://apps.apple.com/tw/app/爆機娛樂城/id1593328573", "_self");
|
||||
} else {
|
||||
window.open("https://play.google.com/store/apps/details?id=org.vicking.bj_casino", "_blank");
|
||||
window.open("https://apps.apple.com/tw/app/爆機娛樂城/id1593328573", "_blank");
|
||||
}
|
||||
}
|
||||
public Install_B2B() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/g66xrcdfj9e093i/BJ_Casino-B2B.apk?v=" + Date.now(), "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/rrs1ev3llogrm0a/BJ_Casino-B2B.plist", "_self");
|
||||
} else {
|
||||
window.open("https://dl.dropboxusercontent.com/s/g66xrcdfj9e093i/BJ_Casino-B2B.apk?v=" + Date.now(), "_blank");
|
||||
window.open("https://dl.dropboxusercontent.com/s/fm79uc9ygrnzone/BJ_Casino-B2B.ipa?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");
|
||||
} else if (this._isiOS) {
|
||||
alert("iOS不提供");
|
||||
} else {
|
||||
window.open("http://220.134.195.1/public/bonus_casino/html5/bowei/BJ_Casino-debug.apk?v=" + Date.now(), "_blank");
|
||||
}
|
||||
}
|
||||
public Install_JM() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/9zlj6og4octmim8/BJ_Casino-JM.apk?v=" + Date.now(), "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/23mx7l7cchbvjcv/BJ_Casino-JM.plist", "_self");
|
||||
} else {
|
||||
window.open("https://dl.dropboxusercontent.com/s/9zlj6og4octmim8/BJ_Casino-JM.apk?v=" + Date.now(), "_blank");
|
||||
window.open("https://dl.dropboxusercontent.com/s/dwlil2rbfe1wi13/BJ_Casino-JM.ipa?v=" + Date.now(), "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
public Install_InternalTest(InternalTest: number): void {
|
||||
// let InternalTest = document.getElementById("InternalTest").value;
|
||||
// let InternalTest = "";
|
||||
if (this._isAndroid && InternalTest) {
|
||||
window.open(`https://play.google.com/apps/test/org.vicking.bj_casino/${InternalTest}`, "_self");
|
||||
} else if (this._isiOS) {
|
||||
alert("iOS不提供");
|
||||
} else {
|
||||
window.open(`https://play.google.com/apps/test/org.vicking.bj_casino/${InternalTest}`, "_blank");
|
||||
}
|
||||
}
|
||||
public Install_Store() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://play.google.com/store/apps/details?id=org.vicking.bj_casino", "_self");
|
||||
} else if (this._isiOS) {
|
||||
window.open("https://apps.apple.com/tw/app/爆機娛樂城/id1593328573", "_self");
|
||||
} else {
|
||||
window.open("https://play.google.com/store/apps/details?id=org.vicking.bj_casino", "_blank");
|
||||
window.open("https://apps.apple.com/tw/app/爆機娛樂城/id1593328573", "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
public OnclickOpen() {
|
||||
let hostport = this._client.hostport.value;
|
||||
let servertype = +this._client.servertype.value;
|
||||
let patch = +this._client.patch.value;
|
||||
let E_iscustom: any = document.getElementById("iscustom");
|
||||
let iscustom = E_iscustom.checked;
|
||||
let URLscheme: any = {};
|
||||
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");
|
||||
} else if (this._isiOS) {
|
||||
alert("iOS不提供");
|
||||
} else {
|
||||
window.open("http://220.134.195.1/public/bonus_casino/html5/bowei/BJ_Casino-debug.apk?v=" + Date.now(), "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
switch (servertype) {
|
||||
case 0: {
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
URLscheme["servertype"] = servertype;
|
||||
break;
|
||||
}
|
||||
}
|
||||
public Install_InternalTest(InternalTest: number): void {
|
||||
// let InternalTest = document.getElementById("InternalTest").value;
|
||||
// let InternalTest = "";
|
||||
if (this._isAndroid && InternalTest) {
|
||||
window.open(`https://play.google.com/apps/test/org.vicking.bj_casino/${InternalTest}`, "_self");
|
||||
} else if (this._isiOS) {
|
||||
alert("iOS不提供");
|
||||
} else {
|
||||
window.open(`https://play.google.com/apps/test/org.vicking.bj_casino/${InternalTest}`, "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
switch (hostport) {
|
||||
public OnclickWanOpen() {
|
||||
this._client.PopupVisible.value = true;
|
||||
// this.OnclickOpen(true);
|
||||
}
|
||||
|
||||
// 不選擇環境
|
||||
case 0: {
|
||||
break;
|
||||
}
|
||||
public OnclickOpen(isWan: boolean = false, obj: Object = {}) {
|
||||
let hostport = this._client.hostport.value;
|
||||
let servertype = +this._client.servertype.value;
|
||||
let patch = +this._client.patch.value;
|
||||
let E_iscustom: any = document.getElementById("iscustom");
|
||||
let iscustom = E_iscustom.checked;
|
||||
let URLscheme: any = {};
|
||||
|
||||
// 外網連內版
|
||||
case 1: {
|
||||
URLscheme["host"] = "http://220.134.195.1";
|
||||
URLscheme["port"] = "19005";
|
||||
break;
|
||||
}
|
||||
if (obj["deviceid"]) {
|
||||
URLscheme["deviceid"] = obj["deviceid"];
|
||||
}
|
||||
|
||||
// 肉乾
|
||||
case 2: {
|
||||
URLscheme["host"] = "http://192.168.5.230";
|
||||
URLscheme["port"] = "9006";
|
||||
break;
|
||||
}
|
||||
switch (servertype) {
|
||||
case 0: {
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
URLscheme["servertype"] = servertype;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 賴宏
|
||||
case 3: {
|
||||
URLscheme["host"] = "http://192.168.5.134";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
switch (hostport) {
|
||||
|
||||
// 40
|
||||
case 4: {
|
||||
URLscheme["host"] = "http://192.168.5.12";
|
||||
URLscheme["port"] = "9487";
|
||||
break;
|
||||
}
|
||||
// 不選擇環境
|
||||
case 0: {
|
||||
break;
|
||||
}
|
||||
|
||||
// 送審
|
||||
case 5: {
|
||||
URLscheme["host"] = "https://submit.online-bj.com";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
// 外網連內版
|
||||
case 1: {
|
||||
URLscheme["host"] = "http://220.134.195.1";
|
||||
URLscheme["port"] = "19005";
|
||||
break;
|
||||
}
|
||||
|
||||
// 外版
|
||||
case 6: {
|
||||
URLscheme["host"] = "https://game.online-bj.com";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
// 肉乾9006
|
||||
case 2: {
|
||||
URLscheme["host"] = "http://192.168.5.230";
|
||||
URLscheme["port"] = "9006";
|
||||
break;
|
||||
}
|
||||
|
||||
// testing1
|
||||
case 7: {
|
||||
URLscheme["host"] = "http://bj-testing1.casino.catan.com.tw";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
// 肉乾9007
|
||||
case 3: {
|
||||
URLscheme["host"] = "http://192.168.5.230";
|
||||
URLscheme["port"] = "9007";
|
||||
break;
|
||||
}
|
||||
|
||||
// testing2
|
||||
case 8: {
|
||||
URLscheme["host"] = "http://bj-testing2.casino.catan.com.tw";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
// 肉乾9008
|
||||
case 4: {
|
||||
URLscheme["host"] = "http://192.168.5.230";
|
||||
URLscheme["port"] = "9008";
|
||||
break;
|
||||
}
|
||||
|
||||
// testing3
|
||||
case 9: {
|
||||
URLscheme["host"] = "http://bj-testing3.casino.catan.com.tw";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
// 肉乾9009
|
||||
case 5: {
|
||||
URLscheme["host"] = "http://192.168.5.230";
|
||||
URLscheme["port"] = "9009";
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// 賴宏
|
||||
case 6: {
|
||||
URLscheme["host"] = "http://192.168.5.134";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
|
||||
switch (patch) {
|
||||
// "https://patch.online-bj.com/game/",
|
||||
// "https://patch-submit.online-bj.com/game/",
|
||||
// "http://220.134.195.1/public/bonus_casino/html5/alex/APPBundleTest/",
|
||||
// "http://220.134.195.1/public/bonus_casino/html5/jianmiau/Bundle/",
|
||||
// "http://patch-release.online-bj.com/",
|
||||
// "http://patch-dev.online-bj.com/",
|
||||
// 40
|
||||
case 7: {
|
||||
URLscheme["host"] = "http://192.168.5.12";
|
||||
URLscheme["port"] = "9487";
|
||||
break;
|
||||
}
|
||||
|
||||
case 0: {
|
||||
break;
|
||||
}
|
||||
// 送審
|
||||
case 8: {
|
||||
URLscheme["host"] = "https://submit.online-bj.com";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
|
||||
// Dev
|
||||
case 1: {
|
||||
URLscheme["patch"] = "http://patch-dev.online-bj.com/";
|
||||
break;
|
||||
}
|
||||
// 外版
|
||||
case 9: {
|
||||
URLscheme["host"] = "https://game.online-bj.com";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
|
||||
// B2B
|
||||
case 2: {
|
||||
URLscheme["patch"] = "http://patch-release.online-bj.com/";
|
||||
break;
|
||||
}
|
||||
// testing1
|
||||
case 10: {
|
||||
URLscheme["host"] = "http://bj-testing1.casino.catan.com.tw";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
|
||||
// 送審
|
||||
case 3: {
|
||||
URLscheme["patch"] = "https://patch-submit.online-bj.com/game/";
|
||||
break;
|
||||
}
|
||||
// testing2
|
||||
case 11: {
|
||||
URLscheme["host"] = "http://bj-testing2.casino.catan.com.tw";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
|
||||
// 外版
|
||||
case 4: {
|
||||
URLscheme["patch"] = "https://patch.online-bj.com/game/";
|
||||
break;
|
||||
}
|
||||
// testing3
|
||||
case 12: {
|
||||
URLscheme["host"] = "http://bj-testing3.casino.catan.com.tw";
|
||||
URLscheme["port"] = "9005";
|
||||
break;
|
||||
}
|
||||
|
||||
// alex
|
||||
case 5: {
|
||||
URLscheme["patch"] = "http://220.134.195.1/public/bonus_casino/html5/alex/Bundle/";
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// bowei
|
||||
case 6: {
|
||||
URLscheme["patch"] = "http://220.134.195.1/public/bonus_casino/html5/bowei/Bundle/";
|
||||
break;
|
||||
}
|
||||
switch (patch) {
|
||||
// "https://patch.online-bj.com/game/",
|
||||
// "https://patch-submit.online-bj.com/game/",
|
||||
// "http://220.134.195.1/public/bonus_casino/html5/alex/APPBundleTest/",
|
||||
// "http://220.134.195.1/public/bonus_casino/html5/jianmiau/Bundle/",
|
||||
// "http://patch-release.online-bj.com/",
|
||||
// "http://patch-dev.online-bj.com/",
|
||||
|
||||
// jianmiau-Dev
|
||||
case 7: {
|
||||
// URLscheme["patch"] = "http://220.134.195.1/public/bonus_casino/html5/jianmiau/Bundle/";
|
||||
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Internal-Dev/";
|
||||
break;
|
||||
}
|
||||
case 0: {
|
||||
break;
|
||||
}
|
||||
|
||||
// jianmiau-Release
|
||||
case 8: {
|
||||
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Internal-Release/";
|
||||
break;
|
||||
}
|
||||
// Dev
|
||||
case 1: {
|
||||
URLscheme["patch"] = "http://patch-dev.online-bj.com/";
|
||||
break;
|
||||
}
|
||||
|
||||
// jianmiau-Submit
|
||||
case 9: {
|
||||
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Submit/";
|
||||
break;
|
||||
}
|
||||
// B2B
|
||||
case 2: {
|
||||
URLscheme["patch"] = "http://patch-release.online-bj.com/";
|
||||
break;
|
||||
}
|
||||
|
||||
// jianmiau-Out
|
||||
case 10: {
|
||||
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Out/";
|
||||
break;
|
||||
}
|
||||
// 送審
|
||||
case 3: {
|
||||
URLscheme["patch"] = "https://patch-submit.online-bj.com/game/";
|
||||
break;
|
||||
}
|
||||
|
||||
// 108-Dev
|
||||
case 11: {
|
||||
URLscheme["patch"] = "http://192.168.5.108/BJ-Internal-Dev/";
|
||||
break;
|
||||
}
|
||||
// 外版
|
||||
case 4: {
|
||||
URLscheme["patch"] = "https://patch.online-bj.com/game/";
|
||||
break;
|
||||
}
|
||||
|
||||
// 108-Release
|
||||
case 12: {
|
||||
URLscheme["patch"] = "http://192.168.5.108/BJ-Internal-Release/";
|
||||
break;
|
||||
}
|
||||
// alex
|
||||
case 5: {
|
||||
URLscheme["patch"] = "http://220.134.195.1/public/bonus_casino/html5/alex/Bundle/";
|
||||
break;
|
||||
}
|
||||
|
||||
// 108-Submit
|
||||
case 13: {
|
||||
URLscheme["patch"] = "http://192.168.5.108/BJ-Submit/";
|
||||
break;
|
||||
}
|
||||
// bowei
|
||||
case 6: {
|
||||
URLscheme["patch"] = "http://220.134.195.1/public/bonus_casino/html5/bowei/Bundle/";
|
||||
break;
|
||||
}
|
||||
|
||||
// 108-Out
|
||||
case 14: {
|
||||
URLscheme["patch"] = "http://192.168.5.108/BJ-Out/";
|
||||
break;
|
||||
}
|
||||
// jianmiau-Dev
|
||||
case 7: {
|
||||
// URLscheme["patch"] = "http://220.134.195.1/public/bonus_casino/html5/jianmiau/Bundle/";
|
||||
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Internal-Dev/";
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
// case 0: {
|
||||
// break;
|
||||
// }
|
||||
// default: {
|
||||
// URLscheme["patch"] = document.getElementById("patch").options[patch].label;
|
||||
// break;
|
||||
// }
|
||||
}
|
||||
// jianmiau-Release
|
||||
case 8: {
|
||||
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Internal-Release/";
|
||||
break;
|
||||
}
|
||||
|
||||
let url = "";
|
||||
if (iscustom) {
|
||||
let URLscheme = new URL(location.href);
|
||||
if (this._isiOS || this._isAndroid) {
|
||||
url = `bjcasino://get/message${URLscheme.search}`;
|
||||
} else {
|
||||
url = `http://220.134.195.1:17456/phone.html${URLscheme.search}`;
|
||||
}
|
||||
} else {
|
||||
let _URLSearchParams = new URLSearchParams(URLscheme).toString();
|
||||
let _decodeURI = decodeURIComponent(_URLSearchParams);
|
||||
if (this._isiOS || this._isAndroid) {
|
||||
url = `bjcasino://get/message${_decodeURI ? `?${_decodeURI}` : ""}`;
|
||||
} else {
|
||||
url = `http://220.134.195.1:17456/phone.html${_decodeURI ? `?${_decodeURI}` : ""}`;
|
||||
}
|
||||
}
|
||||
if (this._isiOS || this._isAndroid) {
|
||||
window.open(url, "_self");
|
||||
} else {
|
||||
window.open(url, "_blank");
|
||||
}
|
||||
}
|
||||
// jianmiau-Submit
|
||||
case 9: {
|
||||
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Submit/";
|
||||
break;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
// jianmiau-Out
|
||||
case 10: {
|
||||
URLscheme["patch"] = "http://192.168.5.36/Source/_BJ_Source/BJ-Out/";
|
||||
break;
|
||||
}
|
||||
|
||||
// 108-Dev
|
||||
case 11: {
|
||||
URLscheme["patch"] = "http://192.168.5.108/BJ-Internal-Dev/";
|
||||
break;
|
||||
}
|
||||
|
||||
// 108-Release
|
||||
case 12: {
|
||||
URLscheme["patch"] = "http://192.168.5.108/BJ-Internal-Release/";
|
||||
break;
|
||||
}
|
||||
|
||||
// 108-Submit
|
||||
case 13: {
|
||||
URLscheme["patch"] = "http://192.168.5.108/BJ-Submit/";
|
||||
break;
|
||||
}
|
||||
|
||||
// 108-Out
|
||||
case 14: {
|
||||
URLscheme["patch"] = "http://192.168.5.108/BJ-Out/";
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
// case 0: {
|
||||
// break;
|
||||
// }
|
||||
// default: {
|
||||
// URLscheme["patch"] = document.getElementById("patch").options[patch].label;
|
||||
// break;
|
||||
// }
|
||||
}
|
||||
|
||||
let url = "";
|
||||
let gameUrl = "220.134.195.1:17456";
|
||||
if (!isWan) {
|
||||
gameUrl = "192.168.5.108:7456";
|
||||
}
|
||||
if (iscustom) {
|
||||
let URLscheme = new URL(location.href);
|
||||
if (this._isiOS || this._isAndroid) {
|
||||
url = `bjcasino://get/message${URLscheme.search}`;
|
||||
} else {
|
||||
url = `http://${gameUrl}/phone.html${URLscheme.search}`;
|
||||
}
|
||||
} else {
|
||||
let _URLSearchParams = new URLSearchParams(URLscheme).toString();
|
||||
let _decodeURI = decodeURIComponent(_URLSearchParams);
|
||||
if (this._isiOS || this._isAndroid) {
|
||||
url = `bjcasino://get/message${_decodeURI ? `?${_decodeURI}` : ""}`;
|
||||
} else {
|
||||
url = `http://${gameUrl}/phone.html${_decodeURI ? `?${_decodeURI}` : ""}`;
|
||||
}
|
||||
}
|
||||
if (this._isiOS || this._isAndroid) {
|
||||
window.open(url, "_self");
|
||||
} else {
|
||||
window.open(url, "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
//#endregion
|
||||
}
|
||||
|
11
src/script/Tools.ts
Normal file
11
src/script/Tools.ts
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
export class Tools {
|
||||
|
||||
//#region Custom
|
||||
|
||||
public static Sleep(ms: any): Promise<unknown> {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
//#endregion
|
||||
}
|
@ -1,28 +1,28 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"sourceMap": true,
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"lib": [
|
||||
"esnext",
|
||||
"dom"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.vue"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.node.json"
|
||||
}
|
||||
]
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
// "strict": true,
|
||||
"jsx": "preserve",
|
||||
"sourceMap": true,
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"lib": [
|
||||
"esnext",
|
||||
"dom"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.vue"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.node.json"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user