Procházet zdrojové kódy

fix : 小游戏玩家导量到H5游戏1

bilingfeng před 1 rokem
rodič
revize
5985e327c7

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/ManageApplication.java

@@ -21,7 +21,7 @@ public class ManageApplication {
 
     public static void main(String[] args) {
         SpringApplication.run(ManageApplication.class, args);
-        System.out.println("赞象Manage服务启动成功 <dubbo升级3.0, 小游戏玩家导量到H5游戏> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象Manage服务启动成功 <dubbo升级3.0, 小游戏玩家导量到H5游戏1> ( ´・・)ノ(._.`) \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +

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

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