| File was renamed from ruoyi-system/src/main/java/com/ruoyi/system/config/IcbcConfig.java |
| | |
| | | * @author: yangchuan |
| | | * @create: 2024-11-18 17:10 |
| | | */ |
| | | //@Component |
| | | @Component |
| | | @Data |
| | | public class IcbcConfig { |
| | | public class ICBCConfig { |
| | | |
| | | /** |
| | | * 聚合支付B2C线上消费下单接口url (无界面) |
| | |
| | | |
| | | private volatile static DefaultIcbcClient instance = null; |
| | | |
| | | public static DefaultIcbcClient getInstance(IcbcConfig icbcConfig) { |
| | | public static DefaultIcbcClient getInstance(ICBCConfig icbcConfig) { |
| | | if (instance == null) { |
| | | synchronized (IcbcConfig.class) { |
| | | synchronized (ICBCConfig.class) { |
| | | if (instance == null) { |
| | | instance = new DefaultIcbcClient(icbcConfig.appId, IcbcConstants.SIGN_TYPE_RSA2, icbcConfig.myPrivateKey, icbcConfig.apiGwPublicKey); |
| | | } |