From 355710b0c42dc2de1c71bb43e310926e7115b402 Mon Sep 17 00:00:00 2001 From: eric <465889110@qq.com> Date: Sun, 28 Sep 2025 20:11:07 +0800 Subject: [PATCH] rentCategory --- .../java/com/sczx/pay/service/impl/AlipayServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sczx/pay/service/impl/AlipayServiceImpl.java b/src/main/java/com/sczx/pay/service/impl/AlipayServiceImpl.java index 9d7ca11..1cfff07 100644 --- a/src/main/java/com/sczx/pay/service/impl/AlipayServiceImpl.java +++ b/src/main/java/com/sczx/pay/service/impl/AlipayServiceImpl.java @@ -55,6 +55,9 @@ public class AlipayServiceImpl implements AlipayService { @Value("${alipay.serviceid}") private String serviceId ; + @Value("${alipay.rent.rentCategory}") + private String rentCategory; + @Autowired private PaymentRecordMapper paymentRecordMapper; @@ -343,7 +346,7 @@ public class AlipayServiceImpl implements AlipayService { model.setProductCode("PRE_AUTH_ONLINE"); // 设置业务扩展参数 - model.setExtraParam("{\"category\": \"CHARGE_PILE_CAR\",\"serviceId\": \""+serviceId+"\"}"); + model.setExtraParam("{\"category\": \""+rentCategory+"\",\"serviceId\": \""+serviceId+"\"}"); // 设置免押受理台模式 model.setDepositProductMode("DEPOSIT_ONLY");