# 数据源配置
spring:
  #mq
  rabbitmq:
    host: 113.45.190.154
    port: 5672
    username: guest
    password: guest
    virtualHost: /
    listener:
      simple:
        prefetch: 1 # 每次之能获取一条
        acknowledge-mode: manual # 设置消费端手动ack确认
        retry:
          enabled: true # 是否支持重试
      # 生产者配置
    publisher-confirm-type: correlated   #确认消息已发送到交换机(Exchange)
    publisher-returns: true  #确认消息已发送到队列(Queue)

  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driverClassName: com.mysql.cj.jdbc.Driver
    druid:
      # 主库数据源
      master:
        url: jdbc:mysql://113.45.190.154:3306/mcwl?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
        username: root
        password: ybl123456@
      # 从库数据源
      slave:
        # 从数据源开关/默认关闭
        enabled: false
        url:
        username:
        password:
      # 初始连接数
      initialSize: 5
      # 最小连接池数量
      minIdle: 10
      # 最大连接池数量
      maxActive: 20
      # 配置获取连接等待超时的时间
      maxWait: 60000
      # 配置连接超时时间
      connectTimeout: 30000
      # 配置网络超时时间
      socketTimeout: 60000
      # 配置间隔多久才进行一次检测，检测需要关闭的空闲连接，单位是毫秒
      timeBetweenEvictionRunsMillis: 60000
      # 配置一个连接在池中最小生存的时间，单位是毫秒
      minEvictableIdleTimeMillis: 300000
      # 配置一个连接在池中最大生存的时间，单位是毫秒
      maxEvictableIdleTimeMillis: 900000
      # 配置检测连接是否有效
      validationQuery: SELECT 1 FROM DUAL
      testWhileIdle: true
      testOnBorrow: false
      testOnReturn: false
      webStatFilter:
        enabled: true
      statViewServlet:
        enabled: true
        # 设置白名单，不填则允许所有访问
        allow:
        url-pattern: /druid/*
        # 控制台管理用户名和密码
        login-username: mcwl
        login-password: 123456
      filter:
        stat:
          enabled: true
          # 慢SQL记录
          log-slow-sql: true
          slow-sql-millis: 1000
          merge-sql: true
        wall:
          config:
            multi-statement-allow: true
  # redis 配置
  redis:
    # 地址 旧测试环境
#    host: 113.45.9.111
    host: 113.45.190.154
    # 端口，默认为6379
    port: 6379
    # 数据库索引
    database: 0
    # 密码
    password: MuYu_Cloud@Redis
    # 连接超时时间
    timeout: 20s
    lettuce:
      pool:
        # 连接池中的最小空闲连接
        min-idle: 5
        # 连接池中的最大空闲连接
        max-idle: 10
        # 连接池的最大数据库连接数
        max-active: 1000
        # #连接池最大阻塞等待时间（使用负值表示没有限制）
        max-wait: -1ms


# token配置
token:
  # 令牌自定义标识
  header: Authorization
  # 令牌密钥
  secret: abcdefghijklmnopqrstuvwxyz
  # 令牌有效期（默认30分钟）
  expireTime: 43200

# 公众号配置
wechat:
  # 应用ID
  appid: wx0a72f196ec9c3a70
  # 应用密钥
  secret: 11218568b79e2c5eb10459ef8c0374bd

# yml版(application.yml)
aliyun:
  oss:
    bucketName: ybl2112
    endpoint: oss-cn-beijing.aliyuncs.com
    accessKeyId: LTAI5tSHZZ8wHJRP8X4r9TXT
    accessKeySecret: F82IVNx0IGJ3AnP6gSIfcyql1HCXIH
    accessPre: https://ybl2112.oss-cn-beijing.aliyuncs.com/

## 沙箱环境
mall:
  mgt:
    aliPayConfig:
      protocol: https
      gatewayHost: openapi-sandbox.dl.alipaydev.com
      signType: RSA2
      # 沙箱应用id
      appId: 9021000135682614
      # 沙箱应用私钥
      privateKey: MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCQxmQGcaiKjOhayWi+zNTvpp8B5YT8jFFkjLzrD+W+T2Dwf2GfFR4p95zsCJxYeoLWdghMPA6/GMFrLbuVFpaEjuTm4icqA9N8n5d3W0j7gh+wMjZoqyJclAIeb09ut7rY6mWzilA9kWmZnUG7MOWIU70RVRYrfJectCFw/odM9lG4XIVe13X2h+1ecTQyQzLWmnvKFCfo7dQjE7fIYiWfud1ZGUneNs3u73pNWMB6ThGTTCbs0atcgM3fYOg3q7fTxIu9VcaUCJiJ/kNbL9sVEyOrSyx2f2o6w06zdEaOiQFsuDeS8QPYGMg7pf42wAfqCO6hqxQiQT5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Hoos0icu3cj0GhN3MU7+1Eb/rsXyh/lk5wtZTEnHjwhdUOUtwVNjvrv7CzA7unhOoaM6YcE/Zpd4zt8pjqH1Mhds7UHf4Xg+A+J4G6meYnhSwfBpOub02ncsqfBlXE0qhFv6AvcMewWndyLb8EYaUUXTYkG0=
      # 沙箱应用公钥证书
      appCertPath: /opt/cert/dev/appPublicCert.crt
      # 沙箱支付宝公钥证书路径
      alipayCertPath: /opt/cert/dev/alipayPublicCert.crt
      # 沙箱支付宝根证书路径
      alipayRootCertPath: /opt/cert/dev/alipayRootCert.crt
#      # 沙箱应用公钥证书
#      appCertPath: D:\workspace\mochuang\mcwl-ai\mcwl-admin\src\main\resources\cert\dev\alipayPublicCert.crt
#      # 沙箱支付宝公钥证书路径
#      alipayCertPath: D:\workspace\mochuang\mcwl-ai\mcwl-admin\src\main\resources\cert\dev\alipayPublicCert.crt
#      # 沙箱支付宝根证书路径
#      alipayRootCertPath: D:\workspace\mochuang\mcwl-ai\mcwl-admin\src\main\resources\cert\dev\alipayRootCert.crt
      notifyUrl: http://113.45.190.154:8080/ali/pay/notify
      # 沙箱支付宝网关
      gatewayUrl: https://openapi-sandbox.dl.alipaydev.com/gateway.do
      # 绑定回调
      bindUrl: http://113.45.190.154:8080/ali/pay/callback
      # 参与方的标识类型，目前支持如下类型： 1、ALIPAY_USER_ID 支付宝的会员ID 2、ALIPAY_LOGON_ID：支付宝登录号，支持邮箱和手机号格式 3、ALIPAY_OPEN_ID：支付宝openid
      identityType: ALIPAY_USER_ID
      # 授权url
      oauthUrl: https://openauth-sandbox.dl.alipaydev.com/oauth2/publicAppAuthorize.htm?app_id=%s&scope=%s&redirect_uri=%s&state=%s

huawei:
  obs:
    ak: NWXJ93POA9NCDVV1WQYJ
    sk: 3aBuzYdUgSsxdNnycD2mESnVwtcyjAKPxqewE79N
    bucketName: mcwl
    upload:
      endPoint: obs.cn-south-1.myhuaweicloud.com


#用户头像与背景
mcwl:
  encryptUrl: http://113.45.190.154:9090/encryptAndUpload
  user:
    avatar: https://ybl2112.oss-cn-beijing.aliyuncs.com/2025/MARCH/10/7/53/3f5cc1d7-b062-4a22-9f7e-d442bc6dcf42.png
    backgroundImg: https://ybl2112.oss-cn-beijing.aliyuncs.com/2025/MARCH/10/8/2/c8387681-8138-4a29-a1c9-4a143da34c5a.png
