Quellcode durchsuchen

:fix:修改玩家列表bug

zhangxianyu vor 11 Monaten
Ursprung
Commit
e236de4891

+ 7 - 0
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/component/DataPowerComponent.java

@@ -61,8 +61,15 @@ public class DataPowerComponent {
             return Tuple2.with(new ArrayList<>(subUserIds), null);
         }
         GameAuthUserVO userGameInfo = gameAuthRpc.getGameAuthByUserIds().getData();
+        List<Long> gameIdList = userGameInfo.getGameIdList();
+        for (Long id : gameIdList) {
+            log.error("RPC查询出的游戏{}",id);
+        }
         //原有的游戏ID添加通包游戏的权限
         List<Long> gameIds = getFullGameIdList(userGameInfo.getGameIdList());
+        for (Long id : gameIds) {
+            log.error("经过方法查询出的游戏{}",id);
+        }
         if (CollectionUtils.isEmpty(gameIds)) {
             throw new BaseException("没有游戏查看权限,请联系管理员指派游戏权限");
         }

+ 2 - 5
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/service/impl/AdsOrderDetailServiceImpl.java

@@ -45,11 +45,8 @@ public class AdsOrderDetailServiceImpl implements IAdsOrderDetailService {
         Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo(dto.getSourceSystem());
         List<Long> userIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(Long.parseLong(dto.getPitcherId()));
         List<Long> gameIds = CollectionUtils.isEmpty(dto.getGameId()) ? poerInfo.second : dto.getGameId();
-        for (Long userId : userIds) {
-            log.error("拥有权限的userId:{}", userId);
-        }
-        for (Long gameId : gameIds) {
-            log.error("拥有权限gameId:{}", gameId);
+        for (Long id : gameIds) {
+            log.error("最终查询出的游戏{}",id);
         }
         Criteria cri = Cnd.cri();
         if (StringUtils.isNotBlank(dto.getSourceSystem())) {