From 634873c579627d61e8cd8d13c4a5e7c7633f0572 Mon Sep 17 00:00:00 2001 From: huanghaipeng Date: Fri, 17 Oct 2025 19:14:14 +0800 Subject: [PATCH] 0-2 --- assets/Script/module/Config/GameConfig.ts | 2 +- assets/Script/module/Tool/GameTool.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/Script/module/Config/GameConfig.ts b/assets/Script/module/Config/GameConfig.ts index 66187ab..85e4ef3 100644 --- a/assets/Script/module/Config/GameConfig.ts +++ b/assets/Script/module/Config/GameConfig.ts @@ -63,7 +63,7 @@ export class GameConfig { static DAILY_SHARE_LIMITS = { health: 2, //获得体力每日分享限制次数 - hammer: 0, //获得锤子道具每日分享限制次数 + hammer: 2, //获得锤子道具每日分享限制次数 freeze: 2, //获得冰冻时间道具每日分享限制次数 magicWand: 2, //获得魔棒道具每日分享限制次数 reviveTime: 0, //复活加时间道具每日分享限制次数 diff --git a/assets/Script/module/Tool/GameTool.ts b/assets/Script/module/Tool/GameTool.ts index aef320e..43fe5ea 100644 --- a/assets/Script/module/Tool/GameTool.ts +++ b/assets/Script/module/Tool/GameTool.ts @@ -1539,9 +1539,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; },