{
  "code": "import { UserInfoManager } from \"../Game/UserInfoManager\";\r\nimport { GameVersion } from \"./GameVersion\";\r\nexport class GuangGao {\r\n    constructor() {\r\n        GuangGao.ins = this;\r\n    }\r\n    static get Instance() {\r\n        if (GuangGao.ins == null) {\r\n            return new GuangGao();\r\n        }\r\n        return GuangGao.ins;\r\n    }\r\n    static InitVideo() {\r\n    }\r\n    static ShowVideo(callback) {\r\n    }\r\n    static SetVideoCallBack(callback) {\r\n        this.fsaasfafssfa.offClose();\r\n        this.fsaasfafssfa.onClose(res => {\r\n            console.log(\"激励视频关闭:\" + res.isEnded);\r\n            if (res && res.isEnded || res === undefined) {\r\n                callback && callback(true);\r\n            }\r\n            else {\r\n                callback && callback(false);\r\n            }\r\n            this.fsaasfafssfa.offClose();\r\n        });\r\n    }\r\n    static OpenBanner(gap = 0, callVack = null, iswait = false) {\r\n    }\r\n    static GetRealHight(gap) {\r\n        if (this.curbanner) {\r\n            let info = Laya.Browser.window.wx.getSystemInfoSync();\r\n            this.curbanner.style.width = info.windowWidth;\r\n            this.curbanner.style.top = info.windowHeight - this.curbanner.style.realHeight - gap;\r\n            return Laya.stage.height / info.windowHeight * this.curbanner.style.realHeight;\r\n        }\r\n    }\r\n    static Clear() {\r\n    }\r\n    static hidebanner() {\r\n        if (!Laya.Browser.onWeiXin)\r\n            return;\r\n        if (this.curbanner)\r\n            this.curbanner.hide();\r\n    }\r\n    static showbanner() {\r\n        if (!Laya.Browser.onWeiXin)\r\n            return;\r\n        if (this.curbanner)\r\n            this.curbanner.show();\r\n    }\r\n    static get cancheat() {\r\n        if (!UserInfoManager.Cheat) {\r\n            console.log(\"cheat:false-> CurAccountData.cheat != 1\");\r\n            return false;\r\n        }\r\n        var checkscence = UserInfoManager.CheckScene;\r\n        if (checkscence == false) {\r\n            console.log(\"cheat:true-> \" + GameVersion.wxValue);\r\n            return true;\r\n        }\r\n        if (GameVersion.wxValue == \"1037\" || GameVersion.wxValue == \"1058\" || GameVersion.wxValue == \"1067\" || GameVersion.wxValue == \"1095\") {\r\n            console.log(\"cheat:true-> \" + GameVersion.wxValue);\r\n            return true;\r\n        }\r\n        console.log(\"cheat:false-> \" + GameVersion.wxValue);\r\n        return false;\r\n    }\r\n    static SetPosBanner(btn, complete) {\r\n    }\r\n    static CheatBanner(btn, complete = null, gap = 0) {\r\n    }\r\n    showBanner(success = null, fail = null) {\r\n        if (!Laya.Browser.onWeiXin)\r\n            return;\r\n        let ad = GuangGao.bannerAdUnitId;\r\n        let bannerAd = Laya.Browser.window.wx.createBannerAd({\r\n            adUnitId: ad,\r\n            style: {\r\n                left: 0,\r\n                top: 0,\r\n                width: 460\r\n            }\r\n        });\r\n        bannerAd.onLoad(() => {\r\n            console.log(\"[LOG] Banner广告加载成功\");\r\n            this.hideBanner();\r\n            this._bannerAd = bannerAd;\r\n            let info = Laya.Browser.window.wx.getSystemInfoSync();\r\n            this._bannerAd.style.width = info.windowWidth;\r\n            this._bannerAd.style.top = info.windowHeight - this._bannerAd.style.realHeight - 20;\r\n            this._bannerAd.show();\r\n            success && success(this._bannerAd);\r\n        });\r\n        bannerAd.onError(err => {\r\n            console.log(\"[LOG] Banner广告加载失败\");\r\n            console.log(err);\r\n            fail && fail();\r\n        });\r\n    }\r\n    hideBanner() {\r\n        if (!Laya.Browser.onWeiXin)\r\n            return;\r\n        if (this._bannerAd) {\r\n            this._bannerAd.hide();\r\n            this._bannerAd.destroy();\r\n            this._bannerAd = null;\r\n        }\r\n    }\r\n}\r\nGuangGao.videlAdUnitId = \"adunit-c417d6819ffdc5a2\";\r\nGuangGao.bannerAdUnitId = \"adunit-741a4dcc646d56b8\";\r\nGuangGao.afsfsaafsfsa = false;\r\nGuangGao.asfasfsaffsa = false;\r\nGuangGao.canshowbanner = true;\r\nGuangGao.bannerhigt = 0;\r\n//# sourceMappingURL=GuangGao.js.map",
  "references": [
    "C:/Users/Administrator/Desktop/gungang/src/Net/UserModel.ts",
    "C:/Users/Administrator/Desktop/gungang/src/Game/UserInfoManager.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