🎨 支持解析error_code错误码

Signed-off-by: sunlong <2013855675@qq.com>
This commit is contained in:
sunl888
2021-05-14 10:52:43 +08:00
committed by GitHub
parent 65c1cdc07c
commit dae6b15fa4

View File

@ -64,6 +64,11 @@ public abstract class BaseWxPayResult {
*/
@XStreamAlias("err_code")
private String errCode;
/**
* 错误代码.
*/
@XStreamAlias("error_code")
private String errorCode;
/**
* 错误代码描述.
*/
@ -167,6 +172,7 @@ public abstract class BaseWxPayResult {
returnMsg = readXmlString(d, "return_msg");
resultCode = readXmlString(d, "result_code");
errCode = readXmlString(d, "err_code");
errorCode = readXmlString(d, "error_code");
errCodeDes = readXmlString(d, "err_code_des");
appid = readXmlString(d, "appid");
mchId = readXmlString(d, "mch_id");
@ -356,6 +362,9 @@ public abstract class BaseWxPayResult {
if (getErrCode() != null) {
errorMsg.append(",错误代码:").append(getErrCode());
}
if (getErrorCode() != null) {
errorMsg.append(",错误代码:").append(getErrorCode());
}
if (getErrCodeDes() != null) {
errorMsg.append(",错误详情:").append(getErrCodeDes());
}