补充 wx版本

This commit is contained in:
computer\尼卡 2025-07-04 11:24:48 +08:00
parent 6c88048986
commit 2092fade8e
2 changed files with 20 additions and 11 deletions

View File

@ -306,6 +306,12 @@ stopHeathTimeCutDown() {
this.node.getChildByName("zhuanchang").getComponent(sp.Skeleton).setAnimation(1, "up", false); this.node.getChildByName("zhuanchang").getComponent(sp.Skeleton).setAnimation(1, "up", false);
cc.fx.GameConfig.LEVEL_INFO_init(true, 1000); cc.fx.GameConfig.LEVEL_INFO_init(true, 1000);
} }
else{
cc.fx.AudioManager._instance.playEffect("zhuan1", null);
this.node.getChildByName("zhuanchang").active = true;
this.node.getChildByName("zhuanchang").getComponent(sp.Skeleton).setAnimation(1, "up", false);
cc.fx.GameConfig.LEVEL_INFO_init(true, 1000);
}
} }

View File

@ -960,6 +960,8 @@ var GameTool = {
}, },
getWechatGameVersion: function(){ getWechatGameVersion: function(){
//@ts-ignore
if (typeof wx!== 'undefined' && wx!== null) {
//@ts-ignore //@ts-ignore
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const miniProgram = accountInfo.miniProgram; const miniProgram = accountInfo.miniProgram;
@ -973,6 +975,7 @@ var GameTool = {
default: default:
return '未知版本'; return '未知版本';
} }
}
}, },
}; };