diff --git a/assets/Script/JiaZai.ts b/assets/Script/JiaZai.ts index d4f01d1..f15361b 100644 --- a/assets/Script/JiaZai.ts +++ b/assets/Script/JiaZai.ts @@ -854,7 +854,7 @@ export default class JiaZai extends cc.Component { let version = cc.fx.GameTool.getWechatGameVersion(); if (cc.fx.GameTool.maxLevel()) { if (version != "开发版" && version != "体验版") { - // MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); + MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); cc.fx.GameTool.requestSubscribe(); return; } @@ -885,7 +885,7 @@ export default class JiaZai extends cc.Component { cc.fx.GameConfig.GM_INFO.level = parseInt(this.custom.string) - 1; // cc.fx.StorageMessage.setStorage("level",cc.fx.GameConfig.GM_INFO.level.toString()); if (cc.fx.GameTool.maxLevel()) { - // MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); + MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); cc.fx.GameTool.requestSubscribe(); return; } @@ -896,7 +896,7 @@ export default class JiaZai extends cc.Component { this.node.getChildByName("zhuanchang").active = true; this.node.getChildByName("zhuanchang").getComponent(sp.Skeleton).setAnimation(1, "up", false); if (cc.fx.GameTool.maxLevel()) { - // MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); + MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); cc.fx.GameTool.requestSubscribe(); return; } @@ -905,7 +905,7 @@ export default class JiaZai extends cc.Component { } else if (version == "正式版") { if (cc.fx.GameTool.maxLevel()) { - // MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); + MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); cc.fx.GameTool.requestSubscribe(); return; } @@ -920,7 +920,7 @@ export default class JiaZai extends cc.Component { cc.fx.GameConfig.GM_INFO.level = parseInt(this.custom.string) - 1; // cc.fx.StorageMessage.setStorage("level",cc.fx.GameConfig.GM_INFO.level.toString()); if (cc.fx.GameTool.maxLevel()) { - // MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); + MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); cc.fx.GameTool.requestSubscribe(); return; } @@ -931,7 +931,7 @@ export default class JiaZai extends cc.Component { this.node.getChildByName("zhuanchang").active = true; this.node.getChildByName("zhuanchang").getComponent(sp.Skeleton).setAnimation(1, "up", false); if (cc.fx.GameTool.maxLevel()) { - // MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); + MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); cc.fx.GameTool.requestSubscribe(); return; } diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index eda2af0..2c18a96 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -2143,7 +2143,7 @@ export default class MapConroler extends cc.Component { } if (cc.fx.GameTool.maxLevel()) { - // MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); + MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); cc.fx.GameTool.requestSubscribe(); return; } diff --git a/assets/Script/module/Config/GameConfig.ts b/assets/Script/module/Config/GameConfig.ts index 9de55af..a7db2d9 100644 --- a/assets/Script/module/Config/GameConfig.ts +++ b/assets/Script/module/Config/GameConfig.ts @@ -352,7 +352,7 @@ export class GameConfig { if (cc.fx.GameTool.maxLevel() && otherLevel == false) { - // MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); + MiniGameSdk.API.showToast("关卡每周更新,敬请期待!"); cc.fx.GameTool.requestSubscribe(); return; }