添加每日赠送次数限制

back_recharge
yuanshuai 2021-09-27 09:45:44 +08:00
parent 3eab389f36
commit 4ba1470fb5
1 changed files with 4 additions and 4 deletions

View File

@ -41,10 +41,10 @@ public class HeroUpLikableRequestHandler extends BaseHandler<HeroInfoProto.HeroU
User user = UserManager.getUser(uid);
HeroManager heroManager=user.getHeroManager();
// if (itemNum+heroManager.getLikableSendTime()> SSpecialConfig.getIntegerValue(SSpecialConfig.LIKE_ABILITY)){
// LOGGER.error("好感度赠送次数超出每日限制");
// throw new ErrorCodeException(ErrorCode.REFRESH_WHEL_TIME_NOT);
// }
if (itemNum+heroManager.getLikableSendTime()> SSpecialConfig.getIntegerValue(SSpecialConfig.LIKE_ABILITY)){
LOGGER.error("好感度赠送次数超出每日限制");
throw new ErrorCodeException(ErrorCode.REFRESH_WHEL_TIME_NOT);
}
int[][]costArr=new int[1][2];
costArr[0][0]=itemId;
costArr[0][1]=itemNum;