瀏覽代碼

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