|
@@ -122,7 +122,7 @@ public class PayMentServiceImpl implements PayMentService {
|
|
|
*/
|
|
|
@Override
|
|
|
public R prepayNotice(PrepayNoticeVo prepayNoticeVo, String dskey) {
|
|
|
- log.info("获取到的回调信息接口:{}", prepayNoticeVo);
|
|
|
+ log.info("获取到的支付成功的回调:{},dskey:{}", prepayNoticeVo, dskey);
|
|
|
List<String> dsKeys;
|
|
|
if (StringUtils.isBlank(dskey)) {
|
|
|
List<TenantDo> tenantList = (List<TenantDo>) redisService.getRedisCatchObj("allTenants");
|
|
@@ -149,11 +149,12 @@ public class PayMentServiceImpl implements PayMentService {
|
|
|
cipher.updateAAD(associatedData);
|
|
|
analysisStr = new String(cipher.doFinal(Base64.getDecoder().decode(ciphertext)), "utf-8");
|
|
|
deKey = swEnterpriseConfigInfoDo.getTenantid();
|
|
|
+ log.debug("解析成功");
|
|
|
if (StringUtils.isNotBlank(analysisStr)) {
|
|
|
break;
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- log.error("当前租户:{}解密异常",swEnterpriseConfigInfoDo.getTenantid());
|
|
|
+ log.error("当前租户:{}解密异常", swEnterpriseConfigInfoDo.getTenantid());
|
|
|
}
|
|
|
}
|
|
|
if (StringUtils.isBlank(analysisStr)) {
|
|
@@ -164,6 +165,7 @@ public class PayMentServiceImpl implements PayMentService {
|
|
|
WeChatPayTransactionVo transaction = null;
|
|
|
try {
|
|
|
transaction = mapper.readValue(analysisStr, WeChatPayTransactionVo.class);
|
|
|
+ log.debug("实体转换成功");
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
log.error("JSON转换异常");
|
|
@@ -174,8 +176,10 @@ public class PayMentServiceImpl implements PayMentService {
|
|
|
// 商户号
|
|
|
String outTradeNo = transaction.getOutTradeNo();
|
|
|
Date successTime = transaction.getSuccessTime();
|
|
|
+ log.debug("支付回调:{}",transaction);
|
|
|
+ log.error("开始更新缴费记录信息");
|
|
|
// 更新缴费记录相关信息
|
|
|
- swBillingRecordService.getBaseMapper().updateWeChatPayInfo(deKey, outTradeNo, transactionId, analysisStr,successTime);
|
|
|
+ swBillingRecordService.getBaseMapper().updateWeChatPayInfo(deKey, outTradeNo, transactionId, analysisStr, successTime);
|
|
|
return R.ok();
|
|
|
}
|
|
|
}
|