소스 검색

fix : 游戏权限对接修改1

bilingfeng 1 년 전
부모
커밋
71b7449ea1

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/service/impl/GameAuthServiceImpl.java

@@ -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));