支付宝登录

This commit is contained in:
Guoqs
2024-06-11 16:30:42 +08:00
parent 0aef83548c
commit d30be0215e
13 changed files with 202 additions and 127 deletions

View File

@@ -28,6 +28,9 @@ public class AliPayConfig implements CommandLineRunner {
@Value("${alipay.notifyUrl}")
private String notifyUrl;
@Value("${alipay.encryptKey}")
private String encryptKey;
@Override
public void run(String... args) throws Exception {
log.info(">>>>>>>>>>>>>>>服务启动执行,执行加载数据等操作 AliPayConfig order 2 <<<<<<<<<<<<<");
@@ -50,8 +53,9 @@ public class AliPayConfig implements CommandLineRunner {
config.alipayPublicKey = alipayPublicKey;
// 可设置异步通知接收服务地址(可选)
// config.notifyUrl = "<-- 请填写您的支付类接口异步通知接收服务地址例如https://www.test.com/callback -->";
// 可设置AES密钥调用AES加解密相关接口时需要可选
// config.encryptKey = "<-- 请填写您的AES密钥例如aa4BtZ4tspm2wnXLb1ThQA== -->";
config.encryptKey = encryptKey;
Factory.setOptions(config);
}
}