mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-29 01:18:36 +08:00
🎨 支持解析error_code错误码
Signed-off-by: sunlong <2013855675@qq.com>
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user