transferGold 改为接收人ID

This commit is contained in:
tianfeng 2025-11-03 12:19:32 +08:00
parent 50631033ae
commit 25ac2a3ae3

View File

@ -172,11 +172,12 @@ public class UserBankTransferGoldCmdExe {
* @return 1美元可获得的金币数量. * @return 1美元可获得的金币数量.
*/ */
private Double getExchangeGoldRatio(UserBankWithdrawTransferCmd cmd) { private Double getExchangeGoldRatio(UserBankWithdrawTransferCmd cmd) {
Long acceptUserId = cmd.getAcceptUserId();
boolean freight = freightBalanceService.existsBalance(cmd.getReqUserId()); boolean freight = freightBalanceService.existsBalance(acceptUserId);
List<SysExchangeGoldTipDTO> exchangeGolds = ResponseAssert.requiredSuccess( List<SysExchangeGoldTipDTO> exchangeGolds = ResponseAssert.requiredSuccess(
userRegionClient.listRegionExchangeGoldTip(cmd.getReqUserId(), freight)); userRegionClient.listRegionExchangeGoldTip(acceptUserId, freight));
ResponseAssert.notEmpty(CommonErrorCode.CONFIGURATION_ERROR, exchangeGolds); ResponseAssert.notEmpty(CommonErrorCode.CONFIGURATION_ERROR, exchangeGolds);
exchangeGolds = exchangeGolds.stream().filter(gold -> exchangeGolds = exchangeGolds.stream().filter(gold ->