更新
This commit is contained in:
parent
af046a2771
commit
da87556270
|
|
@ -326,7 +326,8 @@ export default class GameManager extends cc.Component {
|
|||
if (data.data.token) {
|
||||
cc.fx.GameConfig.GM_INFO.token = data.data.token;
|
||||
}
|
||||
this.setABTests(data.data.abTests);
|
||||
if (data.data.abTests)
|
||||
this.setABTests(data.data.abTests);
|
||||
|
||||
if (data.data.forcedUpdate) {
|
||||
const timestamp = Date.now();
|
||||
|
|
|
|||
|
|
@ -193,9 +193,8 @@ export default class JiaZai extends cc.Component {
|
|||
this.node.getChildByName("zhuanchang").zIndex = 1000;
|
||||
this.careerRank = null;
|
||||
this.closeLoad();
|
||||
if (cc.fx.GameConfig.GM_INFO.otherUid != "") {
|
||||
this.getShareInfo();
|
||||
}
|
||||
|
||||
this.getShareInfo();
|
||||
this.checkShare();
|
||||
this.closeAvatar();
|
||||
this.setShareInfo();
|
||||
|
|
|
|||
|
|
@ -1824,7 +1824,7 @@ var GameTool = {
|
|||
|
||||
setWinStreak(type) {
|
||||
if (type == "sucess") {
|
||||
if (cc.fx.GameConfig.GM_INFO.winStreak < 10) {
|
||||
if (cc.fx.GameConfig.GM_INFO.winStreak <= 10) {
|
||||
cc.fx.GameConfig.GM_INFO.winStreak += 1;
|
||||
if (cc.fx.GameConfig.GM_INFO.winStreak == 10) {
|
||||
cc.fx.GameConfig.GM_INFO.winStreakFirst = true;
|
||||
|
|
@ -2490,7 +2490,6 @@ var GameTool = {
|
|||
|
||||
//比较版本号大小方法
|
||||
compareVersion(v1: string, v2: string): number {
|
||||
console.log("比较版本号", v1, v2);
|
||||
let result = 0;
|
||||
let v1Array = v1.split(".");
|
||||
let v2Array = v2.split(".");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user