终结解决方案 0、配置的位置:window.HMFAppConfig = { 1、开启log !HMFAppConfig.isEnableConsoleLog 2、各种socket搜索正则 /\w+websocket"\) 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; }; 游戏配置可能 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 HMFUtils.clog = function HMFUtils.log = function(e) HMFAppSetting.showLog cc.log cc.vv.ConsoleLog = { console.log error warm window.HMFRequest = cc.Class({ window.HMFHTTPClient = { //不知道是啥的日志 BJPVPConsoleLog = //网络请求 this._send = function 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) { //UI? 输入框的string password: this.setNewPassWordInputPass.string, passwordRe: this.setNewPassWordConfirmPass.string