123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- var t = require;
- var e = module;
- var i = exports;
- Object.defineProperty(i, "__esModule", {value: !0}),
- (i.ShareKeyConst =
- i.GamePlatform =
- i.WxImgId2 =
- i.WxImg2 =
- i.WxImgId1 =
- i.WechatInviteRandom1ImageURL =
- i.WechatHelpImageURLId =
- i.WechatHelpImageURL =
- i.WechatPreviewImageURLId =
- i.WechatPreviewImageURL =
- i.RankInviteImageUrlId =
- i.RankInviteImageURL =
- i.RankInviteTitle =
- i.WechatInvite =
- void 0);
- const s = t("App"),
- o = t("WxMiniGameUtil");
- (i.WechatInvite = 11),
- (i.RankInviteTitle = "一起加入拯救空岛之旅?"),
- (i.RankInviteImageURL = "https://wxclient.gzqidong.cn/resource/Upload/resource/1658730380901250732.png"),
- (i.RankInviteImageUrlId = "GJgQ5fOBQMubGkU/lK02SQ=="),
- (i.WechatPreviewImageURL = "http://mine.gzqidong.cn/uploads/images/QQ图片20230331174708.jpg"),
- (i.WechatPreviewImageURLId = "1C5ovAl7THud2O+nTegwzQ=="),
- (i.WechatHelpImageURL = "https://wxclient.gzqidong.cn/resource/Upload/resource/16587304421140728410.png"),
- (i.WechatHelpImageURLId = "jdsRgWqrTA+Awya4YGih1g=="),
- (i.WechatInviteRandom1ImageURL = "http://mine.gzqidong.cn/uploads/images/QQ图片20230331174708.jpg"),
- (i.WxImgId1 = "605ZLNk+RIm5xPHkjtlmTA=="),
- (i.WxImg2 = "https://wxclient.gzqidong.cn/resource/Upload/resource/1675246963653691576.jpg"),
- (i.WxImgId2 = "QSFGUmDpQB65Mu5d1oZFzQ==");
- class a {
- static isWeixinMiniGame() {
- return "undefined" != typeof wx;
- }
- static getServerUID() {
- return s.default.GameDataMsr.playerInfo.id;
- }
- static getOpenId() {
- return s.default.GameDataMsr.playerInfo.openid;
- }
- static isFriendShare() {
- var t = !1,
- e = wx.getLaunchOptionsSync();
- return (t = e && e.query && e.query.shareMessageToFriendScene === i.WechatInvite.toString() ? !0 : t);
- }
- static onMainSceneLoaded() {
- a.isWeixinMiniGame() &&
- (wx.getLaunchOptionsSync(),
- wx.setMessageToFriendQuery({shareMessageToFriendScene: i.WechatInvite}),
- o.WxMiniGameUtil.tryGetInfo());
- }
- static randomShareData() {
- var t = new Array();
- return (
- 1 == s.default.RandomUtils.limitInteger(0, 2)
- ? (t.push(i.WechatInviteRandom1ImageURL), t.push(i.WxImgId1))
- : (t.push(i.WechatInviteRandom1ImageURL), t.push(i.WxImgId2)),
- t.push("你离亿万富翁,只差一座金矿!"),
- t
- );
- }
- }
- (i.GamePlatform = a), (i.ShareKeyConst = {fur: "fur", bubble: "bubble", shop: "shop", task: "task"});
|