Merge remote-tracking branch 'origin/main'

This commit is contained in:
COMPUTER\EDY 2025-10-17 19:17:05 +08:00
commit bf779dfefa
2 changed files with 2 additions and 3 deletions

View File

@ -63,7 +63,7 @@ export class GameConfig {
static DAILY_SHARE_LIMITS = {
health: 2, //获得体力每日分享限制次数
hammer: 0, //获得锤子道具每日分享限制次数
hammer: 2, //获得锤子道具每日分享限制次数
freeze: 2, //获得冰冻时间道具每日分享限制次数
magicWand: 2, //获得魔棒道具每日分享限制次数
reviveTime: 0, //复活加时间道具每日分享限制次数

View File

@ -1559,9 +1559,8 @@ var GameTool = {
cc.fx.GameConfig.GM_INFO.dailyShareCounts[propType] = storedShareCount;
}
}
console.log("本地获取的分享次数", cc.fx.GameConfig.GM_INFO.dailyShareCounts[propType])
const shareLimit = (cc.fx.GameConfig.DAILY_SHARE_LIMITS && cc.fx.GameConfig.DAILY_SHARE_LIMITS[propType]) || 0;
// console.log("获得分享次数", cc.fx.GameConfig.GM_INFO.dailyShareCounts[propType] + "+++" + shareLimit);
return cc.fx.GameConfig.GM_INFO.dailyShareCounts[propType] < shareLimit;
},