feat(shop): 优化订单处理逻辑并添加新功能
- 新增 DateTimeUtil 工具类,用于统一处理日期时间格式化- 移除 ShopCouponController 中的 PreAuthorize 注解 -重构 ShopOrderServiceImpl 中的支付成功后业务逻辑处理 - 添加处理支付成功后业务逻辑的 handlePaymentSuccess 方法 - 新增标记优惠券为已使用的 markCouponAsUsed 方法 - 新增累计商品销量的 updateGoodsSales 和 updateSingleGoodsSales 方法 - 更新测试账号配置和生产环境配置
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# 数据源配置
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://8.134.169.209:13306/modules?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
||||
url: jdbc:mysql://1Panel-mysql-Bqdt:3306/modules?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
||||
username: modules
|
||||
password: 8YdLnk7KsPAyDXGA
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
@@ -14,8 +14,8 @@ spring:
|
||||
# redis
|
||||
redis:
|
||||
database: 0
|
||||
host: 8.134.169.209
|
||||
port: 16379
|
||||
host: 1Panel-redis-Q1LE
|
||||
port: 6379
|
||||
password: redis_WSDb88
|
||||
|
||||
# 日志配置
|
||||
|
||||
@@ -119,9 +119,9 @@ shop:
|
||||
order:
|
||||
# 测试账号配置
|
||||
test-account:
|
||||
enabled: false # 禁用测试账号功能
|
||||
enabled: true # 禁用测试账号功能
|
||||
phone-numbers:
|
||||
- "13800000000" # 改为其他测试手机号
|
||||
- "13737128880" # 改为其他测试手机号
|
||||
test-pay-amount: 0.01
|
||||
|
||||
# 租户特殊规则配置
|
||||
|
||||
Reference in New Issue
Block a user