Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
IJPay
提交
9808a111
I
IJPay
项目概览
int
/
IJPay
9 个月 前同步成功
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
IJPay
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9808a111
编写于
10月 05, 2022
作者:
J
Javen205
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
✨
优化微信支付 springboot starter 示例
上级
d05ede6c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
68 addition
and
66 deletion
+68
-66
IJPay-Plugin/IJPay-WxPay-Starter-Demo/pom.xml
IJPay-Plugin/IJPay-WxPay-Starter-Demo/pom.xml
+2
-2
IJPay-Plugin/IJPay-WxPay-Starter-Demo/src/main/java/com/ijpay/controller/WxPayController.java
...o/src/main/java/com/ijpay/controller/WxPayController.java
+2
-13
IJPay-Plugin/IJPay-WxPay-Starter-Demo/src/main/resources/application-prod.yml
...xPay-Starter-Demo/src/main/resources/application-prod.yml
+51
-51
IJPay-Plugin/IJPay-WxPay-Starter-Demo/src/main/resources/banner.txt
...in/IJPay-WxPay-Starter-Demo/src/main/resources/banner.txt
+13
-0
未找到文件。
IJPay-Plugin/IJPay-WxPay-Starter-Demo/pom.xml
浏览文件 @
9808a111
...
...
@@ -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>
...
...
IJPay-Plugin/IJPay-WxPay-Starter-Demo/src/main/java/com/ijpay/controller/WxPayController.java
浏览文件 @
9808a111
...
...
@@ -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
);
}
/**
* 获取平台证书序列号
*
...
...
IJPay-Plugin/IJPay-WxPay-Starter-Demo/src/main/resources/application-prod.yml
浏览文件 @
9808a111
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-Plugin/IJPay-WxPay-Starter-Demo/src/main/resources/banner.txt
0 → 100644
浏览文件 @
9808a111
,--. ,--.,------. ,---. ,--. ,-----. ,--.
| | | || .--. ' ,--,--.,--. ,--. ' .-' ,---. ,--.--.`--',--,--, ,---. | |) /_ ,---. ,---. ,-' '-.
| |,--. | || '--' |' ,-. | \ ' / `. `-. | .-. || .--',--.| \| .-. || .-. \| .-. || .-. |'-. .-'
| || '-' /| | --' \ '-' | \ ' .-' || '-' '| | | || || |' '-' '| '--' /' '-' '' '-' ' | |
`--' `-----' `--' `--`--'.-' / `-----' | |-' `--' `--'`--''--'.`- / `------' `---' `---' `--'
`---' `--' `---'
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录