From 42bcad935bf50d2270c1d5d8fc2026171d5c8624 Mon Sep 17 00:00:00 2001 From: duhui Date: Thu, 9 Sep 2021 16:57:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logic/store/newRechargeInfo/bean/AbstractWelfareBag.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/newRechargeInfo/bean/AbstractWelfareBag.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/newRechargeInfo/bean/AbstractWelfareBag.java index eb51d7f50..af2a78bd1 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/newRechargeInfo/bean/AbstractWelfareBag.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/newRechargeInfo/bean/AbstractWelfareBag.java @@ -83,8 +83,8 @@ public class AbstractWelfareBag extends MongoBase{ LOGGER.error("礼包:{}未开启",modId); return false; } - if(limit != 0 && buyTimes >=limit){ - LOGGER.error("礼包:{}购买次数为:{}超过限制:{}",modId,buyTimes,limit); + if(getLimit() != 0 && buyTimes >=getLimit()){ + LOGGER.error("礼包:{}购买次数为:{}超过限制:{}",modId,buyTimes,getLimit()); return false; } if(isUserBuyRefresh && getRefreshTime() == 0){