去掉公会改邀请人限制fixed
This commit is contained in:
@@ -213,10 +213,10 @@ public class FamilyManageAdminService {
|
||||
Optional.ofNullable(inviteUid)
|
||||
.filter(x -> !Objects.equals(family.getInviteUid(), x))
|
||||
.ifPresent(x -> {
|
||||
// Optional.ofNullable(bdInfoAdminService.existBdBoundGuildId(family.getId()))
|
||||
// .ifPresent(bdGuild -> {
|
||||
// throw new AdminServiceException("公会已经通过邀请人绑定BD,如需更改邀请人,请移步BD管理解除BD绑定");
|
||||
// });
|
||||
Optional.ofNullable(bdInfoAdminService.existBdBoundGuildId(family.getId()))
|
||||
.ifPresent(bdGuild -> {
|
||||
throw new AdminServiceException("公会已经通过邀请人绑定BD,如需更改邀请人,请移步BD管理解除BD绑定");
|
||||
});
|
||||
bdInfoAdminService.bindBdFamily(family, x);
|
||||
});
|
||||
}
|
||||
|
@@ -193,9 +193,6 @@ public class GuildManageAdminService {
|
||||
throw new AdminServiceException(GUILD_APPLY_GUILD_NAME_CHECK);
|
||||
}
|
||||
|
||||
//后天添加了公会超管,绑定之后不允许更改邀请人
|
||||
this.guildSuperAdminCheck(guild, inviteErbanNo);
|
||||
|
||||
Long inviteUid = this.bdBound(guild, inviteErbanNo);
|
||||
|
||||
guildService.lambdaUpdate().eq(Guild::getId, id)
|
||||
@@ -257,10 +254,10 @@ public class GuildManageAdminService {
|
||||
Optional.ofNullable(inviteUid)
|
||||
.filter(x -> !Objects.equals(guild.getInviteUid(), x))
|
||||
.ifPresent(x -> {
|
||||
// Optional.ofNullable(bdInfoAdminService.existBdBoundGuildId(guild.getId()))
|
||||
// .ifPresent(bdGuild -> {
|
||||
// throw new AdminServiceException("公会已经通过邀请人绑定BD,如需更改邀请人,请移步BD管理解除BD绑定");
|
||||
// });
|
||||
Optional.ofNullable(bdInfoAdminService.existBdBoundGuildId(guild.getId()))
|
||||
.ifPresent(bdGuild -> {
|
||||
throw new AdminServiceException("公会已经通过邀请人绑定BD,如需更改邀请人,请移步BD管理解除BD绑定");
|
||||
});
|
||||
bdInfoAdminService.bindBdGuild(guild, x);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user