|
@@ -70,7 +70,7 @@ public class GameAuthServiceImpl extends ServiceImpl<GameAuthMapper, GameAuth> i
|
|
|
if (super.count(new LambdaQueryWrapper<GameAuth>()
|
|
|
.eq(GameAuth::getGameId, gameId)
|
|
|
.eq(GameAuth::getUserId, userId)
|
|
|
- ) <= 0) {
|
|
|
+ ) > 0) {
|
|
|
throw new BaseException("参数错误, 提交的用户存在重复权限");
|
|
|
}
|
|
|
addList.add(this.transform(gameId, userId));
|