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