[add] 建喵坂路徑
This commit is contained in:
parent
b32400ec60
commit
61bffe4315
16
src/main.ts
16
src/main.ts
@ -1,10 +1,10 @@
|
||||
import 'bootstrap';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import ElementPlus from 'element-plus';
|
||||
import 'element-plus/dist/index.css';
|
||||
import locale from 'element-plus/lib/locale/lang/zh-tw';
|
||||
import { createApp } from 'vue';
|
||||
import App from './App.vue';
|
||||
import "bootstrap";
|
||||
import "bootstrap/dist/css/bootstrap.min.css";
|
||||
import ElementPlus from "element-plus";
|
||||
import "element-plus/dist/index.css";
|
||||
import locale from "element-plus/lib/locale/lang/zh-tw";
|
||||
import { createApp } from "vue";
|
||||
import App from "./App.vue";
|
||||
|
||||
|
||||
createApp(App).use(ElementPlus, { locale }).mount('#app')
|
||||
createApp(App).use(ElementPlus, { locale }).mount("#app");
|
||||
|
@ -15,7 +15,11 @@ export class BJ_Casino_Deeplink {
|
||||
"建喵-內版",
|
||||
"建喵-B2B",
|
||||
"建喵-送審",
|
||||
"建喵-外版"
|
||||
"建喵-外版",
|
||||
"打包機-內版",
|
||||
"打包機-B2B",
|
||||
"打包機-送審",
|
||||
"打包機-外版",
|
||||
]];
|
||||
|
||||
//#endregion
|
||||
@ -25,7 +29,7 @@ export class BJ_Casino_Deeplink {
|
||||
private _client: any;
|
||||
|
||||
private _u = navigator.userAgent;
|
||||
private _isAndroid = this._u.indexOf('Android') > -1 || this._u.indexOf('Adr') > -1;
|
||||
private _isAndroid = this._u.indexOf("Android") > -1 || this._u.indexOf("Adr") > -1;
|
||||
private _isiOS = !!this._u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||
|
||||
//#endregion
|
||||
@ -47,7 +51,7 @@ export class BJ_Casino_Deeplink {
|
||||
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];
|
||||
};
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
@ -79,7 +83,7 @@ export class BJ_Casino_Deeplink {
|
||||
const servertype = servertypes[i];
|
||||
options.push({
|
||||
value: i,
|
||||
label: servertype
|
||||
label: servertype,
|
||||
});
|
||||
}
|
||||
return options;
|
||||
@ -92,7 +96,7 @@ export class BJ_Casino_Deeplink {
|
||||
const hostport = hostports[i];
|
||||
options.push({
|
||||
value: i,
|
||||
label: hostport
|
||||
label: hostport,
|
||||
});
|
||||
}
|
||||
return options;
|
||||
@ -105,7 +109,7 @@ export class BJ_Casino_Deeplink {
|
||||
const patch = patchs[i];
|
||||
options.push({
|
||||
value: i,
|
||||
label: patch
|
||||
label: patch,
|
||||
});
|
||||
}
|
||||
return options;
|
||||
@ -117,77 +121,77 @@ export class BJ_Casino_Deeplink {
|
||||
|
||||
public Install_Debug() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/aoh4p9vs1lrofy2/BJ_Casino-debug.apk?v=" + Date.now(), '_self');
|
||||
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');
|
||||
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');
|
||||
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_Release() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/6mjrw913u6ma5w8/BJ_Casino-release.apk?v=" + Date.now(), '_self');
|
||||
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');
|
||||
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');
|
||||
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_Release_Debug() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/16m2b5sncymj6f9/BJ_Casino-release-debug.apk?v=" + Date.now(), '_self');
|
||||
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');
|
||||
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');
|
||||
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_B2B() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/g66xrcdfj9e093i/BJ_Casino-B2B.apk?v=" + Date.now(), '_self');
|
||||
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');
|
||||
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');
|
||||
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_JM() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://dl.dropboxusercontent.com/s/9zlj6og4octmim8/BJ_Casino-JM.apk?v=" + Date.now(), '_self');
|
||||
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');
|
||||
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');
|
||||
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_Store() {
|
||||
if (this._isAndroid) {
|
||||
window.open("https://play.google.com/store/apps/details?id=org.vicking.bj_casino", '_self');
|
||||
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');
|
||||
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');
|
||||
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_Bowei() {
|
||||
if (this._isAndroid) {
|
||||
window.open("http://220.134.195.1/public/bonus_casino/html5/bowei/BJ_Casino-debug.apk?v=" + Date.now(), '_self');
|
||||
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');
|
||||
window.open("http://220.134.195.1/public/bonus_casino/html5/bowei/BJ_Casino-debug.apk?v=" + Date.now(), "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
@ -195,11 +199,11 @@ export class BJ_Casino_Deeplink {
|
||||
// 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');
|
||||
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');
|
||||
window.open(`https://play.google.com/apps/test/org.vicking.bj_casino/${InternalTest}`, "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
@ -369,6 +373,30 @@ export class BJ_Casino_Deeplink {
|
||||
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;
|
||||
}
|
||||
@ -387,7 +415,7 @@ export class BJ_Casino_Deeplink {
|
||||
if (this._isiOS || this._isAndroid) {
|
||||
url = `bjcasino://get/message${URLscheme.search}`;
|
||||
} else {
|
||||
url = `http://192.168.5.108:7456/phone.html${URLscheme.search}`;
|
||||
url = `http://220.134.195.1:17456/phone.html${URLscheme.search}`;
|
||||
}
|
||||
} else {
|
||||
let _URLSearchParams = new URLSearchParams(URLscheme).toString();
|
||||
@ -395,13 +423,13 @@ export class BJ_Casino_Deeplink {
|
||||
if (this._isiOS || this._isAndroid) {
|
||||
url = `bjcasino://get/message${_decodeURI ? `?${_decodeURI}` : ""}`;
|
||||
} else {
|
||||
url = `http://192.168.5.108:7456/phone.html${_decodeURI ? `?${_decodeURI}` : ""}`;
|
||||
url = `http://220.134.195.1:17456/phone.html${_decodeURI ? `?${_decodeURI}` : ""}`;
|
||||
}
|
||||
}
|
||||
if (this._isiOS || this._isAndroid) {
|
||||
window.open(url, '_self');
|
||||
window.open(url, "_self");
|
||||
} else {
|
||||
window.open(url, '_blank');
|
||||
window.open(url, "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user