|
@@ -50,19 +50,19 @@ public class DataPowerComponent {
|
|
|
return Tuple2.with(null, null);
|
|
|
}
|
|
|
Collection<Long> subUserIds = sysGameUserGroupRpc.memberUserIds(SecurityUtil.getCompanyId(), SecurityUtil.getUserId()).getData();
|
|
|
- if(!"ZX_ONE".equals(sdk)) {
|
|
|
+ if (!"ZX_ONE".equals(sdk)) {
|
|
|
return Tuple2.with(new ArrayList<>(subUserIds), null);
|
|
|
}
|
|
|
GameAuthUserVO userGameInfo = gameAuthRpc.getGameAuthByUserIds().getData();
|
|
|
- if(CollectionUtils.isEmpty(userGameInfo.getGameIdList())) {
|
|
|
+ if (CollectionUtils.isEmpty(userGameInfo.getGameIdList())) {
|
|
|
throw new BaseException("没有游戏查看权限,请联系管理员指派游戏权限");
|
|
|
}
|
|
|
GameAuthEnum gameAuth = userGameInfo.getGameAuthEnum();
|
|
|
- if(CollectionUtils.isEmpty(subUserIds)) {
|
|
|
+ if (CollectionUtils.isEmpty(subUserIds)) {
|
|
|
throw new BaseException("服务异常,获取用户列表失败!!");
|
|
|
}
|
|
|
if (subUserIds.size() == 1) {
|
|
|
- if(gameAuth == GameAuthEnum.OPERATE) {
|
|
|
+ if (gameAuth == GameAuthEnum.OPERATE || gameAuth == GameAuthEnum.CUSTOMER || gameAuth == GameAuthEnum.GS) {
|
|
|
// 运营
|
|
|
return Tuple2.with(null, userGameInfo.getGameIdList());
|
|
|
} else {
|
|
@@ -71,7 +71,7 @@ public class DataPowerComponent {
|
|
|
}
|
|
|
} else {
|
|
|
// 组长
|
|
|
- if(gameAuth == GameAuthEnum.OPERATE) {
|
|
|
+ if (gameAuth == GameAuthEnum.OPERATE || gameAuth == GameAuthEnum.CUSTOMER || gameAuth == GameAuthEnum.GS) {
|
|
|
// 运营组长
|
|
|
return Tuple2.with(null, userGameInfo.getGameIdList());
|
|
|
} else {
|
|
@@ -119,7 +119,7 @@ public class DataPowerComponent {
|
|
|
return null;
|
|
|
}
|
|
|
List<Long> gameIdList = gameAuthRpc.getGameAuthByUserIds().getData().getGameIdList();
|
|
|
- if(CollectionUtils.isEmpty(gameIdList)) {
|
|
|
+ if (CollectionUtils.isEmpty(gameIdList)) {
|
|
|
throw new BaseException("没有游戏查看权限,请联系管理员指派游戏权限");
|
|
|
}
|
|
|
return gameIdList;
|