|
@@ -93,11 +93,7 @@ console.log = function (...args) {
|
|
|
splitAndPrintString(combinedString, maxChunkSize);
|
|
|
};
|
|
|
|
|
|
-function systemlog(...args){
|
|
|
- originalConsoleLog(args);
|
|
|
-}
|
|
|
-
|
|
|
-const wsUrl = 'ws://192.168.137.1:9999';
|
|
|
+const wsUrl = 'ws://192.168.2.31:9999';
|
|
|
let lws;
|
|
|
let attempt = 1;
|
|
|
|
|
@@ -302,7 +298,7 @@ var totalProfit = 0;
|
|
|
|
|
|
function dealMsg(msgType,data) {
|
|
|
lws.send(`${msgType}:${JSON.stringify(data)}`);
|
|
|
- return;
|
|
|
+
|
|
|
switch(msgType){
|
|
|
case "GameDataSynNotify"://进房间后同步已下注信息
|
|
|
betInfoMap.clear();
|
|
@@ -408,13 +404,13 @@ function dealMsg(msgType,data) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
- function loadModule(a, s) {
|
|
|
- if (!cacheExports[a]) {
|
|
|
- if (!methodPath[a]) {
|
|
|
+window.__require = function e(t, n, o) {
|
|
|
+ function i(a, s) {
|
|
|
+ if (!n[a]) {
|
|
|
+ if (!t[a]) {
|
|
|
var c = a.split("/");
|
|
|
c = c[c.length - 1];
|
|
|
- if (!methodPath[c]) {
|
|
|
+ if (!t[c]) {
|
|
|
var l = "function" == typeof __require && __require;
|
|
|
if (!s && l) return l(c, !0);
|
|
|
if (r) return r(c, !0);
|
|
@@ -422,17 +418,17 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
}
|
|
|
a = c;
|
|
|
}
|
|
|
- var u = cacheExports[a] = {
|
|
|
+ var u = n[a] = {
|
|
|
exports: {}
|
|
|
};
|
|
|
- methodPath[a][0].call(u.exports, function (e) {
|
|
|
- return loadModule(methodPath[a][1][e] || e);
|
|
|
- }, u, u.exports, e, methodPath, cacheExports, exportKeyArray);
|
|
|
+ t[a][0].call(u.exports, function (e) {
|
|
|
+ return i(t[a][1][e] || e);
|
|
|
+ }, u, u.exports, e, t, n, o);
|
|
|
}
|
|
|
- return cacheExports[a].exports;
|
|
|
+ return n[a].exports;
|
|
|
}
|
|
|
- for (var r = "function" == typeof __require && __require, a = 0; a < exportKeyArray.length; a++) loadModule(exportKeyArray[a]);
|
|
|
- return loadModule;
|
|
|
+ for (var r = "function" == typeof __require && __require, a = 0; a < o.length; a++) i(o[a]);
|
|
|
+ return i;
|
|
|
}({
|
|
|
1: [function (e, t) {
|
|
|
var n = e("util/"), o = Array.prototype.slice, i = Object.prototype.hasOwnProperty, r = t.exports = u;
|
|
@@ -205892,7 +205888,7 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
value: !0
|
|
|
});
|
|
|
n.WebSocketState = void 0;
|
|
|
- var o, _NetworkConfig = e("./NetworkConfig"), r = e("../common/UI/LoadingManager"), a = e("../common/BJConfig"), s = e("../common/UI/PopupManager"), c = e("../common/SceneManager"), l = e("../common/BJTranslator"), u = e("../common/LangData"), d = e("../common/BJBasicConfig"), p = e("../common/BJDataManager"), h = e("../common/Utils"), f = e("../blackjack/BJDataHolder"), g = e("../common/BJConsoleLog"), m = function () { };
|
|
|
+ var o, i = e("./NetworkConfig"), r = e("../common/UI/LoadingManager"), a = e("../common/BJConfig"), s = e("../common/UI/PopupManager"), c = e("../common/SceneManager"), l = e("../common/BJTranslator"), u = e("../common/LangData"), d = e("../common/BJBasicConfig"), p = e("../common/BJDataManager"), h = e("../common/Utils"), f = e("../blackjack/BJDataHolder"), g = e("../common/BJConsoleLog"), m = function () { };
|
|
|
(function (e) {
|
|
|
e[e.CLOSED = 0] = "CLOSED";
|
|
|
e[e.CLOSING = 1] = "CLOSING";
|
|
@@ -205960,18 +205956,18 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
clearTimeout(n._pingAction);
|
|
|
clearTimeout(n._pongAction);
|
|
|
n._tryPong = 0;
|
|
|
- n._pingAction = setTimeout(n.ping, _NetworkConfig.default.PING_TIMEOUT_INTERVAL);
|
|
|
+ n._pingAction = setTimeout(n.ping, i.default.PING_TIMEOUT_INTERVAL);
|
|
|
};
|
|
|
this.ping = function () {
|
|
|
if (n.ws) {
|
|
|
n.ws.send(n.pingMessageData);
|
|
|
- n._pongAction = setTimeout(n.pong, _NetworkConfig.default.PONG_TIMEOUT_INTERVAL);
|
|
|
+ n._pongAction = setTimeout(n.pong, i.default.PONG_TIMEOUT_INTERVAL);
|
|
|
}
|
|
|
};
|
|
|
this.pong = function () {
|
|
|
n._tryPong++;
|
|
|
g.BJConsoleLog.log("pong try lost", n.url, n._tryPong);
|
|
|
- if (n._tryPong >= _NetworkConfig.default.PING_PONG_TRY_TIME) {
|
|
|
+ if (n._tryPong >= i.default.PING_PONG_TRY_TIME) {
|
|
|
n._tryPong = 0;
|
|
|
g.BJConsoleLog.log("pong lost", n.url);
|
|
|
n.connect();
|
|
@@ -238891,7 +238887,7 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
- var a = e("./CustomScrollViewItem"), cc_decorator = cc._decorator, cc_ccclass = cc_decorator.ccclass, cc_property = cc_decorator.property, u = function (e) {
|
|
|
+ var a = e("./CustomScrollViewItem"), s = cc._decorator, c = s.ccclass, l = s.property, u = function (e) {
|
|
|
i(t, e);
|
|
|
function t() {
|
|
|
var t = null !== e && e.apply(this, arguments) || this;
|
|
@@ -239018,10 +239014,10 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
t.prototype.resetContentPosition = function () {
|
|
|
cc.isValid(this.initPos) && this.content.setPosition(this.initPos);
|
|
|
};
|
|
|
- r([cc_property], t.prototype, "displayBuffer", void 0);
|
|
|
- r([cc_property(cc.Mask)], t.prototype, "view", void 0);
|
|
|
- r([cc_property(cc.Prefab)], t.prototype, "loadPrefab", void 0);
|
|
|
- return r([cc_ccclass], t);
|
|
|
+ r([l], t.prototype, "displayBuffer", void 0);
|
|
|
+ r([l(cc.Mask)], t.prototype, "view", void 0);
|
|
|
+ r([l(cc.Prefab)], t.prototype, "loadPrefab", void 0);
|
|
|
+ return r([c], t);
|
|
|
}(cc.ScrollView);
|
|
|
n.default = u;
|
|
|
cc._RF.pop();
|
|
@@ -288225,33 +288221,33 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
- HMFExtension.openPokerMasterGameWithRoomId = function (roomId, exitWhere) {
|
|
|
- if (0 != roomId) {
|
|
|
+ HMFExtension.openPokerMasterGameWithRoomId = function (e, t) {
|
|
|
+ if (0 != e) {
|
|
|
var n = {
|
|
|
- roomId: roomId,
|
|
|
- exitWhere: exitWhere
|
|
|
+ roomId: e,
|
|
|
+ exitWhere: t
|
|
|
};
|
|
|
CurrentUserInfo.littleGameType = "pkm";
|
|
|
CurrentUserInfo.pkmGameParam = n;
|
|
|
cc.vv.loading.show();
|
|
|
- CurrentUserInfo.user.wasUserInDiamondGame ? HMFHTTPClient.pokerMasterGameLogin(roomId).then(function (n) {
|
|
|
+ CurrentUserInfo.user.wasUserInDiamondGame ? HMFHTTPClient.pokerMasterGameLogin(e).then(function (n) {
|
|
|
cc.vv.loading.hide();
|
|
|
console.log(n);
|
|
|
if (0 == n.errorCode) {
|
|
|
- HMFAppSetting.pokerMasterExitWhere = exitWhere;
|
|
|
+ HMFAppSetting.pokerMasterExitWhere = t;
|
|
|
cc.sys.localStorage.setItem("PokerMasterWs", n.data.gate_addr[0]);
|
|
|
cc.sys.localStorage.setItem("PokerMasterToken", n.data.token);
|
|
|
l.worldNet.initCommon(l.Enum.GameId.World);
|
|
|
l.getPokerMasterNet().initCommon(l.Enum.GameId.PokerMaster);
|
|
|
- l.roomManager.RequestJoinRoom(l.Enum.GameId.PokerMaster, roomId);
|
|
|
+ l.roomManager.RequestJoinRoom(l.Enum.GameId.PokerMaster, e);
|
|
|
}
|
|
|
}, function () {
|
|
|
cc.vv.loading.hide();
|
|
|
}) : l.netWorkManager.onWpkSwitchNetConnect(!0, function () {
|
|
|
l.worldNet.initCommon(l.Enum.GameId.World);
|
|
|
- l.roomManager.setCurrentRoomID(roomId);
|
|
|
+ l.roomManager.setCurrentRoomID(e);
|
|
|
l.getPokerMasterNet().initCommon(l.Enum.GameId.PokerMaster);
|
|
|
- l.roomManager.RequestJoinRoom(l.Enum.GameId.PokerMaster, roomId);
|
|
|
+ l.roomManager.RequestJoinRoom(l.Enum.GameId.PokerMaster, e);
|
|
|
});
|
|
|
}
|
|
|
};
|
|
@@ -366802,19 +366798,19 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
"../../../../scripts/common/MultiTableHelper": "MultiTableHelper",
|
|
|
"../../components/lobby/cv": "cv"
|
|
|
}],
|
|
|
- NetWork: [function (moduleLoader, moduleKey, moduleInstance) {
|
|
|
+ NetWork: [function (e, t, n) {
|
|
|
"use strict";
|
|
|
- cc._RF.push(moduleKey, "e93a6atiglGeIIneILp46VP", "NetWork");
|
|
|
+ cc._RF.push(t, "e93a6atiglGeIIneILp46VP", "NetWork");
|
|
|
var o = this && this.__decorate || function (e, t, n, o) {
|
|
|
var i, r = arguments.length, a = r < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
|
|
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o); else for (var s = e.length - 1; s >= 0; s--) (i = e[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(t, n, a) : i(t, n)) || a);
|
|
|
return r > 3 && a && Object.defineProperty(t, n, a), a;
|
|
|
};
|
|
|
- Object.defineProperty(moduleInstance, "__esModule", {
|
|
|
+ Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
- moduleInstance.NetWork = void 0;
|
|
|
- var i = moduleLoader("./ByteArray"), r = moduleLoader("../../components/game/cowboy/CowboyWsNetWork"), a = moduleLoader("../../components/lobby/cv"), s = moduleLoader("../plugg/aesHandler"), c = moduleLoader("../tools/HashMap"), l = moduleLoader("./BitHandler"), u = moduleLoader("../../components/game/pokerMaster/PokerMasterNetWork"), d = cc._decorator, p = d.ccclass, netWorkInstance = (d.property,
|
|
|
+ n.NetWork = void 0;
|
|
|
+ var i = e("./ByteArray"), r = e("../../components/game/cowboy/CowboyWsNetWork"), a = e("../../components/lobby/cv"), s = e("../plugg/aesHandler"), c = e("../tools/HashMap"), l = e("./BitHandler"), u = e("../../components/game/pokerMaster/PokerMasterNetWork"), d = cc._decorator, p = d.ccclass, h = (d.property,
|
|
|
function () {
|
|
|
function e() {
|
|
|
this.wSocket = null;
|
|
@@ -366891,7 +366887,6 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
}
|
|
|
};
|
|
|
e.prototype.sendMsg = function (e, t, n, o, i) {
|
|
|
- console.log(`====>>>>sendMsg `,e,t,n,o,i);
|
|
|
if (this.sendPackage(e, t, n, o, i)) {
|
|
|
a.default.LoadingView.addWebSocketMsg(i, t);
|
|
|
return !0;
|
|
@@ -366900,8 +366895,6 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
return !1;
|
|
|
};
|
|
|
e.prototype.sendPackage = function (e, t, n, o, c) {
|
|
|
- console.log(`====>>>>sendPackage `,e,t,n,o,c);
|
|
|
-
|
|
|
var l, d = this.isEncrypt(c);
|
|
|
d && (l = s.aesHandler.EncryptBytes(e));
|
|
|
var p = new i.ByteArray();
|
|
@@ -366921,7 +366914,6 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
return c == a.default.Enum.GameId.PokerMaster ? window.CurrentUserInfo.user.wasUserInDiamondGame ? u.PokerMasterNetWork.getInstance().send(p.getbuffer()) : this.send(p.getbuffer()) : c == a.default.Enum.GameId.CowBoy && window.CurrentUserInfo.user.wasUserInDiamondGame ? r.CowboyWsNetWork.getInstance().send(p.getbuffer()) : this.send(p.getbuffer());
|
|
|
};
|
|
|
e.prototype.send = function (e) {
|
|
|
- console.log(`====>>>>send `,e);
|
|
|
if (!this.wSocket) return !1;
|
|
|
if (this.wSocket.readyState == WebSocket.OPEN) {
|
|
|
this.wSocket.send(e);
|
|
@@ -367111,7 +367103,7 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
var t;
|
|
|
return t = o([p], e);
|
|
|
}());
|
|
|
- moduleInstance.NetWork = netWorkInstance;
|
|
|
+ n.NetWork = h;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../components/game/cowboy/CowboyWsNetWork": "CowboyWsNetWork",
|
|
@@ -380386,7 +380378,7 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
this.registerMessage(e, t, s.default.Enum.GameId.PokerMaster);
|
|
|
};
|
|
|
t.prototype._sendNetMsg = function (e, t, n, o) {
|
|
|
- console.log(`====>>>> pokermaster_proto-send-`, n + "-" + e + " = " + t);
|
|
|
+ console.log("pokermaster_proto-send-" + n + "-" + e + " = " + t);
|
|
|
var i = this.encodePB(e, t);
|
|
|
return this.sendMsg(i, n, o, s.default.Enum.SeverType.SeverType_Game, s.default.Enum.GameId.PokerMaster);
|
|
|
};
|
|
@@ -381906,7 +381898,7 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
"../../lobby/cv": "cv",
|
|
|
"./PokerMasterRoomData": "PokerMasterRoomData"
|
|
|
}],
|
|
|
- PokerMasterHallSocket: [function (loadModule, t, n) {
|
|
|
+ PokerMasterHallSocket: [function (e, t, n) {
|
|
|
"use strict";
|
|
|
cc._RF.push(t, "713f3WdnDhJZppOA/4ZX1xA", "PokerMasterHallSocket");
|
|
|
var o, i = this && this.__extends || (o = function (e, t) {
|
|
@@ -381928,7 +381920,7 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
value: !0
|
|
|
});
|
|
|
n.PokerMasterHallSocket = void 0;
|
|
|
- var r = loadModule("../../../../../pkw/Script/common/pb/pokermaster"), roomConfig = r.pokermaster_proto_hall, s = loadModule("../../lobby/cv"), c = loadModule("./PokerMasterDataMgr"), l = loadModule("../../../common/net/NetWorkProxy"), u = loadModule("./PokerMasterDef"), d = loadModule("./PokerMasterRoomData"), p = function (e) {
|
|
|
+ var r = e("../../../../../pkw/Script/common/pb/pokermaster"), roomConfig = r.pokermaster_proto_hall, s = e("../../lobby/cv"), c = e("./PokerMasterDataMgr"), l = e("../../../common/net/NetWorkProxy"), u = e("./PokerMasterDef"), d = e("./PokerMasterRoomData"), p = function (e) {
|
|
|
i(t, e);
|
|
|
function t() {
|
|
|
return null !== e && e.apply(this, arguments) || this;
|
|
@@ -382037,13 +382029,13 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
t.prototype.requestJoinRoom = function (e) {
|
|
|
this._requestJoinRoom(e);
|
|
|
};
|
|
|
- t.prototype._requestJoinRoom = function (room_id) {
|
|
|
+ t.prototype._requestJoinRoom = function (e) {
|
|
|
console.log("Saad in join room request " + s.default.dataHandler.getUserData().m_bIsLoginGameServerSucc);
|
|
|
if (s.default.dataHandler.getUserData().m_bIsLoginGameServerSucc) {
|
|
|
var t = roomConfig.JoinRoomReq.create();
|
|
|
- t.roomid = room_id;
|
|
|
- console.log("saad sending join room msg with room id " + room_id);
|
|
|
- this._sendNetMsg("JoinRoomReq", t, roomConfig.CMD.JOIN_ROOM_REQ, room_id);
|
|
|
+ t.roomid = e;
|
|
|
+ console.log("saad sending join room msg with room id " + e);
|
|
|
+ this._sendNetMsg("JoinRoomReq", t, roomConfig.CMD.JOIN_ROOM_REQ, e);
|
|
|
} else this.requestVerifyLogin();
|
|
|
};
|
|
|
t.prototype._handleJoinRoomResponse = function (e, t) {
|
|
@@ -382545,7 +382537,7 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
"./PokerMasterDef": "PokerMasterDef",
|
|
|
"./PokerMasterRoomData": "PokerMasterRoomData"
|
|
|
}],
|
|
|
- PokerMasterNetWork: [function (e, t, thisPokerMasterNetWork) {
|
|
|
+ PokerMasterNetWork: [function (e, t, n) {
|
|
|
"use strict";
|
|
|
cc._RF.push(t, "975ceEgFRxDG7lkqU+MeLCe", "PokerMasterNetWork");
|
|
|
var o = this && this.__decorate || function (e, t, n, o) {
|
|
@@ -382553,10 +382545,10 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o); else for (var s = e.length - 1; s >= 0; s--) (i = e[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(t, n, a) : i(t, n)) || a);
|
|
|
return r > 3 && a && Object.defineProperty(t, n, a), a;
|
|
|
};
|
|
|
- Object.defineProperty(thisPokerMasterNetWork, "__esModule", {
|
|
|
+ Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
- thisPokerMasterNetWork.PokerMasterNetWork = void 0;
|
|
|
+ n.PokerMasterNetWork = void 0;
|
|
|
var i = e("../../lobby/cv"), r = cc._decorator, a = r.ccclass, s = (r.property,
|
|
|
function () {
|
|
|
function e() {
|
|
@@ -382661,7 +382653,7 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
var t;
|
|
|
return t = o([a], e);
|
|
|
}());
|
|
|
- thisPokerMasterNetWork.PokerMasterNetWork = s;
|
|
|
+ n.PokerMasterNetWork = s;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../lobby/cv": "cv"
|
|
@@ -399388,23 +399380,23 @@ window.__require = function e(methodPath, cacheExports, exportKeyArray) {
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
- e.prototype.RequestJoinRoom = function (gameId, roomId, isQuickRoom, isNeedPassword, roomPassWord) {
|
|
|
+ e.prototype.RequestJoinRoom = function (e, t, n, i, r) {
|
|
|
var a = this;
|
|
|
- void 0 === gameId && (gameId = this.current_gameId);
|
|
|
- void 0 === roomId && (roomId = this.current_roomId);
|
|
|
- void 0 === isQuickRoom && (isQuickRoom = this.isQuickRoom);
|
|
|
- void 0 === isNeedPassword && (isNeedPassword = this.isNeedPassword);
|
|
|
- void 0 === roomPassWord && (roomPassWord = this.roomPassWord);
|
|
|
- if (!(gameId >= o.GameId.ZoomTexas && gameId <= o.GameId.ZoomTexasMax) || lobbyCv.default.dataHandler.getActivityData().haveAvatar()) {
|
|
|
+ void 0 === e && (e = this.current_gameId);
|
|
|
+ void 0 === t && (t = this.current_roomId);
|
|
|
+ void 0 === n && (n = this.isQuickRoom);
|
|
|
+ void 0 === i && (i = this.isNeedPassword);
|
|
|
+ void 0 === r && (r = this.roomPassWord);
|
|
|
+ if (!(e >= o.GameId.ZoomTexas && e <= o.GameId.ZoomTexasMax) || lobbyCv.default.dataHandler.getActivityData().haveAvatar()) {
|
|
|
(function () {
|
|
|
- a.setCurrentGameID(gameId);
|
|
|
- a.setCurrentRoomID(roomId);
|
|
|
- console.log("Saad setting room id " + roomId);
|
|
|
- a.setRoomPassWord(roomPassWord);
|
|
|
- a.setIsNeedPassword(isNeedPassword);
|
|
|
- a.setIsQuickRoom(isQuickRoom);
|
|
|
- a._checkShowLoadingByGameID(gameId);
|
|
|
- if (lobbyCv.default.netWork.isEncrypt(gameId) && !c.ecdhHandler.getInstance().ecdh_getNeedGenKeyState()) {
|
|
|
+ a.setCurrentGameID(e);
|
|
|
+ a.setCurrentRoomID(t);
|
|
|
+ console.log("Saad setting room id " + t);
|
|
|
+ a.setRoomPassWord(r);
|
|
|
+ a.setIsNeedPassword(i);
|
|
|
+ a.setIsQuickRoom(n);
|
|
|
+ a._checkShowLoadingByGameID(e);
|
|
|
+ if (lobbyCv.default.netWork.isEncrypt(e) && !c.ecdhHandler.getInstance().ecdh_getNeedGenKeyState()) {
|
|
|
var o = c.ecdhHandler.getInstance().ecdh_getClientPubX(), l = c.ecdhHandler.getInstance().ecdh_getClientPubY();
|
|
|
c.ecdhHandler.getInstance().ecdh_setNeedGenKeyState(!0);
|
|
|
lobbyCv.default.worldNet.RequestSetEcdhKey(0, o, l);
|