补充 wx版本
This commit is contained in:
parent
6c88048986
commit
2092fade8e
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -961,17 +961,20 @@ var GameTool = {
|
||||||
|
|
||||||
getWechatGameVersion: function(){
|
getWechatGameVersion: function(){
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
const accountInfo = wx.getAccountInfoSync();
|
if (typeof wx!== 'undefined' && wx!== null) {
|
||||||
const miniProgram = accountInfo.miniProgram;
|
//@ts-ignore
|
||||||
switch (miniProgram.envVersion) {
|
const accountInfo = wx.getAccountInfoSync();
|
||||||
case 'develop':
|
const miniProgram = accountInfo.miniProgram;
|
||||||
return '开发版';
|
switch (miniProgram.envVersion) {
|
||||||
case 'trial':
|
case 'develop':
|
||||||
return '体验版';
|
return '开发版';
|
||||||
case 'release':
|
case 'trial':
|
||||||
return '正式版';
|
return '体验版';
|
||||||
default:
|
case 'release':
|
||||||
return '未知版本';
|
return '正式版';
|
||||||
|
default:
|
||||||
|
return '未知版本';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user