nickchange
2023-11-02 6af0c7434178ca41e727c700af8174201a865de9
cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java
@@ -28,6 +28,7 @@
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.stream.Collectors;
@RestController
@RequestMapping("/api/game")
@@ -89,7 +90,10 @@
                tGameConfigs = gameConfigService.listJs(id);
            }
            return ResultUtil.success(tGameConfigs);
            List<TGameConfig> filteredList = tGameConfigs.stream()
                    .filter(gameConfig -> !gameConfig.getImg().isEmpty())
                    .collect(Collectors.toList());
            return ResultUtil.success(filteredList);
        }catch (Exception e){
            e.printStackTrace();
            return ResultUtil.runErr();