Commit 96eaa92e authored by terrfly's avatar terrfly
Browse files

微信退款异常需在订单记录错误信息值;

parent 4e0cbb30
...@@ -83,7 +83,8 @@ public class WxpayRefundService extends AbstractRefundService { ...@@ -83,7 +83,8 @@ public class WxpayRefundService extends AbstractRefundService {
channelRetMsg.setChannelOrderId(result.getRefundId()); channelRetMsg.setChannelOrderId(result.getRefundId());
}else{ }else{
channelRetMsg.setChannelState(ChannelRetMsg.ChannelState.CONFIRM_FAIL); channelRetMsg.setChannelState(ChannelRetMsg.ChannelState.CONFIRM_FAIL);
channelRetMsg.setChannelErrMsg(result.getReturnMsg()); channelRetMsg.setChannelErrCode(result.getErrCode());
channelRetMsg.setChannelErrMsg(WxpayKit.appendErrMsg(result.getReturnMsg(), result.getErrCodeDes()));
} }
}else if (CS.PAY_IF_VERSION.WX_V3.equals(mchAppConfigContext.getWxServiceWrapper().getApiVersion())) { //V3 }else if (CS.PAY_IF_VERSION.WX_V3.equals(mchAppConfigContext.getWxServiceWrapper().getApiVersion())) { //V3
// 微信统一下单请求对象 // 微信统一下单请求对象
...@@ -122,7 +123,10 @@ public class WxpayRefundService extends AbstractRefundService { ...@@ -122,7 +123,10 @@ public class WxpayRefundService extends AbstractRefundService {
} }
return channelRetMsg; return channelRetMsg;
} catch (WxPayException e) { } catch (WxPayException e) {
return ChannelRetMsg.sysError(e.getReturnMsg()); ChannelRetMsg channelRetMsg = ChannelRetMsg.confirmFail();
WxpayKit.commonSetErrInfo(channelRetMsg, e);
return channelRetMsg;
} catch (Exception e) { } catch (Exception e) {
return ChannelRetMsg.sysError(e.getMessage()); return ChannelRetMsg.sysError(e.getMessage());
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment