提交 9808a111 编写于 作者: J Javen205

优化微信支付 springboot starter 示例

上级 d05ede6c
......@@ -8,10 +8,10 @@
<version>2.7.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<groupId>com.github.javen205</groupId>
<artifactId>IJPay-WxPay-Starter-Demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>IJPay-WxPay-Starter-Demo</name>
<name>${project.artifactId}</name>
<description>IJPay-WxPay-Starter-Demo</description>
<properties>
<java.version>1.8</java.version>
......
......@@ -52,22 +52,11 @@ public class WxPayController extends AbstractWxPayController {
@GetMapping("/getConfig")
public WxPayApiConfig getWxPayApiConfig() {
log.info("微信支付配置\n {}", WxPayApiConfigKit.getApiConfig(wxPayApiConfig.getAppId()));
log.info("yml支付配置\n {}", wxPayProperties);
log.info("当前微信支付配置信息\n {}", WxPayApiConfigKit.getApiConfig(wxPayApiConfig.getAppId()));
log.info("配置文件中微信支付配置信息\n {}", wxPayProperties);
return wxPayApiConfig;
}
/**
* 获取并保存证书,默认取有效期内第一个
*
* @return 自动更新证书
* @throws Exception 异常信息
*/
@GetMapping("/autoUpdate")
public boolean autoUpdate() throws Exception {
return autoUpdateOrGetCertificate(null);
}
/**
* 获取平台证书序列号
*
......
wx:
pay:
configs:
- #应用编号
appId: appId
# 商户号
mchId: mchId
# 服务商应用编号
slAppId: slAppId
# 服务商商户号
slMchId: slMchId
# 商户平台「API安全」中的 API 密钥
apiKey: apiKey
# 商户平台「API安全」中的 APIv3 密钥
apiKey3: apiKey3
# API 证书中的 p12
certPath: certPath
# API 证书中的 key.pem
keyPath: keyPath
# API 证书中的 cert.pem
platformCertPath: platformCertPath
# p12 退款证书
certP12Path: certP12Path
# 其他附加参数
exParams: exParams
# 应用域名,回调中会使用此参数
domain: domain
- #应用编号
appId: appId2
# 商户号
mchId: mchId2
# 服务商应用编号
slAppId: slAppId2
# 服务商商户号
slMchId: slMchId2
# 商户平台「API安全」中的 API 密钥
apiKey: apiKey2
# 商户平台「API安全」中的 APIv3 密钥
apiKey3: apiKey3
# API 证书中的 p12
certPath: certPath2
# API 证书中的 key.pem
keyPath: keyPath2
# API 证书中的 cert.pem
platformCertPath: platformCertPath2
# p12 退款证书
certP12Path: certP12Path2
# 其他附加参数
exParams: exParams2
# 应用域名,回调中会使用此参数
domain: domain2
pay:
configs:
- # 应用编号
appId: appId
# 商户号
mchId: mchId
# 服务商应用编号
slAppId: slAppId
# 服务商商户号
slMchId: slMchId
# 商户平台「API安全」中的 API 密钥
apiKey: apiKey
# 商户平台「API安全」中的 APIv3 密钥
apiKey3: apiKey3
# API 证书中的 p12
certPath: certPath
# API 证书中的 key.pem
keyPath: keyPath
# API 证书中的 cert.pem
platformCertPath: platformCertPath
# p12 退款证书
certP12Path: certP12Path
# 其他附加参数
exParams: exParams
# 应用域名,回调中会使用此参数
domain: domain
- #应用编号
appId: appId2
# 商户号
mchId: mchId2
# 服务商应用编号
slAppId: slAppId2
# 服务商商户号
slMchId: slMchId2
# 商户平台「API安全」中的 API 密钥
apiKey: apiKey2
# 商户平台「API安全」中的 APIv3 密钥
apiKey3: apiKey3
# API 证书中的 p12
certPath: certPath2
# API 证书中的 key.pem
keyPath: keyPath2
# API 证书中的 cert.pem
platformCertPath: platformCertPath2
# p12 退款证书
certP12Path: certP12Path2
# 其他附加参数
exParams: exParams2
# 应用域名,回调中会使用此参数
domain: domain2
server:
port: 8888
port: 8888
,--. ,--.,------. ,---. ,--. ,-----. ,--.
| | | || .--. ' ,--,--.,--. ,--. ' .-' ,---. ,--.--.`--',--,--, ,---. | |) /_ ,---. ,---. ,-' '-.
| |,--. | || '--' |' ,-. | \ ' / `. `-. | .-. || .--',--.| \| .-. || .-. \| .-. || .-. |'-. .-'
| || '-' /| | --' \ '-' | \ ' .-' || '-' '| | | || || |' '-' '| '--' /' '-' '' '-' ' | |
`--' `-----' `--' `--`--'.-' / `-----' | |-' `--' `--'`--''--'.`- / `------' `---' `---' `--'
`---' `--' `---'
IJPay 让支付触手可及,QQ交流群:723992875、864988890
TNWX 微信系开发脚手架已支持微信支付 https://gitee.com/javen205/TNWX
,-----.,-----.,-----.,-----.,-----.,-----.,-----.,-----.,-----.,-----.,-----.,-----.,-----.,-----.,-----.,-----.,-----.
'-----''-----''-----''-----''-----''-----''-----''-----''-----''-----''-----''-----''-----''-----''-----''-----''-----'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册