From 948615f68846b31801342b3ea954f561d85c741f Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 11 Nov 2025 12:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E6=88=90=E4=B8=BA=E4=B8=BB?= =?UTF-8?q?=E6=92=AD=E9=A1=B5=E9=9D=A2=E5=A2=9E=E5=8A=A0=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=8C=87=E7=BA=B9=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/app/command/team/TeamUserApplyJoinExe.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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);