|
@@ -8,8 +8,15 @@
|
|
|
t[e[10] = "MsgID_ConnClose_Notice"] = 10;
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+3、横竖屏游戏类型
|
|
|
+t.isInHorizontalGameScene = function() {
|
|
|
+var e = cc.director.getScene().name;
|
|
|
+return e.startsWith("CowboyScene") || e.startsWith("HumanboyScene") || e.startsWith("PokerMasterScene") || e.startsWith("VideoCowboyScene") || "BlackjackPVP" == e;
|
|
|
+};
|
|
|
+t.isInVerticalGameScene = function() {
|
|
|
+var e = cc.director.getScene().name;
|
|
|
+return e.startsWith("gameTable") || "Game" == e || "JackfruitScene" == e || "multipleGame" == e;
|
|
|
+};
|
|
|
|
|
|
|
|
|
|
|
@@ -19,7 +26,32 @@ window.WPGameData = {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+this.HOST_NAME = {
|
|
|
+0: {
|
|
|
+ws: "ws",
|
|
|
+http: "http",
|
|
|
+pkf: [ "34.96.176.147:25501", "redeast.zongeng.com" ],
|
|
|
+pkfApi: [ "34.96.176.147:25501", "redeastapi.zongeng.com" ],
|
|
|
+config: [ "47.242.42.76:29016" ],
|
|
|
+pkfAssets: [ "47.242.42.76:22005" ]
|
|
|
+},
|
|
|
+1: {
|
|
|
+ws: "ws",
|
|
|
+http: "http",
|
|
|
+pkf: [ "47.242.42.76:25501", "redeast.zongeng.com" ],
|
|
|
+pkfApi: [ "47.242.42.76:25501", "redeastapi.zongeng.com" ],
|
|
|
+config: [ "47.242.42.76:29016" ],
|
|
|
+pkfAssets: [ "47.242.42.76:22005" ]
|
|
|
+},
|
|
|
+2: {
|
|
|
+ws: "wss",
|
|
|
+http: "https",
|
|
|
+pkf: [ "api.whjjzs.com", "api.loanflashing.com", "api.tunawest.net", "pokerfang.net", "pokerfang.com" ],
|
|
|
+pkfApi: [ "api.whjjzs.com", "api.loanflashing.com", "api.tunawest.net", "api.mkters.com", "api.blflnm.com", "api.zongeng.com", "api.yufvlav.cn", "api.jnfeeder.top" ],
|
|
|
+config: [ "21-server-conf.oss-cn-hongkong.aliyuncs.com" ],
|
|
|
+pkfAssets: [ "web.jinhuofeng.xyz" ]
|
|
|
+}
|
|
|
+};
|
|
|
|
|
|
|
|
|
//各种log
|
|
@@ -33,7 +65,7 @@ HMFUtils.log = function(e)
|
|
|
|
|
|
cc.log
|
|
|
|
|
|
- cc.vv.ConsoleLog = {
|
|
|
+cc.vv.ConsoleLog = {
|
|
|
|
|
|
console.log error warm
|
|
|
|
|
@@ -52,6 +84,16 @@ this.Send = this._send;
|
|
|
sendByPromise: function(e) {
|
|
|
e.prototype.send = function(e) {
|
|
|
|
|
|
+e.prototype.send = function(e) {
|
|
|
+if (!this.wSocket) return !1;
|
|
|
+if (this.wSocket.readyState == WebSocket.OPEN) {
|
|
|
+this.wSocket.send(e);
|
|
|
+this.u32seq += 1;
|
|
|
+return !0;
|
|
|
+}
|
|
|
+return !1;
|
|
|
+};
|
|
|
+
|
|
|
|
|
|
//登陆相关
|
|
|
HMFHTTPClient.phoneNumLogin = function(e) {
|