mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
Merge branch 'master' of https://github.com/YunaiV/ruoyi-vue-pro
This commit is contained in:
commit
4db3de8d86
@ -56,7 +56,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC
|
|||||||
protected void doInit(String tradeType) {
|
protected void doInit(String tradeType) {
|
||||||
// 创建 config 配置
|
// 创建 config 配置
|
||||||
WxPayConfig payConfig = new WxPayConfig();
|
WxPayConfig payConfig = new WxPayConfig();
|
||||||
BeanUtil.copyProperties(config, payConfig, "keyContent");
|
BeanUtil.copyProperties(config, payConfig, "keyContent", "privateKeyContent", "privateCertContent");
|
||||||
payConfig.setTradeType(tradeType);
|
payConfig.setTradeType(tradeType);
|
||||||
// weixin-pay-java 无法设置内容,只允许读取文件,所以这里要创建临时文件来解决
|
// weixin-pay-java 无法设置内容,只允许读取文件,所以这里要创建临时文件来解决
|
||||||
if (Base64.isBase64(config.getKeyContent())) {
|
if (Base64.isBase64(config.getKeyContent())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user