bd 邀请限制

This commit is contained in:
tianfeng 2025-11-28 15:15:30 +08:00
parent 7a700909a7
commit d9713a0966

View File

@ -46,7 +46,6 @@ public class BdLeaderInviteBdExe {
private final RoomBdLeadService roomBdLeadService; private final RoomBdLeadService roomBdLeadService;
private final UserProfileGateway userProfileGateway; private final UserProfileGateway userProfileGateway;
private final OfficialNoticeClient officialNoticeClient; private final OfficialNoticeClient officialNoticeClient;
private final EnumConfigCacheService enumConfigCacheService;
private final UserProfileAppConvertor userProfileAppConvertor; private final UserProfileAppConvertor userProfileAppConvertor;
private final BdInviteAgentMessageService bdInviteAgentMessageService; private final BdInviteAgentMessageService bdInviteAgentMessageService;
private final BusinessDevelopmentBaseInfoService businessDevelopmentBaseInfoService; private final BusinessDevelopmentBaseInfoService businessDevelopmentBaseInfoService;
@ -61,6 +60,9 @@ public class BdLeaderInviteBdExe {
ResponseAssert.isFalse(CommonErrorCode.INSUFFICIENT_PERMISSION, ResponseAssert.isFalse(CommonErrorCode.INSUFFICIENT_PERMISSION,
roomBdLeadService.checkBdLeader(cmd.getInviteUserId())); roomBdLeadService.checkBdLeader(cmd.getInviteUserId()));
ResponseAssert.isFalse(CommonErrorCode.INSUFFICIENT_PERMISSION,
businessDevelopmentBaseInfoService.checkBD(cmd.getInviteUserId()));
// 权限不足 // 权限不足
BusinessDevelopmentBaseInfo bd = getDevelopmentBaseInfoServiceByUserId(cmd); BusinessDevelopmentBaseInfo bd = getDevelopmentBaseInfoServiceByUserId(cmd);
ResponseAssert.isFalse(CommonErrorCode.INSUFFICIENT_PERMISSION, Objects.nonNull(bd) ResponseAssert.isFalse(CommonErrorCode.INSUFFICIENT_PERMISSION, Objects.nonNull(bd)