!29 微信转账bug修复

Merge pull request !29 from tostyle/master
This commit is contained in:
terrfly 2024-05-08 02:04:30 +00:00 committed by Gitee
commit d69fbb7654
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 3 deletions

View File

@ -198,8 +198,12 @@ public class WxpayTransferService implements ITransferService {
} catch (WxPayException e) {
// 如果查询单号对应的数据不存在那么数据不存在的原因可能是1付款还在处理中2付款处理失败导致付款订单没有落地务必再次查询确认此次付款的结果
if("NOT_FOUND".equalsIgnoreCase(e.getErrCode())){
// NOT_FOUND:那么数据不存在的原因可能是1付款还在处理中2付款处理失败导致付款订单没有落地务必再次查询确认此次付款的结果
// INVALID_REQUEST:请等待批次处理完成后再查询明细单据
// SYSTEM_ERROR: 系统错误
// 当出现以上情况时继续查询不能直接返回错误信息
if("NOT_FOUND".equalsIgnoreCase(e.getErrCode()) || "INVALID_REQUEST".equalsIgnoreCase(e.getErrCode()) || "SYSTEM_ERROR".equalsIgnoreCase(e.getErrCode())){
return ChannelRetMsg.waiting();
}

View File

@ -78,7 +78,7 @@ public class TransferOrderReissueService {
}else if(channelRetMsg.getChannelState() == ChannelRetMsg.ChannelState.CONFIRM_FAIL){
// 转账失败
transferOrderService.updateIng2Fail(transferId, channelRetMsg.getChannelOrderId(), channelRetMsg.getChannelUserId(), channelRetMsg.getChannelErrCode());
transferOrderService.updateIng2Fail(transferId, channelRetMsg.getChannelOrderId(), channelRetMsg.getChannelErrCode(),channelRetMsg.getChannelErrMsg());
payMchNotifyService.transferOrderNotify(transferOrderService.getById(transferId));
}