mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 18:46:10 +08:00 
			
		
		
		
	🎨 #3532 【微信支付】修复支付通知回调解析方法报错的问题
This commit is contained in:
		| @ -323,14 +323,13 @@ public abstract class BaseWxPayServiceImpl implements WxPayService { | |||||||
|       log.debug("微信支付异步通知请求参数:{}", xmlData); |       log.debug("微信支付异步通知请求参数:{}", xmlData); | ||||||
|       WxPayOrderNotifyResult result = WxPayOrderNotifyResult.fromXML(xmlData); |       WxPayOrderNotifyResult result = WxPayOrderNotifyResult.fromXML(xmlData); | ||||||
|       if (signType == null) { |       if (signType == null) { | ||||||
|         String configKey = this.getConfigKey(result.getMchId(), result.getAppid()); |         this.switchover(result.getMchId(), result.getAppid()); | ||||||
|         if (result.getSignType() != null) { |         if (result.getSignType() != null) { | ||||||
|           // 如果解析的通知对象中signType有值,则使用它进行验签 |           // 如果解析的通知对象中signType有值,则使用它进行验签 | ||||||
|           signType = result.getSignType(); |           signType = result.getSignType(); | ||||||
|         } else if (configMap.get(configKey).getSignType() != null) { |         } else if (this.getConfig().getSignType() != null) { | ||||||
|           // 如果配置中signType有值,则使用它进行验签 |           // 如果配置中signType有值,则使用它进行验签 | ||||||
|           signType = configMap.get(configKey).getSignType(); |           signType = this.getConfig().getSignType(); | ||||||
|           this.switchover(result.getMchId(), result.getAppid()); |  | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 yangmengyu2021
					yangmengyu2021