tmp-拉新奖励增加白名单逻辑
This commit is contained in:
parent
e2849d2cca
commit
105f79e36f
@ -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<String> 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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user