|
|
@@ -4,6 +4,7 @@ import cn.com.taiji.common.manager.ManagerException; |
|
|
|
import cn.com.taiji.core.entity.comm.CommonWxSignConfig; |
|
|
|
import cn.com.taiji.core.entity.dict.basic.CardBlackType; |
|
|
|
import cn.com.taiji.core.entity.dict.basic.SourceType; |
|
|
|
import cn.com.taiji.core.entity.dict.pay.PayChannelType; |
|
|
|
import cn.com.taiji.core.entity.dmq.FundsDetail; |
|
|
|
import cn.com.taiji.core.entity.dmq.FundsDetailFailed; |
|
|
|
import cn.com.taiji.core.model.comm.protocol.bls.CardInRequest; |
|
|
@@ -75,7 +76,7 @@ public class WxNotifyCallBackManagerImpl extends AbstractCommManager implements |
|
|
|
FundsDetail detail = fundsDetailRepo.findByTradeNo(outTradeNo); |
|
|
|
if (detail == null) return FAIL_XML; |
|
|
|
// 签名验证. 首先根据车辆ID获取对应商户号信息 |
|
|
|
CommonWxSignConfig signConfig = commonWxSignConfigRepo.findByAgencyId(detail.getAgencyId()); |
|
|
|
CommonWxSignConfig signConfig = commonWxSignConfigRepo.findByParentIdAndPayChannelTypeAndVersion("", PayChannelType.WEIXINPAY,2); |
|
|
|
boolean signatureValid = WxPayUtil.isSignatureValid(resultMap, signConfig.getSignKey()); |
|
|
|
if (!signatureValid) { |
|
|
|
logger.error("微信支付结果通知签名验证失败,商户订单号:" + outTradeNo); |