From 105f79e36faa620354cc00d5e28fd8082fb9b0c6 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Fri, 6 Mar 2026 11:36:25 +0800 Subject: [PATCH] =?UTF-8?q?tmp-=E6=8B=89=E6=96=B0=E5=A5=96=E5=8A=B1?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=99=BD=E5=90=8D=E5=8D=95=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/user/impl/InviteUserClientServiceImpl.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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));