Skip to content

Commit

Permalink
build 更新版本号和数据脚本, 再调整TLS版本机制
Browse files Browse the repository at this point in the history
  • Loading branch information
xxm1995 committed Feb 26, 2024
1 parent 4dca512 commit 503f48f
Show file tree
Hide file tree
Showing 18 changed files with 4,657 additions and 185 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p>
<img src='https://gitee.com/bootx/dax-pay/badge/star.svg?theme=dark' alt='star'/>
<img src="https://img.shields.io/badge/Dax%20Pay-2.0.0-success.svg" alt="Build Status"/>
<img src="https://img.shields.io/badge/Dax%20Pay-2.0.1-success.svg" alt="Build Status"/>
<img src="https://img.shields.io/badge/Boot%20Platform-1.3.6-success.svg" alt="Build Status"/>
<img src="https://img.shields.io/badge/Author-Bootx-orange.svg" alt="Build Status"/>
<img src="https://img.shields.io/badge/Spring%20Boot-2.7.18-blue.svg" alt="Downloads"/>
Expand Down
3,442 changes: 3,442 additions & 0 deletions _config/sql/2.0.0/dax-pay.backup.sql

Large diffs are not rendered by default.

412 changes: 412 additions & 0 deletions _config/sql/2.0.1/2.0.1.update.data.sql

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions _config/sql/2.0.1/2.0.1.update.table.sql

Large diffs are not rendered by default.

643 changes: 476 additions & 167 deletions _config/sql/dax-pay.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _doc/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- fix: 修复简单退款选择全部退款时报错问题
- fix: 修复退款时未检验退款金额问题,导致可以退款余额可以大于可退余额

## [v2.0.0]
## [v2.0.1]
- 支持支付宝支付: 扫码支付、付款码支付、PC支付、H5支付
- 支持微信支付: 扫码支付、WAP支付、公众号支付
- 增加聚合支付演示功能,支持支付宝和微信支付
Expand Down
4 changes: 2 additions & 2 deletions daxpay-single-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cn.bootx.platform</groupId>
<artifactId>dax-pay</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<artifactId>daxpay-single-demo</artifactId>
Expand Down Expand Up @@ -36,7 +36,7 @@
<dependency>
<groupId>cn.bootx.platform</groupId>
<artifactId>daxpay-single-sdk</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion daxpay-single-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cn.bootx.platform</groupId>
<artifactId>daxpay-single-sdk</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
<packaging>jar</packaging>

<!-- 项目信息 -->
Expand Down
2 changes: 1 addition & 1 deletion daxpay-single/daxpay-single-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cn.bootx.platform</groupId>
<artifactId>daxpay-single</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<artifactId>daxpay-single-admin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion daxpay-single/daxpay-single-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cn.bootx.platform</groupId>
<artifactId>daxpay-single</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<artifactId>daxpay-single-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion daxpay-single/daxpay-single-gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cn.bootx.platform</groupId>
<artifactId>daxpay-single</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<artifactId>daxpay-single-gateway</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion daxpay-single/daxpay-single-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cn.bootx.platform</groupId>
<artifactId>daxpay-single</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<artifactId>daxpay-single-service</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package cn.bootx.platform.daxpay.service.configuration.ijpay;

import cn.hutool.core.collection.ListUtil;
import cn.hutool.core.net.SSLProtocols;
import com.ijpay.core.kit.HttpKit;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import javax.net.ssl.SSLContext;
import java.security.NoSuchAlgorithmException;
import java.util.List;

/**
* IJPau配置类
Expand All @@ -23,10 +26,23 @@ public class IJPayConfiguration {
@PostConstruct
public void initHttpDelegate() throws NoSuchAlgorithmException {
log.info("初始化IJPay配置类");
String tlsVersion = SSLContext.getDefault()

String[] protocols = SSLContext.getDefault()
.getSupportedSSLParameters()
.getProtocols()[0];
HttpKit.setDelegate(new DaxPayHttpDelegate(tlsVersion));
.getProtocols();
List<String> list = ListUtil.toList(protocols);
// 是否支持TLS1.2
if (list.contains(SSLProtocols.TLSv12)) {
HttpKit.setDelegate(new DaxPayHttpDelegate(SSLProtocols.TLSv12));
return;
}
// 是否支持TLS1.1
if (list.contains(SSLProtocols.TLSv11)) {
HttpKit.setDelegate(new DaxPayHttpDelegate(SSLProtocols.TLSv11));
return;
}
// 如果都不支持, 使用TLS_V1
HttpKit.setDelegate(new DaxPayHttpDelegate(SSLProtocols.TLSv1));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class CashPayConfigService {
* 获取钱包配置
*/
public CashConfig getConfig(){
return cashConfigManager.findById(ID).orElseThrow(() -> new DataNotExistException("钱包配置不存在"));
return cashConfigManager.findById(ID).orElseThrow(() -> new DataNotExistException("现金配置不存在"));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion daxpay-single/daxpay-single-start/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cn.bootx.platform</groupId>
<artifactId>daxpay-single</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<artifactId>daxpay-single-start</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bootx:
swagger:
enabled: true
author: bootx
version: 2.0.0
version: 2.0.1
title: 开源支付平台-单商户
description: 开源支付平台-单商户版
# 多模块扫码
Expand Down Expand Up @@ -169,3 +169,5 @@ dax-pay:
front-h5-url: http:https://pay1.bootx.cn/h5/#
# 签名秘钥
sign-secret: 123456
# 签名方式
sign-type: hmac_sha256
2 changes: 1 addition & 1 deletion daxpay-single/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cn.bootx.platform</groupId>
<artifactId>dax-pay</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<artifactId>daxpay-single</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<groupId>cn.bootx.platform</groupId>
<artifactId>dax-pay</artifactId>
<packaging>pom</packaging>
<version>2.0.0</version>
<version>2.0.1</version>

<modules>
<module>daxpay-single</module>
Expand All @@ -30,7 +30,7 @@

<!-- 二方库版本 -->
<bootx-platform.version>1.3.6.1</bootx-platform.version>
<daxpay.version>2.0.0</daxpay.version>
<daxpay.version>2.0.1</daxpay.version>
<!-- 三方库 -->
<slf4j.version>1.7.30</slf4j.version>
<redisson.version>3.16.8</redisson.version>
Expand Down

0 comments on commit 503f48f

Please sign in to comment.