diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/TeamUserApplyJoinExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/TeamUserApplyJoinExe.java index 1bfab50f..03a94aa8 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/TeamUserApplyJoinExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/TeamUserApplyJoinExe.java @@ -12,6 +12,7 @@ import com.red.circle.other.app.dto.cmd.team.DbInviteAgentCmd; import com.red.circle.other.app.dto.cmd.team.DbLeaderInviteBdCmd; import com.red.circle.other.app.dto.cmd.team.TeamUserApplyCmd; import com.red.circle.other.domain.gateway.user.UserProfileGateway; +import com.red.circle.other.domain.gateway.user.ability.RegisterDeviceGateway; import com.red.circle.other.domain.gateway.user.ability.UserRegionGateway; import com.red.circle.other.infra.database.cache.service.other.EnumConfigCacheService; import com.red.circle.other.infra.database.mongo.entity.team.team.TeamApplicationProcess; @@ -62,7 +63,7 @@ public class TeamUserApplyJoinExe { private final LatestMobileDeviceService latestMobileDeviceService; private final TeamApplicationProcessService teamApplicationProcessService; private final BusinessDevelopmentBaseInfoService businessDevelopmentBaseInfoService; - private final OfficialNoticeClient officialNoticeClient; + private final RegisterDeviceGateway registerDeviceGateway; private final EnumConfigCacheService enumConfigCacheService; public String execute(TeamUserApplyCmd cmd) { @@ -91,6 +92,12 @@ public class TeamUserApplyJoinExe { ResponseAssert.isFalse(TeamErrorCode.USER_IS_ALREADY_A_BD, businessDevelopmentBaseInfoService.checkBD(userProfile.getId())); + // 主播设备指纹校验 + Boolean hasAnchorWithSameDevice = registerDeviceGateway.checkDeviceFingerprintHasAnchor( + cmd.getReqUserId()); + ResponseAssert.isFalse(TeamErrorCode.DEVICE_FINGERPRINT_USED_BY_ANCHOR, hasAnchorWithSameDevice); + + // ResponseAssert.isTrue(TeamErrorCode.JOIN_RESTRICTIONS, checkJoinLimit(cmd)); checkApply(cmd, teamProfile);