refactor(game): 优化游戏详情获取逻辑
- 添加对游戏 betting 明细的查询,若存在则返回明细中的 betContent 作为游戏详情 URL - 优化缓main-p
parent
6d0ca190dc
commit
707d5cdee9
|
@ -118,8 +118,8 @@ public class ApiGameController extends BaseController {
|
||||||
List<GameResponse> gameResponses = gameService.selectGameResponseList();
|
List<GameResponse> gameResponses = gameService.selectGameResponseList();
|
||||||
for (GameResponse gameRespons : gameResponses) {
|
for (GameResponse gameRespons : gameResponses) {
|
||||||
|
|
||||||
List<GameSecretKeyCurrency> gameSecretKeyCurrencies = gameSecretKeyCurrencyService.selectGameSecretKeyCurrencyList(GameSecretKeyCurrencyDTO.builder().platformCode(gameRespons.getPlatformCode()).build());
|
List<GameSecretKeyCurrencyDTO> gameSecretKeyCurrencies = gameSecretKeyCurrencyService.findByGameSecretKeyCurrencyDTOList(GameSecretKeyCurrencyDTO.builder().platformCode(gameRespons.getPlatformCode()).build());
|
||||||
List<String> currencyCode = gameSecretKeyCurrencies.stream().map(GameSecretKeyCurrency::getSystemCurrency).collect(Collectors.toList());
|
List<String> currencyCode = gameSecretKeyCurrencies.stream().map(GameSecretKeyCurrencyDTO::getSystemCurrency).collect(Collectors.toList());
|
||||||
gameRespons.setCurrencyCode(currencyCode);
|
gameRespons.setCurrencyCode(currencyCode);
|
||||||
}
|
}
|
||||||
return AjaxResult.success(gameResponses);
|
return AjaxResult.success(gameResponses);
|
||||||
|
|
Loading…
Reference in New Issue