# CRMEB 相关配置
crmeb:
  version: CRMEB-JAVA-MER-v1.2 # 当前代码版本
  domain: #配合swagger使用 # 待部署域名
  wechat-api-url:  #请求微信接口中专服务器
  wechat-js-api-debug: false #微信js api系列是否开启调试模式
  wechat-js-api-beta: true #微信js api是否是beta版本
  asyncConfig: false #是否同步config表数据到redis
  asyncWeChatProgramTempList: false #是否同步小程序公共模板库
  imagePath: /data/workspace/crmeb-javamer/images/ # 服务器图片路径配置 斜杠结尾
  captchaOn: false # 是否开启行为验证码
  retailStoreBrokerageRatio: 100 #佣金返佣比例和上限
  activityStyleCachedTime: 10 #活动边框缓存周期 秒为单位，生产环境适当5-10分钟即可
  activityStyleProductLimit: 100 # 活动边框指定商品上线

# 配置端口
server:
  port: 40001
  servlet:
    context-path: /         # 访问path
  tomcat:
    uri-encoding: UTF-8     # 默认编码格式
    max-threads: 1000       # 最大线程数量 默认200
    min-spare-threads: 30   # 初始化启动线程数量

spring:
  profiles:
    active:
  servlet:
    multipart:
      max-file-size: 50MB #设置单个文件大小
      max-request-size: 50MB #设置单次请求文件的总大小
  resources:
    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${crmeb.filePath}
    add-mappings: true
  application:
    name: crmeb-front #这个很重要，这在以后的服务与服务之间相互调用一般都是根据这个name
  jackson:
    locale: zh_CN
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
  #  数据库配置
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.jdbc.Driver
#    url: jdbc:mysql://49.4.21.141:45611/crmeb?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
    url: jdbc:mysql://172.20.0.196:3306/crmeb?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
    username: bcx
    password: Wstestv5qy#2022
  redis:
    host: 49.4.21.141 #地址
    port: 6328 #端口
    password: redis20240628
    timeout: 30000 # 连接超时时间（毫秒）
    database: 9  #默认数据库
    jedis:
      pool:
        max-active: 200 # 连接池最大连接数（使用负值表示没有限制）
        max-wait: -1 # 连接池最大阻塞等待时间（使用负值表示没有限制）
        max-idle: 10 # 连接池中的最大空闲连接
        min-idle: 0 # 连接池中的最小空闲连接
        time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
  # 捕获404异常
  mvc:
    throw-exception-if-no-handler-found: true

debug: true
logging:
  level:
    io.swagger.*: error
    com.zbkj: debug
    org.springframework.boot.autoconfigure: ERROR
  config: classpath:logback-spring.xml
  file:
    path: ./crmeb_front_log

