fix: 修复了无社团用户无法登录的BUG
This commit is contained in:
parent
7ae9843c89
commit
6d8dffd46f
@ -23,4 +23,5 @@ public class ClubController {
|
||||
public BaseResponse<ClubInformation> getClub(@RequestParam("id") int clubId){
|
||||
return clubService.getClubInformationById(clubId);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -43,6 +43,9 @@ public class ClubService {
|
||||
}
|
||||
public Club getClubByUserId(int userId){
|
||||
ClubUserAuthVo clubUserAuthVoByUserId = this.clubUserAuthDao.getClubUserAuthVoByUserId(userId);
|
||||
if (clubUserAuthVoByUserId == null){
|
||||
return null;
|
||||
}
|
||||
int i = clubUserAuthVoByUserId.authId();
|
||||
Auth auth = i != -1 ? authService.getAuthById(i) : null;
|
||||
Club clubById = getClubWithoutAuthById(clubUserAuthVoByUserId.clubId());
|
||||
|
Loading…
x
Reference in New Issue
Block a user