mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
【功能优化】增加支付宝接口内容加密支持,注意需要和管理页面同时修改 #IAFYDQ
This commit is contained in:
parent
c2a50c4d9c
commit
86a4748140
@ -26,6 +26,11 @@ public class AlipayPayClientConfig implements PayClientConfig {
|
|||||||
*/
|
*/
|
||||||
public static final Integer MODE_CERTIFICATE = 2;
|
public static final Integer MODE_CERTIFICATE = 2;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 接口内容加密方式 - AES 加密
|
||||||
|
*/
|
||||||
|
public static final String ENC_TYPE_AES = "AES";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 签名算法类型 - RSA
|
* 签名算法类型 - RSA
|
||||||
*/
|
*/
|
||||||
@ -92,6 +97,19 @@ public class AlipayPayClientConfig implements PayClientConfig {
|
|||||||
@NotBlank(message = "指定根证书内容字符串不能为空", groups = {ModeCertificate.class})
|
@NotBlank(message = "指定根证书内容字符串不能为空", groups = {ModeCertificate.class})
|
||||||
private String rootCertContent;
|
private String rootCertContent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 接口内容加密方式,如果为空,将使用无加密方式
|
||||||
|
* 如果要加密,目前支付宝只有 AES 一种加密方式
|
||||||
|
* <a href="https://opendocs.alipay.com/common/02mse3">支付宝开放平台</a>
|
||||||
|
* @see AlipayPayClientConfig#ENC_TYPE_AES
|
||||||
|
*/
|
||||||
|
private String encryptType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 接口内容加密的私钥
|
||||||
|
*/
|
||||||
|
private String encryptKey;
|
||||||
|
|
||||||
public interface ModePublicKey {
|
public interface ModePublicKey {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user