diff --git a/hai-service/src/main/java/com/hai/service/impl/HighActivityUserLotteryNumServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighActivityUserLotteryNumServiceImpl.java index 42e8c205..20afaccb 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighActivityUserLotteryNumServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighActivityUserLotteryNumServiceImpl.java @@ -146,11 +146,11 @@ public class HighActivityUserLotteryNumServiceImpl implements HighActivityUserLo if (secConfig != null) { // 判断是否活动为空 if (detail == null) { - addLotteryNum(activityId , userId , 3); - return 3; + addLotteryNum(activityId , userId , Integer.valueOf(secConfig.getCodeValue())); + return 1; } else { if (!DateUtil.isNow(detail.getUpdateTime())) { - detail.setLotteryNum(3); + detail.setLotteryNum(Integer.valueOf(secConfig.getCodeValue())); detail.setUpdateTime(new Date()); highActivityUserLotteryNumMapper.updateByPrimaryKey(detail); }