|
|
|
@ -28,8 +28,8 @@ public class NotifyApplicationService extends BaseApplicationService { |
|
|
|
|
|
|
|
@Value("${weixin.mchid}") |
|
|
|
private String mchId; |
|
|
|
@Value("${weixin.mchkey}") |
|
|
|
private String mchKey; |
|
|
|
@Value("${weixin.apiV3Key}") |
|
|
|
private String v3Key; |
|
|
|
private static final String WX_SUCCESS_RTN = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>"; |
|
|
|
private static final String WX_FAIL_RTN = "<xml><return_code><![CDATA[FAIL]]></return_code><return_msg><![CDATA[报文为空]]></return_msg></xml>"; |
|
|
|
public static final String RETURN_VALUE_SUCCESS = "SUCCESS"; |
|
|
|
@ -64,7 +64,7 @@ public class NotifyApplicationService extends BaseApplicationService { |
|
|
|
WxPayOrderNotifyResult result = null; |
|
|
|
WxPayConfig wxPayConfig = new WxPayConfig(); |
|
|
|
wxPayConfig.setMchId(mchId); |
|
|
|
wxPayConfig.setMchKey(mchKey); |
|
|
|
wxPayConfig.setMchKey(v3Key); |
|
|
|
wxPayService.setConfig(wxPayConfig); |
|
|
|
// 解析并校验参数 |
|
|
|
try { |
|
|
|
|