新增超级粉丝 累计计算守护值逻辑
This commit is contained in:
parent
40f4fdf00d
commit
aba6a09f75
@ -146,6 +146,7 @@ public class GiftCountStrategy implements GiftStrategy {
|
||||
private static final List<String> 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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user