20260716
This commit is contained in:
@@ -79,14 +79,14 @@ public class OpenAlipayController extends BaseController {
|
||||
// 验证签名
|
||||
isCheckSign();
|
||||
// 读取缓存信息
|
||||
String key = "setting:register:" + getTenantId();
|
||||
String setting = redisUtil.get(key);
|
||||
// String key = "setting:register:" + getTenantId();
|
||||
// String setting = redisUtil.get(key);
|
||||
|
||||
// if (setting == null) {
|
||||
// throw new BusinessException("请先配置注册设置");
|
||||
// }
|
||||
JSONObject jsonObject = JSONObject.parseObject(setting);
|
||||
String roleId = jsonObject.getString("roleId");
|
||||
// JSONObject jsonObject = JSONObject.parseObject(setting);
|
||||
// String roleId = jsonObject.getString("roleId");
|
||||
// 实例化客户端
|
||||
DefaultAlipayClient alipayClient = alipayConfig.alipayClient(param.getTenantId());
|
||||
try {
|
||||
|
||||
@@ -297,7 +297,7 @@ public class PaymentController extends BaseController {
|
||||
// log.info("支付宝支付返回信息:{}", response);
|
||||
if(!response.isSuccess()){
|
||||
String subCode = response.getSubCode();
|
||||
if("ACQ.TRADE_HAS_CLOSE".equals(subCode)){
|
||||
if("ACQ.TRADE_HAS_CLOSE".equals(subCode) || "ACQ.TRADE_HAS_SUCCESS".equals(subCode)){
|
||||
String orderNoNew = IdUtil.getSnowflakeNextIdStr();
|
||||
log.warn("原支付宝支付订单{}已关闭!重新生成支付订单号{}!", orderNo, orderNoNew);
|
||||
order.setOrderNo(orderNoNew);
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# 数据源配置
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://1.14.159.185:3318/yunxinwei?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
||||
url: jdbc:mysql://1Panel-mysql-LCaM:3306/yunxinwei?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
||||
username: yunxinwei
|
||||
password: A56sK6aW2FA3wBy2
|
||||
password: T4xEYiwTdEmS2ZED
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 端口
|
||||
server:
|
||||
port: 9090
|
||||
port: 9200
|
||||
# socketIo
|
||||
socketio:
|
||||
port: 9190
|
||||
@@ -47,9 +47,9 @@ spring:
|
||||
max-request-size: 100MB
|
||||
redis:
|
||||
database: 7
|
||||
host: 127.0.0.1
|
||||
host: 1Panel-redis-CnJa
|
||||
port: 6379
|
||||
password:
|
||||
password: redis_xGXDip
|
||||
|
||||
# 邮件服务器配置
|
||||
mail:
|
||||
|
||||
Reference in New Issue
Block a user