From b27d2e323c3742c36da57ac8edeb7bead17ea02d Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Sat, 23 Nov 2024 13:02:55 +0800 Subject: [PATCH] =?UTF-8?q?release-=20=E7=89=B9=E6=AE=8A=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E4=B9=9F=E5=8F=AA=E5=85=81=E8=AE=B8=E5=AE=8C=E6=88=90=E4=B8=80?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/luoo/user/service/UserPointLogService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java b/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java index fdeaa28..b92e9ac 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java @@ -199,9 +199,9 @@ public class UserPointLogService { String description = taskPoint == null ? userPointLog.getDescription() : taskPoint.getDescription(); - // 对于新手任务,只允许完成一次,如果用户已经完成过,则直接返回,不重复添加积分 - if (Objects.equals(type, PointEnums.TASK_TYPE_NEW.getCode())) { - // 新手任务,只触发一次 + // 对于新手任务 || 特殊任务,只允许完成一次,如果用户已经完成过,则直接返回,不重复添加积分 + if (Objects.equals(type, PointEnums.TASK_TYPE_NEW.getCode()) || Objects.equals(type, PointEnums.TASK_TYPE_SPECIAL.getCode())) { + // 新手任务 || 特殊任务,只触发一次 if (!userPointLogDao.findUserPointLogByUserIdAndTaskPointId( userPointLog.getUserId(), userPointLog.getTaskPointId()).isEmpty()) {