修复一个小问题

This commit is contained in:
COMPUTER\EDY 2026-01-13 19:22:49 +08:00
parent b6fa95e3a2
commit 667c1c6863
2 changed files with 118 additions and 105 deletions

View File

@ -156,6 +156,13 @@ export default class JiaZai extends cc.Component {
this.Stamina.parent.getChildByName("xinshou").active = false; this.Stamina.parent.getChildByName("xinshou").active = false;
this.winStreakShow = false; this.winStreakShow = false;
this.checkStarter_pack(); this.checkStarter_pack();
// Utils.getShopDouble(res => {
// if (res.code === 1) {
// console.log("获取到的shopDouble", res.data.shopDouble);
// cc.fx.GameConfig.GM_INFO.shopDouble = res.data.shopDouble;
// }
// })
//每日任务 //每日任务
this.dailyQuestsShow = false; this.dailyQuestsShow = false;
@ -1365,6 +1372,10 @@ export default class JiaZai extends cc.Component {
console.error('获取系统信息失败', e); console.error('获取系统信息失败', e);
} }
if (cc.fx.GameConfig.GM_INFO.allOutTradeNo) { if (cc.fx.GameConfig.GM_INFO.allOutTradeNo) {
Utils.getShopDouble(res => {
if (res.code === 1) {
console.log("获取到的shopDouble", res.data.shopDouble);
cc.fx.GameConfig.GM_INFO.shopDouble = res.data.shopDouble;
if (cc.fx.GameConfig.GM_INFO.allOutTradeNo.length != 0) { if (cc.fx.GameConfig.GM_INFO.allOutTradeNo.length != 0) {
console.log("有需要补发数据", cc.fx.GameConfig.GM_INFO.allOutTradeNo); console.log("有需要补发数据", cc.fx.GameConfig.GM_INFO.allOutTradeNo);
@ -1376,7 +1387,6 @@ export default class JiaZai extends cc.Component {
console.log("补发逻辑全部完成已清空allOutTradeNo数组"); console.log("补发逻辑全部完成已清空allOutTradeNo数组");
return; // 所有订单处理完成 return; // 所有订单处理完成
} }
let order = cc.fx.GameConfig.GM_INFO.allOutTradeNo[index]; let order = cc.fx.GameConfig.GM_INFO.allOutTradeNo[index];
console.log("需要补发数据", order); console.log("需要补发数据", order);
if (order.itemid == "gold_1" || order.itemid == "gold_2" || order.itemid == "gold_3" if (order.itemid == "gold_1" || order.itemid == "gold_2" || order.itemid == "gold_3"
@ -1469,6 +1479,9 @@ export default class JiaZai extends cc.Component {
processOrder(0); processOrder(0);
} }
} }
})
}
} }
} }

View File

@ -188,11 +188,11 @@ export default class MapConroler extends cc.Component {
onLoad() { onLoad() {
//以下为检验关卡 //以下为检验关卡
// console.log("当前关卡", cc.fx.GameConfig.GM_INFO.level); console.log("当前关卡", cc.fx.GameConfig.GM_INFO.level);
// setTimeout(() => { setTimeout(() => {
// cc.fx.GameConfig.GM_INFO.level += 1; cc.fx.GameConfig.GM_INFO.level += 1;
// cc.fx.GameConfig.LEVEL_INFO_init(true, 0, false); cc.fx.GameConfig.LEVEL_INFO_init(true, 0, false);
// }, 1000); }, 1000);
cc.fx.GameConfig.GM_INFO.sceneValue = "GameScene"; cc.fx.GameConfig.GM_INFO.sceneValue = "GameScene";
@ -5171,7 +5171,7 @@ export default class MapConroler extends cc.Component {
} }
endlessLevelShow() { endlessLevelShow() {
console.log("刷新关卡等级", cc.fx.GameTool.maxLevel(), cc.fx.GameConfig.GM_INFO.endLevelNum); // console.log("刷新关卡等级", cc.fx.GameTool.maxLevel(), cc.fx.GameConfig.GM_INFO.endLevelNum);
let top = this.node.parent.getChildByName("Top"); let top = this.node.parent.getChildByName("Top");
top.getChildByName("shareBtn").active = true; top.getChildByName("shareBtn").active = true;
this.node.parent.parent.parent.getChildByName("Pause").getChildByName("share").active = true; this.node.parent.parent.parent.getChildByName("Pause").getChildByName("share").active = true;