主播退出公会申请-判断分区前先判空user,兼容未注册用户
This commit is contained in:
@@ -85,8 +85,6 @@ public class UsersController extends BaseController {
|
||||
@Autowired
|
||||
private UserChatBubbleService userChatBubbleService;
|
||||
@Autowired
|
||||
private UserVisitRecordService userVisitRecordService;
|
||||
@Autowired
|
||||
private UserInRoomService userInRoomService;
|
||||
@Autowired
|
||||
private AccountBlockService accountBlockService;
|
||||
@@ -126,13 +124,13 @@ public class UsersController extends BaseController {
|
||||
Long requestUid = getUid(request);
|
||||
boolean isSelft = uid.equals(requestUid);
|
||||
|
||||
Users me = usersService.getNotNullUsersByUid(requestUid);
|
||||
UserVo userVo = this.usersService.getCacheUserVoByUid(uid);
|
||||
if (userVo == null) {
|
||||
return new BusiResult<>(BusiStatus.USERNOTEXISTS);
|
||||
}
|
||||
|
||||
if (!isSelft && !PartitionUtil.inPartition(userVo.getPartitionId(), me.getPartitionId())){
|
||||
Users me = usersService.getUsersByUid(requestUid);
|
||||
if (!isSelft && null != me && !PartitionUtil.inPartition(userVo.getPartitionId(), me.getPartitionId())){
|
||||
throw new ServiceException(BusiStatus.PARTITION_ERROR_USER_DETAIL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user