打开之前注释 关卡每周更新
This commit is contained in:
parent
21e660d77e
commit
917e26caee
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user