|
@@ -120,7 +120,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
List<GameUserRole> gameUserRoleList = gameUserRoleService.list(new LambdaQueryWrapper<GameUserRole>()
|
|
|
.eq(GameUserRole::getUserId, user.getId())
|
|
|
.eq(GameUserRole::getGameId, user.getGameId()));
|
|
|
- if (CollectionUtils.isNotEmpty(gameUserRoleList)) {
|
|
|
+ if (CollectionUtils.isEmpty(gameUserRoleList)) {
|
|
|
throw new BaseException("参数错误, 用户不存在角色信息");
|
|
|
}
|
|
|
List<GameUserRole> h5GameUserRoleList = gameUserRoleList.stream().map(gameUserRole -> GameUserRole.builder()
|