|
@@ -62,14 +62,12 @@ public class DataPowerComponent {
|
|
}
|
|
}
|
|
GameAuthUserVO userGameInfo = gameAuthRpc.getGameAuthByUserIds().getData();
|
|
GameAuthUserVO userGameInfo = gameAuthRpc.getGameAuthByUserIds().getData();
|
|
List<Long> gameIdList = userGameInfo.getGameIdList();
|
|
List<Long> gameIdList = userGameInfo.getGameIdList();
|
|
- for (Long id : gameIdList) {
|
|
|
|
- log.error("RPC查询出的游戏{}",id);
|
|
|
|
- }
|
|
|
|
|
|
+ String str = gameIdList.stream().map(String::valueOf).collect(Collectors.joining(","));
|
|
|
|
+ log.error("RPC查询出的游戏{}", str);
|
|
//原有的游戏ID添加通包游戏的权限
|
|
//原有的游戏ID添加通包游戏的权限
|
|
List<Long> gameIds = getFullGameIdList(userGameInfo.getGameIdList());
|
|
List<Long> gameIds = getFullGameIdList(userGameInfo.getGameIdList());
|
|
- for (Long id : gameIds) {
|
|
|
|
- log.error("经过方法查询出的游戏{}",id);
|
|
|
|
- }
|
|
|
|
|
|
+ String strIds = gameIds.stream().map(String::valueOf).collect(Collectors.joining(","));
|
|
|
|
+ log.error("RPC查询出的游戏{}", strIds);
|
|
if (CollectionUtils.isEmpty(gameIds)) {
|
|
if (CollectionUtils.isEmpty(gameIds)) {
|
|
throw new BaseException("没有游戏查看权限,请联系管理员指派游戏权限");
|
|
throw new BaseException("没有游戏查看权限,请联系管理员指派游戏权限");
|
|
}
|
|
}
|
|
@@ -146,6 +144,7 @@ public class DataPowerComponent {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取全量的游戏ID(补全虚拟的IOS包游戏ID)
|
|
* 获取全量的游戏ID(补全虚拟的IOS包游戏ID)
|
|
|
|
+ *
|
|
* @param gameIds 用户拥有的游戏权限的游戏ID
|
|
* @param gameIds 用户拥有的游戏权限的游戏ID
|
|
* @return 游戏ID
|
|
* @return 游戏ID
|
|
*/
|
|
*/
|