新红包优化
parent
3030bb501f
commit
f1776030ef
|
|
@ -1379,7 +1379,7 @@ public class GuildLogic {
|
|||
User user = UserManager.getUser(uid);
|
||||
int dailyGet = user.getPlayerInfoManager().getDailyWelfareRedPacket();
|
||||
int maxGet = SSpecialConfig.getIntegerValue(SSpecialConfig.WELFAREREDPACKET_LIMIT);
|
||||
if(dailyGet < maxGet){
|
||||
if(dailyGet <= maxGet){
|
||||
user.getPlayerInfoManager().setDailyWelfareRedPacket(dailyGet+1);
|
||||
}else{
|
||||
throw new ErrorCodeException(ErrorCode.REDPACKET_DAILY_LIMIT);
|
||||
|
|
|
|||
Loading…
Reference in New Issue