yyyy关键点.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. 终结解决方案
  2. 0、配置的位置:window.HMFAppConfig = {
  3. 1、开启log !HMFAppConfig.isEnableConsoleLog
  4. 2、各种socket搜索正则 /\w+websocket"\)
  5. t[e[10] = "MsgID_ConnClose_Notice"] = 10;
  6. 3、横竖屏游戏类型
  7. t.isInHorizontalGameScene = function() {
  8. var e = cc.director.getScene().name;
  9. return e.startsWith("CowboyScene") || e.startsWith("HumanboyScene") || e.startsWith("PokerMasterScene") || e.startsWith("VideoCowboyScene") || "BlackjackPVP" == e;
  10. };
  11. t.isInVerticalGameScene = function() {
  12. var e = cc.director.getScene().name;
  13. return e.startsWith("gameTable") || "Game" == e || "JackfruitScene" == e || "multipleGame" == e;
  14. };
  15. 游戏配置可能
  16. window.WPGameData = {
  17. this.HOST_NAME = {
  18. 0: {
  19. ws: "ws",
  20. http: "http",
  21. pkf: [ "34.96.176.147:25501", "redeast.zongeng.com" ],
  22. pkfApi: [ "34.96.176.147:25501", "redeastapi.zongeng.com" ],
  23. config: [ "47.242.42.76:29016" ],
  24. pkfAssets: [ "47.242.42.76:22005" ]
  25. },
  26. 1: {
  27. ws: "ws",
  28. http: "http",
  29. pkf: [ "47.242.42.76:25501", "redeast.zongeng.com" ],
  30. pkfApi: [ "47.242.42.76:25501", "redeastapi.zongeng.com" ],
  31. config: [ "47.242.42.76:29016" ],
  32. pkfAssets: [ "47.242.42.76:22005" ]
  33. },
  34. 2: {
  35. ws: "wss",
  36. http: "https",
  37. pkf: [ "api.whjjzs.com", "api.loanflashing.com", "api.tunawest.net", "pokerfang.net", "pokerfang.com" ],
  38. 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" ],
  39. config: [ "21-server-conf.oss-cn-hongkong.aliyuncs.com" ],
  40. pkfAssets: [ "web.jinhuofeng.xyz" ]
  41. }
  42. };
  43. //各种log
  44. HMFUtils.clog = function
  45. HMFUtils.log = function(e)
  46. HMFAppSetting.showLog
  47. cc.log
  48. cc.vv.ConsoleLog = {
  49. console.log error warm
  50. window.HMFRequest = cc.Class({
  51. window.HMFHTTPClient = {
  52. //不知道是啥的日志
  53. BJPVPConsoleLog =
  54. //网络请求
  55. this._send = function
  56. this.Send = this._send;
  57. sendByPromise: function(e) {
  58. e.prototype.send = function(e) {
  59. e.prototype.send = function(e) {
  60. if (!this.wSocket) return !1;
  61. if (this.wSocket.readyState == WebSocket.OPEN) {
  62. this.wSocket.send(e);
  63. this.u32seq += 1;
  64. return !0;
  65. }
  66. return !1;
  67. };
  68. //登陆相关
  69. HMFHTTPClient.phoneNumLogin = function(e) {
  70. //UI?
  71. 输入框的string
  72. password: this.setNewPassWordInputPass.string,
  73. passwordRe: this.setNewPassWordConfirmPass.string