From aba6a09f750413d81a03b9f35c932db78f6f28a7 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 2 Apr 2026 19:06:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B6=85=E7=BA=A7=E7=B2=89?= =?UTF-8?q?=E4=B8=9D=20=E7=B4=AF=E8=AE=A1=E8=AE=A1=E7=AE=97=E5=AE=88?= =?UTF-8?q?=E6=8A=A4=E5=80=BC=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/app/listener/gift/strategy/GiftCountStrategy.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/strategy/GiftCountStrategy.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/strategy/GiftCountStrategy.java index bb33a9f9..884fb89b 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/strategy/GiftCountStrategy.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/strategy/GiftCountStrategy.java @@ -146,6 +146,7 @@ public class GiftCountStrategy implements GiftStrategy { private static final List inRegionCodes = List.of("IN", "PK", "BD"); private final UserRegionCacheService userRegionCacheService; private final UserProfileGateway userProfileGateway; + private final UserGuardCountService userguardCountService; @Override @@ -194,6 +195,9 @@ public class GiftCountStrategy implements GiftStrategy { BigDecimal userVipBenefit = userProfileGateway.getUserVipBenefit(accept.getAcceptUserId(), VipBenefitType.XP_RATE); BigDecimal resultValueCount = giftValueCount.multiply(userVipBenefit).setScale(0, RoundingMode.DOWN); + + //记录守护值 + userguardCountService.incrLasts15Days(runningWater.getUserId(), accept.getAcceptUserId(), resultValueCount.longValue()); // 记录魅力等级 consumptionLevelService.incrConsumptionDiamond(accept.getAcceptUserId(), resultValueCount);