Skip to content

Commit b225afb

Browse files
🎨 binarywang#3532 【微信支付】修复支付通知回调解析方法报错的问题
1 parent 5604a16 commit b225afb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,13 @@ public WxPayOrderNotifyResult parseOrderNotifyResult(String xmlData, String sign
323323
log.debug("微信支付异步通知请求参数:{}", xmlData);
324324
WxPayOrderNotifyResult result = WxPayOrderNotifyResult.fromXML(xmlData);
325325
if (signType == null) {
326-
String configKey = this.getConfigKey(result.getMchId(), result.getAppid());
326+
this.switchover(result.getMchId(), result.getAppid());
327327
if (result.getSignType() != null) {
328328
// 如果解析的通知对象中signType有值,则使用它进行验签
329329
signType = result.getSignType();
330-
} else if (configMap.get(configKey).getSignType() != null) {
330+
} else if (this.getConfig().getSignType() != null) {
331331
// 如果配置中signType有值,则使用它进行验签
332-
signType = configMap.get(configKey).getSignType();
333-
this.switchover(result.getMchId(), result.getAppid());
332+
signType = this.getConfig().getSignType();
334333
}
335334
}
336335

0 commit comments

Comments
 (0)