feat: introduce middleware rabbitmq and redis
This commit is contained in:
@@ -94,16 +94,16 @@ public class InvitingServiceImpl extends ServiceImpl<InvitingMapper, Inviting> {
|
||||
|
||||
}
|
||||
|
||||
public Integer playroomIsAdmin(Integer id, Integer r_id) {
|
||||
try {
|
||||
Playrooms playrooms = playroomsMapper.selectOne(Wrappers.<Playrooms>lambdaQuery().eq(Playrooms::getId,id).eq(Playrooms::getR_id,r_id));
|
||||
if (playrooms == null) return 1;
|
||||
else return playrooms.getRole();
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage());
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
// public Integer playroomIsAdmin(Integer id, Integer r_id) {
|
||||
// try {
|
||||
// Playrooms playrooms = playroomsMapper.selectOne(Wrappers.<Playrooms>lambdaQuery().eq(Playrooms::getId,id).eq(Playrooms::getR_id,r_id));
|
||||
// if (playrooms == null) return 1;
|
||||
// else return playrooms.getRole();
|
||||
// } catch (Exception e) {
|
||||
// log.error(e.getMessage());
|
||||
// throw new RuntimeException(e);
|
||||
// }
|
||||
// }
|
||||
|
||||
public Boolean handlePlayroomInviting(Inviting inviting) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user