From 52658d5d659ecea01735074c83e03a99c43f52ec Mon Sep 17 00:00:00 2001 From: zhx Date: Wed, 24 Jun 2026 14:28:15 +0800 Subject: [PATCH] fix: allow h5 place order for configured countries --- .../order/app/command/pay/web/PayWebH5PlaceOrderCmdExe.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-order/order-application/src/main/java/com/red/circle/order/app/command/pay/web/PayWebH5PlaceOrderCmdExe.java b/rc-service/rc-service-order/order-application/src/main/java/com/red/circle/order/app/command/pay/web/PayWebH5PlaceOrderCmdExe.java index c899e71d..374c2f80 100644 --- a/rc-service/rc-service-order/order-application/src/main/java/com/red/circle/order/app/command/pay/web/PayWebH5PlaceOrderCmdExe.java +++ b/rc-service/rc-service-order/order-application/src/main/java/com/red/circle/order/app/command/pay/web/PayWebH5PlaceOrderCmdExe.java @@ -109,8 +109,8 @@ public class PayWebH5PlaceOrderCmdExe { PayCountry payCountry = payCountryService.getById(cmd.getPayCountryId()); ResponseAssert.notNull(CommonErrorCode.NOT_FOUND_RECORD_INFO, payCountry); - ResponseAssert.isTrue(ResponseErrorCode.REQUEST_PARAMETER_ERROR, - Boolean.TRUE.equals(payCountry.getShelf())); + // H5 的支付国家和支付方式开放性由 app 本地 JSON 控制;后端只确认国家记录存在并用它计算汇率, + // 避免后台“开通支付国家”开关和 H5 JSON 配置不一致时,options 能展示但下单被误拦截。 ResponseAssert.isTrue(ResponseErrorCode.REQUEST_PARAMETER_ERROR, Objects.isNull(commodity.getPayCountryId()) || Objects.equals(commodity.getPayCountryId(), payCountry.getId()));