🎨 class BaseWxPayResult add a field named signType

* feature (common): the callback xml from wechat maybe has sign_type

* feature (common): the callback xml from wechat maybe has sign_type

Co-authored-by: chensheng <chensheng@jiayouxueba.cn>
This commit is contained in:
Sheng Chen 2021-07-29 22:24:54 +08:00 committed by GitHub
parent 6d2c0a3709
commit 10fd006f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,11 @@ public abstract class BaseWxPayResult {
*/
@XStreamAlias("sign")
private String sign;
/**
* 签名类型.
*/
@XStreamAlias("sign_type")
private String signType;
//以下为辅助属性
/**
@ -180,6 +185,7 @@ public abstract class BaseWxPayResult {
subMchId = readXmlString(d, "sub_mch_id");
nonceStr = readXmlString(d, "nonce_str");
sign = readXmlString(d, "sign");
signType = readXmlString(d, "sign_type");
}
protected static Integer readXmlInteger(Node d, String tagName) {