From c910fc19167edf6657fd75c99856b61a27b0cfbd Mon Sep 17 00:00:00 2001 From: duzhichao <1098974448@qq.com> Date: Fri, 7 Nov 2025 17:29:59 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E4=BC=98=E6=83=A0=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 135 +++++++++--------- .../src/main/resources/bootstrap.yml | 3 - 2 files changed, 66 insertions(+), 72 deletions(-) diff --git a/zlt-business/coupon-center/src/main/resources/application.yml b/zlt-business/coupon-center/src/main/resources/application.yml index a18858c5..45b93795 100644 --- a/zlt-business/coupon-center/src/main/resources/application.yml +++ b/zlt-business/coupon-center/src/main/resources/application.yml @@ -1,69 +1,66 @@ -spring: - datasource: - # url: jdbc:mysql://${zlt.datasource.ip}:3306/device-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai - url: jdbc:mysql://${zlt.datasource.ip}/coupon-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowMultiQueries=true - username: ${zlt.datasource.username} - password: ${zlt.datasource.password} - driver-class-name: com.mysql.cj.jdbc.Driver - # 环境配置:test(测试环境) / prod(生产环境) - profiles: - active: test - -mybatis-plus: - mapper-locations: classpath:/mapper/*Mapper.xml - #实体扫描,多个package用逗号或者分号分隔 - typeAliasesPackage: com.central.coupon.model - # configuration: - # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl - global-config: - db-config: - id-type: auto - -springdoc: - group-configs: - - group: 'default' - paths-to-match: '/**' - packages-to-scan: com.central.coupon.controller - -knife4j: - enable: true - setting: - swagger-model-name: 优惠券中心接口文档 -zlt: - #多租户配置 - tenant: - enable: false - ignoreTables: - ignoreSqls: - # 禁用分布式锁 - lock: - lockerType: NONE - -# 日志配置 -logging: - level: - com.central.order.controller.OrderFileController: DEBUG - com.central.coupon.util.CtripDecryptUtil: DEBUG - com.central.coupon.service.impl.OrderDetailServiceImpl: DEBUG - -# 携程API配置 -ctrip: - # AES加密配置 - aes: - key: 6196f64f4f6e5dca # 为实际的AES密钥 - iv: 28405d20246ecccd # 为实际的AES IV - # 签名配置(使用账户密钥进行签名计算) - # API配置 - api: - # 测试环境URL - test-url: https://ttdopen.ctrip.com/api - # 生产环境URL - prod-url: https://ttdentry.ctrip.com/ttd-connect-orderentryapi/supplier - # 当前环境(test/prod) - environment: prod - timeout: 30000 # 请求超时时间(毫秒) - retry-times: 3 # 重试次数 - # 账户配置 - account: - id: e02647943fdfb4c5 # 为实际的账户ID - secret: 0b4f4dabb50999cb04a773fc96f81499 # 实际的账户密钥 +#spring: +# datasource: +# # url: jdbc:mysql://${zlt.datasource.ip}:3306/device-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai +# url: jdbc:mysql://${zlt.datasource.ip}/coupon-center-test?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowMultiQueries=true +# username: ${zlt.datasource.username} +# password: ${zlt.datasource.password} +# driver-class-name: com.mysql.cj.jdbc.Driver +# +#mybatis-plus: +# mapper-locations: classpath:/mapper/*Mapper.xml +# #实体扫描,多个package用逗号或者分号分隔 +# typeAliasesPackage: com.central.coupon.model +# # configuration: +# # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl +# global-config: +# db-config: +# id-type: auto +# +#springdoc: +# group-configs: +# - group: 'default' +# paths-to-match: '/**' +# packages-to-scan: com.central.coupon.controller +# +#knife4j: +# enable: true +# setting: +# swagger-model-name: 优惠券中心接口文档 +#zlt: +# #多租户配置 +# tenant: +# enable: false +# ignoreTables: +# ignoreSqls: +# # 禁用分布式锁 +# lock: +# lockerType: NONE +# +## 日志配置 +#logging: +# level: +# com.central.order.controller.OrderFileController: DEBUG +# com.central.coupon.util.CtripDecryptUtil: DEBUG +# com.central.coupon.service.impl.OrderDetailServiceImpl: DEBUG +# +## 携程API配置 +#ctrip: +# # AES加密配置 +# aes: +# key: 6196f64f4f6e5dca # 为实际的AES密钥 +# iv: 28405d20246ecccd # 为实际的AES IV +# # 签名配置(使用账户密钥进行签名计算) +# # API配置 +# api: +# # 测试环境URL +# test-url: https://ttdopen.ctrip.com/api +# # 生产环境URL +# prod-url: https://ttdentry.ctrip.com/ttd-connect-orderentryapi/supplier +# # 当前环境(test/prod) +# environment: prod +# timeout: 30000 # 请求超时时间(毫秒) +# retry-times: 3 # 重试次数 +# # 账户配置 +# account: +# id: e02647943fdfb4c5 # 为实际的账户ID +# secret: 0b4f4dabb50999cb04a773fc96f81499 # 实际的账户密钥 diff --git a/zlt-business/coupon-center/src/main/resources/bootstrap.yml b/zlt-business/coupon-center/src/main/resources/bootstrap.yml index 7dd1118e..9c68c890 100644 --- a/zlt-business/coupon-center/src/main/resources/bootstrap.yml +++ b/zlt-business/coupon-center/src/main/resources/bootstrap.yml @@ -1,6 +1,3 @@ -server: - port: 8002 - spring: application: name: coupon-center From dfacbdd72fb4dd096f940018f746a4c3a3a550ad Mon Sep 17 00:00:00 2001 From: duzhichao <1098974448@qq.com> Date: Fri, 7 Nov 2025 18:23:55 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pom.xml b/pom.xml index feeaaf2f..a5e9e8e0 100644 --- a/pom.xml +++ b/pom.xml @@ -454,6 +454,19 @@ + + + + local + Local Repository + file://${user.home}/.m2/repository + + true + + + true + + aliyun-repos https://maven.aliyun.com/repository/public From 3b4e8eb02c5f5fa7834b0519826e710c42b3d9ae Mon Sep 17 00:00:00 2001 From: duzhichao <1098974448@qq.com> Date: Fri, 7 Nov 2025 18:30:01 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E4=BC=98=E6=83=A0=E5=88=B8?= =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index a5e9e8e0..67a05049 100644 --- a/pom.xml +++ b/pom.xml @@ -455,18 +455,18 @@ - + aliyun-repos https://maven.aliyun.com/repository/public