This commit is contained in:
COMPUTER\EDY 2026-07-22 10:11:27 +08:00
parent af046a2771
commit da87556270
3 changed files with 5 additions and 6 deletions

View File

@ -326,7 +326,8 @@ 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;
} }
this.setABTests(data.data.abTests); if (data.data.abTests)
this.setABTests(data.data.abTests);
if (data.data.forcedUpdate) { if (data.data.forcedUpdate) {
const timestamp = Date.now(); const timestamp = Date.now();

View File

@ -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();

View File

@ -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(".");