| | |
| | | import java.math.BigDecimal; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @RestController |
| | | @RequestMapping("/api/game") |
| | |
| | | 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(); |