[add] 九月爆機娛樂城公司活動
This commit is contained in:
parent
6e2920f616
commit
4a39caf4b1
File diff suppressed because one or more lines are too long
@ -8,7 +8,7 @@
|
|||||||
<!-- <link href="https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap" rel="stylesheet"> -->
|
<!-- <link href="https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap" rel="stylesheet"> -->
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>BJ_Casino_Rank</title>
|
<title>BJ_Casino_Rank</title>
|
||||||
<script type="module" crossorigin src="./assets/index.4d99bed5.js"></script>
|
<script type="module" crossorigin src="./assets/index.3a8acc4d.js"></script>
|
||||||
<link rel="stylesheet" href="./assets/index.89f466a5.css">
|
<link rel="stylesheet" href="./assets/index.89f466a5.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -15,9 +15,9 @@ export class BJ_Casino_Data {
|
|||||||
|
|
||||||
public IsMobile: boolean = true;
|
public IsMobile: boolean = true;
|
||||||
|
|
||||||
public ContestData: string[] = ["8/8~8/12"];
|
public ContestData: string[] = ["9/6~9/13"];
|
||||||
|
|
||||||
public ThisUseSlot: number = 64;
|
public ThisUseSlot: number[] = [65, 1304];
|
||||||
|
|
||||||
public ThisUseType: number[] = [1, 2, 3];
|
public ThisUseType: number[] = [1, 2, 3];
|
||||||
|
|
||||||
@ -87,6 +87,11 @@ export class BJ_Casino_Data {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async onLoad(): Promise<void> {
|
public async onLoad(): Promise<void> {
|
||||||
|
for (let i = 0; i < this.ThisUseType.length; i++) {
|
||||||
|
const thisUseType = this.ThisUseType[i];
|
||||||
|
const rankType = this.RankType[thisUseType][0];
|
||||||
|
this._isMagnificationOK[rankType] = false;
|
||||||
|
}
|
||||||
let mainControl: MainControl = new MainControl();
|
let mainControl: MainControl = new MainControl();
|
||||||
mainControl.onLoad();
|
mainControl.onLoad();
|
||||||
CSMessage.Initialize(this.Client);
|
CSMessage.Initialize(this.Client);
|
||||||
@ -105,14 +110,17 @@ export class BJ_Casino_Data {
|
|||||||
/** 連線 */
|
/** 連線 */
|
||||||
public async ConnectServer(): Promise<void> {
|
public async ConnectServer(): Promise<void> {
|
||||||
// const URL: string = "https://game.online-bj.com";
|
// const URL: string = "https://game.online-bj.com";
|
||||||
const URL: string = "https://submit.online-bj.com";
|
// const URL: string = "https://submit.online-bj.com";
|
||||||
|
const URL: string = "https://bot.online-bj.com";
|
||||||
const Port: string = "9005";
|
const Port: string = "9005";
|
||||||
await this.ConnectAsync(URL, +Port);
|
await this.ConnectAsync(URL, +Port);
|
||||||
// 取得帳號資料
|
// 取得帳號資料
|
||||||
// 外版
|
// 外版
|
||||||
// let req: AccountLoginRequest = new AccountLoginRequest("ct00000691", "4lsAyoalajm7");
|
// let req: AccountLoginRequest = new AccountLoginRequest("ct00000691", "4lsAyoalajm7");
|
||||||
// 送審
|
// // 送審
|
||||||
let req: AccountLoginRequest = new AccountLoginRequest("ct00000482", "tWRVjgwXkS4C");
|
// let req: AccountLoginRequest = new AccountLoginRequest("ct00000482", "tWRVjgwXkS4C");
|
||||||
|
// Test
|
||||||
|
let req: AccountLoginRequest = new AccountLoginRequest("ct00001131", "UONmF0XDneoB");
|
||||||
await req.SendAsync(true);
|
await req.SendAsync(true);
|
||||||
let resp: INetResponse<any> = req.Result;
|
let resp: INetResponse<any> = req.Result;
|
||||||
if (!resp.IsValid) {
|
if (!resp.IsValid) {
|
||||||
@ -171,7 +179,6 @@ export class BJ_Casino_Data {
|
|||||||
for (let i = 0; i < this.ThisUseType.length; i++) {
|
for (let i = 0; i < this.ThisUseType.length; i++) {
|
||||||
const thisUseType = this.ThisUseType[i];
|
const thisUseType = this.ThisUseType[i];
|
||||||
const rankType = this.RankType[thisUseType][0];
|
const rankType = this.RankType[thisUseType][0];
|
||||||
this._isMagnificationOK[rankType] = false;
|
|
||||||
let req: any = null;
|
let req: any = null;
|
||||||
req = new AppRankInfo(12, rankType);
|
req = new AppRankInfo(12, rankType);
|
||||||
await req.SendAsync(true);
|
await req.SendAsync(true);
|
||||||
@ -289,7 +296,7 @@ export class BJ_Casino_Data {
|
|||||||
if (this.ThisUseSlot) {
|
if (this.ThisUseSlot) {
|
||||||
let useSlot = this.ThisUseSlot;
|
let useSlot = this.ThisUseSlot;
|
||||||
rankdata = rankdata.filter((rankdata: any, index: any, arr: any) => {
|
rankdata = rankdata.filter((rankdata: any, index: any, arr: any) => {
|
||||||
return +rankdata[3][0] === useSlot;
|
return useSlot.includes(+rankdata[3][0]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
for (let i: number = 0; i < rankdata.length; i++) {
|
for (let i: number = 0; i < rankdata.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user