注释V6指定白名单
This commit is contained in:
parent
3f8e20fa50
commit
c77d450b21
@ -505,7 +505,7 @@ public class UserProfileGatewayImpl implements UserProfileGateway {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getUserVipAbility(Long userId, VipAbilityType abilityType) {
|
public boolean getUserVipAbility(Long userId, VipAbilityType abilityType) {
|
||||||
if (!inWhiteList(userId)) return false;
|
// if (!inWhiteList(userId)) return false;
|
||||||
if (!abilityType.hasAbility(resolveUserVipName(userId))) return false;
|
if (!abilityType.hasAbility(resolveUserVipName(userId))) return false;
|
||||||
return userVipAbilitySettingService.isEnabled(userId, abilityType);
|
return userVipAbilitySettingService.isEnabled(userId, abilityType);
|
||||||
}
|
}
|
||||||
@ -543,7 +543,7 @@ public class UserProfileGatewayImpl implements UserProfileGateway {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BigDecimal getUserVipBenefit(Long userId, VipBenefitType benefitType) {
|
public BigDecimal getUserVipBenefit(Long userId, VipBenefitType benefitType) {
|
||||||
if (!inWhiteList(userId)) return BigDecimal.ONE;
|
// if (!inWhiteList(userId)) return BigDecimal.ONE;
|
||||||
|
|
||||||
return benefitType.getValue(resolveUserVipName(userId));
|
return benefitType.getValue(resolveUserVipName(userId));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user