注释V6指定白名单

This commit is contained in:
tianfeng 2026-03-21 17:59:35 +08:00
parent 3f8e20fa50
commit c77d450b21

View File

@ -505,7 +505,7 @@ public class UserProfileGatewayImpl implements UserProfileGateway {
@Override
public boolean getUserVipAbility(Long userId, VipAbilityType abilityType) {
if (!inWhiteList(userId)) return false;
// if (!inWhiteList(userId)) return false;
if (!abilityType.hasAbility(resolveUserVipName(userId))) return false;
return userVipAbilitySettingService.isEnabled(userId, abilityType);
}
@ -543,7 +543,7 @@ public class UserProfileGatewayImpl implements UserProfileGateway {
@Override
public BigDecimal getUserVipBenefit(Long userId, VipBenefitType benefitType) {
if (!inWhiteList(userId)) return BigDecimal.ONE;
// if (!inWhiteList(userId)) return BigDecimal.ONE;
return benefitType.getValue(resolveUserVipName(userId));
}