配置修改

This commit is contained in:
moxiangrong
2024-02-21 11:20:03 +08:00
parent 477d29d69f
commit ca9a96eabd
2 changed files with 32 additions and 20 deletions

View File

@ -45,13 +45,13 @@ spring:
datasource:
master:
name: yshop_pro_dev
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
driver-class-name: com.mysql.jdbc.Driver
username:
password:
slave: # 模拟从库,可根据自己需要修改
name: yshop_pro_dev_slave
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
driver-class-name: com.mysql.jdbc.Driver
username:
password:
@ -168,6 +168,13 @@ wx:
type: RedisTemplate # 采用 RedisTemplate 操作 Redis会自动从 Spring 中获取
key-prefix: wa # Redis Key 的前缀 TODO yshop解决下 Redis key 管理的配置
http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台
cp: # 企业微信配置
corpId:
appConfigs:
- agentId:
secret:
token:
aesKey:
order-notice:
flag: false
@ -210,8 +217,14 @@ yshop:
enable: false
demo: false # 关闭演示模式
sms-code:
api-key: LTAI5tBBPdRd4f2YZt5UhVjF
api-secret: iVP7EsjX309epI7MqsScziGhcrEHiT
expire-times: 10m
send-frequency: 1m
send-maximum-quantity-per-day: 1000
begin-code: 1111 # 这里配置 9999 的原因是,测试方便。
end-code: 9999 # 这里配置 9999 的原因是,测试方便。
api-key:
api-secret:
signature:
justauth:

View File

@ -44,12 +44,12 @@ spring:
primary: master
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
driver-class-name: com.mysql.jdbc.Driver
username:
password:
slave: # 模拟从库,可根据自己需要修改
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
driver-class-name: com.mysql.jdbc.Driver
username:
password:
@ -168,36 +168,35 @@ wx:
key-prefix: wa # Redis Key 的前缀 TODO yshop解决下 Redis key 管理的配置
http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台
cp: # 企业微信配置
corpId: ww6f05330db97eb85a
corpId:
appConfigs:
- agentId: 1000010
secret: SdVjZvDeDJNJXrEs3aoM2Bf8tfXj3B6lVv2zU0a0Hlw
token: wZnpSKA3
aesKey: W1T6Zh2reXYGXz7fVaWaPT2QX0akofWpCNYMJjpXL7p
- agentId:
secret:
token:
aesKey:
order-notice:
flag: false
--- #微信支付配置
weixin:
#appid
appid: wxf0713a10bbae8732
appid:
#APP端的appid
app_appid: wxf0713a10bbae8732
#小程序支付应用id wxd968b04655cc4ce1
app_appid:
#小程序秘钥
secret: 1f4118c195c1926ca2ef6160ca06af15
secret:
#商户号
mchid: 1558500071
mchid:
#证书路径
certurl: /yshop-server/apiclient_cert.p12
#订单取消退款回调地址
order_refund_notifyurl: https://shopapi.zkthink.com/order/refund/rolBack
order_refund_notifyurl:
#APP回调地址
app_notifyurl: https://b2c-pro-api.zkthink.com/app-api/order/pay/wxPayNotify
app_notifyurl:
#商户秘钥
key: zk7BHJJWThinkSztbI6zye9ZA70uNFtT
key:
#h5支付之后跳转地址
redirect_url: https://b2c-pro-ui-h5.zkthink.com/#/pages/payStatus/index?type=1
redirect_url:
--- #################### yshop相关配置 ####################
# yshop配置项设置当前项目所有自定义的配置