Skip to content

Commit

Permalink
🐛 #1824 微信支付修复分账回退接口结果错误码解析错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed Oct 31, 2020
1 parent 73f30b1 commit 7fdfe2c
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
@XStreamAlias("xml")
public class ProfitSharingReturnResult extends BaseWxPayResult {
private static final long serialVersionUID = 718554909816994568L;

/**
* 如果返回状态码为FAIL,则本字段存在,且为失败的错误码.
*/
@XStreamAlias("error_code")
private String errorCode;

/**
* 如果返回状态码为FAIL,则本字段存在,且为失败的错误信息.
*/
@XStreamAlias("error_msg")
private String errorMsg;

/**
* 微信分账单号
*/
Expand Down Expand Up @@ -87,4 +100,14 @@ protected void loadXml(Document d) {
failReason = readXmlString(d, "fail_reason");
finishTime = readXmlString(d, "finish_time");
}

@Override
public String getErrCode() {
return this.errorCode;
}

@Override
public String getErrCodeDes() {
return this.errorMsg;
}
}

0 comments on commit 7fdfe2c

Please sign in to comment.