mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-19 07:31:36 +08:00
https://github.com/egzosn/pay-java-parent/issues/66 支付宝公钥证书 verify 报错需要忽略alipay_cert_sn
This commit is contained in:
@@ -6,6 +6,7 @@ import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.TreeMap;
|
||||
|
||||
import static com.egzosn.pay.ali.bean.AliPayConst.ALIPAY_CERT_SN_FIELD;
|
||||
import static com.egzosn.pay.ali.bean.AliPayConst.APP_AUTH_TOKEN;
|
||||
import static com.egzosn.pay.ali.bean.AliPayConst.BIZ_CONTENT;
|
||||
import static com.egzosn.pay.ali.bean.AliPayConst.CODE;
|
||||
@@ -130,7 +131,7 @@ public class AliPayService extends BasePayService<AliPayConfigStorage> {
|
||||
|
||||
if (params instanceof JSONObject) {
|
||||
for (Map.Entry<String, Object> entry : params.entrySet()) {
|
||||
if (SIGN.equals(entry.getKey())) {
|
||||
if (SIGN.equals(entry.getKey()) || ALIPAY_CERT_SN_FIELD.equals(entry.getKey())) {
|
||||
continue;
|
||||
}
|
||||
TreeMap<String, Object> response = new TreeMap((Map<String, Object>) entry.getValue());
|
||||
@@ -164,7 +165,7 @@ public class AliPayService extends BasePayService<AliPayConfigStorage> {
|
||||
* @return 支付宝公钥证书序列号
|
||||
*/
|
||||
public String getAliPayCertSN(java.util.Map<String, Object> respMap) {
|
||||
return (String) respMap.get(AliPayConst.ALIPAY_CERT_SN_FIELD);
|
||||
return (String) respMap.get(ALIPAY_CERT_SN_FIELD);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user