# mybatis 配置
mybatis-plus:
  mapper-locations: classpath*:mapper/*/*Mapper.xml #xml扫描，多个目录用逗号或者分号分隔（告诉 Mapper 所对应的 XML 文件位置）
  # 配置slq打印日志
  configuration:
    log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  global-config:
    db-config:
      #      logic-delete-field: isDel  #全局逻辑删除字段值 3.3.0开始支持，详情看下面。
      logic-delete-value: 1 # 逻辑已删除值(默认为 1)
      logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)

# 行为验证码
aj:
  captcha:
    type: default       # 验证码类型
    water-mark: CRMEB Java   # 水印
    slip-offset: 5      # 校验滑动拼图允许误差偏移量(默认5像素)
    aes-status: true    # aes加密坐标开启或者禁用(true|false)
    interference-options: 2 # 滑动干扰项(0/1/2)
    font-style: 1       # 点选字体样式 默认Font.BOLD
    font-size: 25       # 点选字体字体大小
    req-frequency-limit-enable: false   # 接口请求次数一分钟限制是否开启 true|false
    req-get-lock-limit: 5     # 验证失败5次，get接口锁定
    req-get-minute-limit: 360     # 验证失败后，锁定时间间隔,s
    req-check-minute-limit: 60    # check接口一分钟内请求数限制
    req-verify-minute-limit: 60     # verify接口一分钟内请求数限制

#swagger 配置
swagger:
  basic:
    enable: true #是否开启
    check: false #是否打开验证
    username: #访问swagger的账号
    password: #访问swagger的密码

# wx-java-tools 第三方框架仅仅用到了微信小程序直播功能 是用小程序直播时必须配置
wx:
  miniapp:
    configs:
      - appid: wx0e15fe7f98b19970
        secret: e154577cea7a0d7e0fa974dca4e206ba
        token:  #微信小程序消息服务器配置的token
        aesKey:  #微信小程序消息服务器配置的EncodingAESKey
        msgDataFormat: JSON
    config-storage:
      type: redistemplate
sms:
  sendSwitch: true
  code: B00
  url: http://msg.bcxin.com.cn:9165/sms/huawei/sendSMS
  channel: test
  platform: V5
mybank: #生产
  api:
    appId: 2025061700003248
    isvOrgId: 202211000000000003340
    privateKey: MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCe+vU3Tlyk0IS+xUsZJLpuDFJGvOg1W/W6DAViguc8zPpA+1y+3IICA6CfAYEznQEcEug6vHJChZ5cP2lO5HVBBYX9qQRVeKxkXjAcuJY5Wt7jcwsT6YXY4JmtSKf2qzg1NKaVsSTCBw9IvMSfOLSnOrfHoSJKkAflAWdLZXTz8QkIYC+ECbMCEMtyPxae/ZPi+FS4RbMxgGBng2e43mcE+aNIYgMpSDISY1qOe3/UVrwCRh6clylyq4OYIDGSYTiFrW47gFC8xLkLGfMbIs3Y3IIKhbENMnKbX0EDiAkpQsYfwJzeYhsToP3zt/4hCNMvdrGCqRWnXcFFpSdzsPKVAgMBAAECggEAPTcewtv+mkvcQWTQpO7ahlNiPvCwbRNqy+ejDyqehW/cELd5H9jiiooBCBjZOhmDet7g4vT6/hhbQOP91a3sZEwPKvwwugSMRN1rozOETLNrzaLXqiQqMLdTFUE7w6RsMTiDyHH8WGXFgdmF0FVSYm4eo9Ss0o8hKxHeR07auK8Cl7AR967oLrVtzk+2MZUeBak3znAcrq08QnldOMavvb0Qlfh107njel0PHimmfcREZnBqL3rKlB8yueazxRKphtyR/t6tZKFSagngVtKeeSOJyTBZLW/uovJcS66WcThhAHF/BttgmSQHWp6o7/gC9Lpb4uS9Wro73fRsJ86AhQKBgQDu6HoSu5kptF+Kb33Jh6FgsqaTC2bonWM+JEees5lhLmI75L3Est38ySkNnYJZjToIAAO00ynXfhCw7Szs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fa8AkYenJcpcquDmCAxkmE4ha1uO4BQvMS5CxnzGyLN2NyCCoWxDTJym19BA4gJKULGH8Cc3mIbE6D987f+IQjTL3axgqkVp13BRaUnc7DylQIDAQAB
    checkPublicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjQNXWNjJglZ0WMg90VZiWfDT5tuWAVaa1Rs0fTvfHeYhkroFmJqu7ShjxDiMjtdYdZ53ciHLKNTHwCPiK6qiEHETRzZYJr2X6VPGrrqBDqBBHr8zhRWQOGNApXqaPjfSWsygXq2tAVlic1ZiFvAQoi4pX6Dyr0jVVmsbzYQnaeTGKkqAx/ao3/4yl6RhdmkiMd3fSE1Ql9Y2Uf14oMwOEPC5jE/2u8NYydlt7H2xPZM4XjeTBf5E84ACkun/MxWSQ31uEMZOwUtl6NUnTo83ZFVhoG7BTdXgIbsdXWh04GbF4zbVy6zy6kBBY0p6nHwOszaiuHxqzoEd1WNgEEN7bQIDAQAB
    format: XML
    charset: UTF-8
    signType: RSA
    sftp:
      address:
      username:
      password:
      port: 22
      uploadSleep: 2000
      uploadRetry: 3
    function:
      version: 1.0.0
    spServerUrl: https://bkgw.mybank.cn/open/api/common/request2.htm
    bkServerUrl: https://bkgw.mybank.cn/open/lite/api/common/request.htm
    bkOpenApiUrl: https://bkgw.mybank.cn/open/request/common-xml.htm
    uploadphotoUrl: https://bkgw.mybank.cn/ant/mybank/merchantprod/merchant/uploadphoto.htm
    uploadFileUrl: https://bkgw.mybank.cn/ant/mybank/industry/payroll/file/upload.htm
    kybApplyUrl: https://bkgw.mybank.cn/bkmerchantprod/kyb/apply.htm
    kybMatchUrl: https://bkgw.mybank.cn/open/api/common/request.htm
    serverUrl: https://bkgw.mybank.cn/open/api/common/request2.htm
#mybank: #测试
#  api:
#    appId: 2025061700003248
#    isvOrgId: 202211000000000003340
#    privateKey: MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC+DjjKuBYNScrhp7/+yf/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oGDJewML/Iv0yIw7ylB86++h23nRd079c5S9RZXurBfnLW2Srhqk2QIDAQAB
#    format: XML
#    charset: UTF-8
#    signType: RSA
#    sftp:
#      address:
#      username:
#      password:
#      port: 22
#      uploadSleep: 2000
#      uploadRetry: 3
#    function:
#      version: 1.0.0
#    spServerUrl: https://fcsupergwlitedev.dl.szulodev.com/open/api/common/request2.htm
#    bkServerUrl: http://bkgwdev.dl.alipaydev.com/open/lite/api/common/request.htm
#    bkOpenApiUrl: http://bkgwdev.dl.alipaydev.com/open/request/common-xml.htm
#    uploadphotoUrl: http://bkgwdev.dl.alipaydev.com/ant/mybank/merchantprod/merchant/uploadphoto.htm
#    uploadFileUrl: http://bkgwdev.dl.alipaydev.com/ant/mybank/industry/payroll/file/upload.htm
#    kybApplyUrl: http://bkgwdev.dl.alipaydev.com/bkmerchantprod/kyb/apply.htm
#    kybMatchUrl: http://bkgwdev.dl.alipaydev.com/open/api/common/request.htm
#    serverUrl: https://fcsupergw.mybank.dl.alipaydev.com/open/api/common/request2.htm