活动转账金币 比例问题修复

This commit is contained in:
tianfeng 2025-11-05 18:28:40 +08:00
parent c74a4b11d1
commit f52a547b18

View File

@ -175,8 +175,11 @@ public class LotteryTransferExe {
* @return 1美元可获得的金币数量.
*/
private Double getExchangeGoldRatio(LotteryTransferCmd cmd) {
Long acceptUserId = cmd.getAcceptUserId();
boolean freight = freightBalanceClient.existsBalance(acceptUserId).getBody();
List<SysExchangeGoldTipDTO> exchangeGolds = ResponseAssert.requiredSuccess(
userRegionClient.listRegionExchangeGoldTip(cmd.requiredReqUserId(), false));
userRegionClient.listRegionExchangeGoldTip(cmd.requiredReqUserId(), freight));
ResponseAssert.notEmpty(CommonErrorCode.CONFIGURATION_ERROR, exchangeGolds);
exchangeGolds = exchangeGolds.stream().filter(gold ->