Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,13 @@ public WxPayOrderNotifyResult parseOrderNotifyResult(String xmlData, String sign
log.debug("微信支付异步通知请求参数:{}", xmlData);
WxPayOrderNotifyResult result = WxPayOrderNotifyResult.fromXML(xmlData);
if (signType == null) {
String configKey = this.getConfigKey(result.getMchId(), result.getAppid());
if (result.getSignType() != null) {
// 如果解析的通知对象中signType有值,则使用它进行验签
signType = result.getSignType();
} else if (configMap.get(result.getMchId()).getSignType() != null) {
} else if (configMap.get(configKey).getSignType() != null) {
// 如果配置中signType有值,则使用它进行验签
signType = configMap.get(result.getMchId()).getSignType();
signType = configMap.get(configKey).getSignType();
this.switchover(result.getMchId(), result.getAppid());
}
}
Expand Down