| | |
| | | @Component |
| | | public class WxV3PayConfig { |
| | | // 服务商AppId |
| | | |
| | | private String appIdValue = "wx41d32f362ba0f911"; |
| | | public static String APP_ID= "wx41d32f362ba0f911"; |
| | | |
| | |
| | | private String mchIdValue= "1681873607"; |
| | | public static String Mch_ID= "1681873607"; |
| | | |
| | | // 平台收款商户号 todo 待申请 |
| | | // 平台收款商户号 弃用 |
| | | public static String smidVx= "2088330203191220"; |
| | | private String smidVxValue= "2088330203191220"; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | // 注意: WXPaySignatureCertificateUtil 中的 getPrivateKey() 方法现在应该使用 WxV3PayConfig.privateKeyPath |
| | | // 你需要稍微修改 WXPaySignatureCertificateUtil.getPrivateKey() 方法: |
| | | /* |
| | | public static PrivateKey getPrivateKey() { |
| | | if (cachedPrivateKey != null) { |
| | | return cachedPrivateKey; |
| | | } |
| | | try { |
| | | String filePath = WxV3PayConfig.privateKeyPath; // 使用配置类中的路径 |
| | | // ... rest of the method ... |
| | | } // ... catch blocks ... |
| | | } |
| | | */ |
| | | |
| | | } |