diff --git a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/InviteUserClientServiceImpl.java b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/InviteUserClientServiceImpl.java index 119fafa0..f6ca070d 100644 --- a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/InviteUserClientServiceImpl.java +++ b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/InviteUserClientServiceImpl.java @@ -10,8 +10,11 @@ import com.red.circle.framework.dto.PageResult; import com.red.circle.framework.mybatis.convertor.MybatisConvertor; import com.red.circle.other.app.inner.convertor.user.UserInviteInnerConvertor; import com.red.circle.other.app.inner.service.user.user.InviteUserClientService; +import com.red.circle.other.app.service.user.user.UserProfileService; +import com.red.circle.other.domain.gateway.user.UserProfileGateway; import com.red.circle.other.domain.gateway.user.ability.InviteUserGateway; import com.red.circle.other.domain.model.user.RechargeCommissionResult; +import com.red.circle.other.domain.model.user.UserProfile; import com.red.circle.other.infra.database.cache.service.user.UserInviteCacheService; import com.red.circle.other.infra.database.rds.entity.user.user.OneTimeTask; import com.red.circle.other.infra.database.rds.query.user.InviteUserQry; @@ -85,6 +88,8 @@ public class InviteUserClientServiceImpl implements InviteUserClientService { private final PropsActivityClient propsActivityClient; private final WalletGoldClient walletGoldClient; private final OneTimeTaskService oneTimeTaskService; + private final EnumConfigClient enumConfigClient; + private final UserProfileGateway userProfileGateway; @Override @@ -96,6 +101,13 @@ public class InviteUserClientServiceImpl implements InviteUserClientService { return; } + String whiteConfig = enumConfigClient.getValue("LOGIN_WHITE_CONFIG", "LIKEI").getBody(); + List whiteIds = StringUtils.isNotBlank(whiteConfig) ? Arrays.asList(whiteConfig.split(",")) : Collections.emptyList(); + UserProfile userProfile = userProfileGateway.getByUserId(inviteUserId); + if (userProfile == null || !whiteIds.contains(userProfile.getAccount())) { + return; + } + checkAndAwardTiers(result); } catch (Exception e) { log.error("被邀请人充值邀请人获得佣金累计错误: {}", Throwables.getStackTraceAsString(e));