Merge remote-tracking branch 'origin/main'

main-p
998998 2025-03-14 14:34:39 +08:00
commit 5319ce901d
1 changed files with 7 additions and 2 deletions

View File

@ -485,7 +485,7 @@ public class GamesPGServiceImpl implements IGamesService {
}
//如果长度一致则清空缓存循环币种
if (cacheSet.size() >= currencys.size()) {
cacheSet=new HashSet<>();
cacheSet = new HashSet<>();
redisCache.deleteObject(CacheConstants.PG_GAMES_BET_CURRENCY);
}
//去掉重复的
@ -499,7 +499,6 @@ public class GamesPGServiceImpl implements IGamesService {
.build());
currencyDTO.setCurrency("CNY");
betRecordByTimeDTO.setAgentId(currencyDTO.getCode());
@ -574,6 +573,12 @@ public class GamesPGServiceImpl implements IGamesService {
@Override
public GetGameDetailResponseDTO getGameDetail(GetGameDetailRequestDTO getGameDetailRequestDTO) {
List<GameBettingDetails> gameBettingDetails = gameBettingDetailsService.selectGameBettingDetailsList(GameBettingDetails.builder().wagersId(getGameDetailRequestDTO.getWagersId()).build());
if (!CollectionUtils.isEmpty(gameBettingDetails)) {
GetGameDetailResponseDTO getGameDetailResponseDTO = new GetGameDetailResponseDTO();
getGameDetailResponseDTO.setUrl(gameBettingDetails.get(0).getBetContent());
return getGameDetailResponseDTO;
}
return null;
}