fix(优惠券中心):携程所有测试用例全部测试通过,提取配置文件,标准化上线生产环境

This commit is contained in:
2025-09-01 01:54:14 +08:00
parent f1222850d8
commit 3175832c31
4 changed files with 81 additions and 205 deletions
@@ -5,6 +5,9 @@ spring:
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
@@ -51,7 +54,12 @@ ctrip:
# 签名配置(使用账户密钥进行签名计算)
# API配置
api:
base-url: https://ttdopen.ctrip.com/api # 携程API基础URL
# 测试环境URL
test-url: https://ttdopen.ctrip.com/api
# 生产环境URL
prod-url: https://ttdentry.ctrip.com/ttd-connect-orderentryapi/supplier
# 当前环境(test/prod)
environment: test
timeout: 30000 # 请求超时时间(毫秒)
retry-times: 3 # 重试次数
# 账户配置