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);