|
|
@@ -1,6 +1,6 @@
|
|
|
package io.renren.modules.qmgj.wxpayutil;
|
|
|
|
|
|
-import com.wechat.pay.java.core.RSAAutoCertificateConfig;
|
|
|
+import com.wechat.pay.java.core.RSAPublicKeyConfig;
|
|
|
import com.wechat.pay.java.core.notification.NotificationParser;
|
|
|
import com.wechat.pay.java.core.notification.RequestParam;
|
|
|
import com.wechat.pay.java.service.transferbatch.TransferBatchService;
|
|
|
@@ -24,8 +24,8 @@ import java.io.InputStreamReader;
|
|
|
@Component
|
|
|
public class NewWxPayUtil {
|
|
|
|
|
|
- @Resource(name = "rsaAutoCertificateConfig")
|
|
|
- private RSAAutoCertificateConfig rsaAutoCertificateConfig;
|
|
|
+ @Resource(name = "rsaPublicKeyConfig")
|
|
|
+ private RSAPublicKeyConfig rsaPublicKeyConfig;
|
|
|
@Resource
|
|
|
private NewWxPayProperties newWxPayProperties;
|
|
|
|
|
|
@@ -63,7 +63,7 @@ public class NewWxPayUtil {
|
|
|
.body(s1)
|
|
|
.build();
|
|
|
|
|
|
- NotificationParser parser = new NotificationParser(rsaAutoCertificateConfig);
|
|
|
+ NotificationParser parser = new NotificationParser(rsaPublicKeyConfig);
|
|
|
return parser.parse(requestParam, TransferNotification.class);
|
|
|
}
|
|
|
|
|
|
@@ -84,7 +84,7 @@ public class NewWxPayUtil {
|
|
|
if (StringUtils.isBlank(request.getNotifyUrl())) {
|
|
|
request.setNotifyUrl(PropertiesParameter.PROP.getProperty("pay.notify.transfer.url"));
|
|
|
}
|
|
|
- TransferBatchService service = new TransferBatchService.Builder().config(rsaAutoCertificateConfig).build();
|
|
|
+ TransferBatchService service = new TransferBatchService.Builder().config(rsaPublicKeyConfig).build();
|
|
|
try {
|
|
|
return service.initiateBatchTransfer(request);
|
|
|
} catch (Exception e) {
|