申请成为主播页面增加设备指纹限制
This commit is contained in:
parent
7aa395f3fc
commit
948615f688
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user