封装优化
parent
70b92f1b91
commit
42bcad935b
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue