后台bug
This commit is contained in:
@@ -173,10 +173,15 @@ public class GuildManageAdminService {
|
||||
throw new AdminServiceException(BusiStatus.FAMILY_NOT_EXIST);
|
||||
}
|
||||
|
||||
Long inviteUid = Optional.ofNullable(inviteErbanNo)
|
||||
.map(no -> usersService.getUserByErbanNo(no))
|
||||
.map(user -> user.getUid())
|
||||
.orElseThrow(() -> new AdminServiceException("邀请人ID不存在"));
|
||||
Long inviteUid = null;
|
||||
|
||||
if (inviteErbanNo != null) {
|
||||
Users user = usersService.getUserByErbanNo(inviteErbanNo);
|
||||
if (user == null) {
|
||||
throw new AdminServiceException("邀请人ID不存在");
|
||||
}
|
||||
inviteUid = user.getUid();
|
||||
}
|
||||
|
||||
Date offsetDay = DateUtil.offsetDay(guild.getCreateTime(), bdInfoAdminService.BOUND_EXPIRE_LIMIT_DAY);
|
||||
boolean enableEditInvite = offsetDay.after(new Date());
|
||||
|
Reference in New Issue
Block a user