liujie
2026-08-04 e9e42b621afdf6ac94f5327ee843b32b10a401b4
backend/src/main/java/com/tourguide/common/huifu/properties/HuiFuProperties.java
@@ -1,14 +1,12 @@
package com.tourguide.common.huifu.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
 * 斗拱商户配置。
 *
 * 备注:所有敏感值都从环境变量或配置中心注入,禁止在源码中写真实商户号、私钥或公钥。
 */
@Component
@ConfigurationProperties(prefix = "huifu")
public class HuiFuProperties {
    /**
@@ -39,6 +37,8 @@
     * 对外可访问的回调根地址。
     */
    private String callbackPath;
    /** 聚合支付创建接口地址。 */
    private String paymentCreateUrl = "https://api.huifu.com/v4/trade/payment/create";
    public String getProductId() { return productId; }
    public void setProductId(String productId) { this.productId = productId; }
@@ -54,4 +54,6 @@
    public void setUpperHuifuId(String upperHuifuId) { this.upperHuifuId = upperHuifuId; }
    public String getCallbackPath() { return callbackPath; }
    public void setCallbackPath(String callbackPath) { this.callbackPath = callbackPath; }
    public String getPaymentCreateUrl() { return paymentCreateUrl; }
    public void setPaymentCreateUrl(String paymentCreateUrl) { this.paymentCreateUrl = paymentCreateUrl; }
}