Browse Source

:fix:增加订单日志

zhangxianyu 11 months ago
parent
commit
f3fae36be8

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

@@ -47,10 +47,12 @@ public class AdsOrderDetailServiceImpl implements IAdsOrderDetailService {
         List<Long> userIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(Long.parseLong(dto.getPitcherId()));
         List<Long> paramGameIds = dto.getGameId();
         log.error("传进来的游戏id:{}", JsonUtil.toStringWithClass(paramGameIds));
-        log.error("拥有权限的游戏id:{}",JsonUtil.toStringWithClass(poerInfo.second));
+        log.error("拥有权限的游戏id:{}", JsonUtil.toStringWithClass(poerInfo.second));
         if (CollectionUtils.isNotEmpty(paramGameIds)) {
             //将paramGameIds中不在authGameIds中的游戏id过滤掉
-            paramGameIds.retainAll(poerInfo.second);
+            if (poerInfo.second != null) {
+                paramGameIds.retainAll(poerInfo.second);
+            }
         } else {
             paramGameIds = poerInfo.second;
         }