This commit is contained in:
COMPUTER\EDY 2026-04-24 20:06:46 +08:00
parent 1ead3167cb
commit 55db7a94ef
5 changed files with 11 additions and 4 deletions

View File

@ -241,10 +241,16 @@ export default class GameManager extends cc.Component {
cc.fx.GameConfig.GM_INFO.openid = data.data.openid;
cc.fx.StorageMessage.setStorage("openid", cc.fx.GameConfig.GM_INFO.openid);
}
console.log("系统信息________:", data.data.version);
if (data.data.version) {
let result = cc.fx.GameTool.compareVersion(cc.fx.GameConfig.GM_INFO.version, data.data.version);
if (result == 1 && systemInfo.platform == 'ios')
console.log("版本号:", result);
if (result == 1 && systemInfo.platform == 'ios') {
console.log("ios");
cc.fx.GameConfig.GM_INFO.canIos = false;
}
else
cc.fx.GameConfig.GM_INFO.canIos = true;

View File

@ -195,6 +195,7 @@ export default class JiaZai extends cc.Component {
this.checkAndSetPlayerPassLevel();
// this.checkDailyQuests();
// console.log("进入首页获取的share", cc.fx.GameConfig.GM_INFO.otherUid, cc.fx.GameConfig.GM_INFO.otherLevel);
console.log("是否是ios:", cc.fx.GameConfig.GM_INFO.canIos);
this.node.getChildByName("Load").getChildByName("Top").getChildByName("shop").active = cc.fx.GameConfig.GM_INFO.canIos;

View File

@ -1742,7 +1742,7 @@ export namespace MiniGameSdk {
API._ge.initialize({
name: cc.fx.GameConfig.GM_INFO.openid,
version: cc.fx.GameConfig.GM_INFO.version,
version: 1.5,
openid: cc.fx.GameConfig.GM_INFO.openid,
enable_sync_attribution: false,//渠道归因
})

View File

@ -299,7 +299,7 @@ export class GameConfig {
vibrateOpen: true, //震动
coinnum: 0, //每局的金币数
paid_user: false, //是否是付费用户
version: "1.9.60", //版本号
version: "1.9.61", //版本号
shushu_DistinctId: "", //数数访客ID
shushu_AccountId: "", //数数账号ID
uid: "", //用户和后端唯一id

View File

@ -451,7 +451,7 @@ var GameTool = {
// cc.fx.StorageMessage.setStorage("level", levelInfo);
// }
let max_level = 1521;
let max_level = 1520;
if (cc.fx.GameConfig.GM_INFO.level > (max_level - 1)) {
cc.fx.GameConfig.GM_INFO.level = max_level;