From c1880b58af6ffcf038223044eff040234de996fe Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Fri, 28 Apr 2023 11:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=AE=9E=E7=89=A9=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/HighActivityUserLotteryNumServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }