Helius
2021-06-29 5252d1396e21a16774be699a5ba1c8d39c14a22e
modify
6 files added
3 files modified
220 ■■■■■ changed files
gc-core/src/main/java/com/xzx/gc/common/utils/BusinessUtil.java 2 ●●●●● patch | view | raw | blame | history
gc-core/src/main/java/com/xzx/gc/common/utils/SpringUtil.java 4 ●●●● patch | view | raw | blame | history
gc-core/src/main/resources/application.properties 2 ●●● patch | view | raw | blame | history
gc-order/src/main/resources/application-xc.yml 35 ●●●●● patch | view | raw | blame | history
gc-pay/src/main/resources/application-xc.yml 37 ●●●●● patch | view | raw | blame | history
gc-role/src/main/resources/application-xcXcx.yml 35 ●●●●● patch | view | raw | blame | history
gc-shop/src/main/resources/application-xc.yml 35 ●●●●● patch | view | raw | blame | history
gc-sys/src/main/resources/application-xc.yml 35 ●●●●● patch | view | raw | blame | history
gc-user/src/main/resources/application-xc.yml 35 ●●●●● patch | view | raw | blame | history
gc-core/src/main/java/com/xzx/gc/common/utils/BusinessUtil.java
@@ -211,6 +211,8 @@
            urlPrefix="http://192.168.0.100/resource/static/upload";
        }else if(SpringUtil.isCheck()){
            urlPrefix="https://wxtest.cnxzx.com/resource/static/upload";
        } else if (SpringUtil.isXc()) {
            urlPrefix="https://xcfiletest.cnxzx.com/static/upload";
        } else{
//            urlPrefix="http://192.168.0.18/static/upload";
            urlPrefix="http://120.27.238.55:8002/static/upload";
gc-core/src/main/java/com/xzx/gc/common/utils/SpringUtil.java
@@ -93,6 +93,10 @@
        return applicationContext.getEnvironment().getActiveProfiles()[0].equals("check");
    }
    public static  boolean isXc(){
        return applicationContext.getEnvironment().getActiveProfiles()[0].equals("xc");
    }
    public  HttpServletRequest getCurrentRequest(){
        ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
        if(attributes!=null) {
gc-core/src/main/resources/application.properties
@@ -11,7 +11,7 @@
#log
project.log.path=xzx/logs
project.log.path=/xzx/logs
logstash.server.url=localhost:4560
#spring
gc-order/src/main/resources/application-xc.yml
New file
@@ -0,0 +1,35 @@
spring:
  rabbitmq:
    host: 120.27.238.55
    port: 5672
    username: ct_rabbit
    password: 123456
    virtual-host: /
  datasource:
    url: jdbc:mysql://120.27.238.55:3306/db_xzx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useAffectedRows=true
    username: ct_test
    password: 123456
  redis:
    database: 5
    host: 121.37.162.173
    password: d32ncxe@i3#!dV
    port: 6379
#    cluster:
#      nodes: 127.0.0.1:6379
    lettuce:
      pool:
        max-active: 200
        max-idle: 10
        max-wait: -1ms
        min-idle: 5
    timeout: 5000ms
#机器ID编号用于生成分布式ID
workerId: 0
#极光推送
jg:
  appkey: 2a733c0c2aad9be329d5be04
  secret: ec70e5f8db9324b27cb8f0df
gc-pay/src/main/resources/application-xc.yml
New file
@@ -0,0 +1,37 @@
spring:
  rabbitmq:
    host: 120.27.238.55
    port: 5672
    username: ct_rabbit
    password: 123456
    virtual-host: /
  datasource:
    url: jdbc:mysql://120.27.238.55:3306/db_xzx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useAffectedRows=true
    username: ct_test
    password: 123456
  redis:
    database: 5
    host: 121.37.162.173
    password: d32ncxe@i3#!dV
    port: 6379
#    cluster:
#      nodes: 127.0.0.1:6379
    lettuce:
      pool:
        max-active: 200
        max-idle: 10
        max-wait: -1ms
        min-idle: 5
    timeout: 5000ms
#机器ID编号用于生成分布式ID
workerId: 0
noticeUrl: https://app.cnxzx.com/gc-pay/pay/new/wxProPayNotify/anon
#极光推送
jg:
  appkey: 2a733c0c2aad9be329d5be04
  secret: ec70e5f8db9324b27cb8f0df
gc-role/src/main/resources/application-xcXcx.yml
New file
@@ -0,0 +1,35 @@
spring:
  rabbitmq:
    host: 120.27.238.55
    port: 5672
    username: ct_rabbit
    password: 123456
    virtual-host: /
  datasource:
    url: jdbc:mysql://120.27.238.55:3306/db_xzx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useAffectedRows=true
    username: ct_test
    password: 123456
  redis:
    database: 5
    host: 121.37.162.173
    password: d32ncxe@i3#!dV
    port: 6379
#    cluster:
#      nodes: 127.0.0.1:6379
    lettuce:
      pool:
        max-active: 200
        max-idle: 10
        max-wait: -1ms
        min-idle: 5
    timeout: 5000ms
#机器ID编号用于生成分布式ID
workerId: 0
#极光推送
jg:
  appkey: 2a733c0c2aad9be329d5be04
  secret: ec70e5f8db9324b27cb8f0df
gc-shop/src/main/resources/application-xc.yml
New file
@@ -0,0 +1,35 @@
spring:
  rabbitmq:
    host: 120.27.238.55
    port: 5672
    username: ct_rabbit
    password: 123456
    virtual-host: /
  datasource:
    url: jdbc:mysql://120.27.238.55:3306/db_xzx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useAffectedRows=true
    username: ct_test
    password: 123456
  redis:
    database: 5
    host: 121.37.162.173
    password: d32ncxe@i3#!dV
    port: 6379
#    cluster:
#      nodes: 127.0.0.1:6379
    lettuce:
      pool:
        max-active: 200
        max-idle: 10
        max-wait: -1ms
        min-idle: 5
    timeout: 5000ms
#机器ID编号用于生成分布式ID
workerId: 0
#极光推送
jg:
  appkey: 2a733c0c2aad9be329d5be04
  secret: ec70e5f8db9324b27cb8f0df
gc-sys/src/main/resources/application-xc.yml
New file
@@ -0,0 +1,35 @@
spring:
  rabbitmq:
    host: 120.27.238.55
    port: 5672
    username: ct_rabbit
    password: 123456
    virtual-host: /
  datasource:
    url: jdbc:mysql://120.27.238.55:3306/db_xzx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useAffectedRows=true
    username: ct_test
    password: 123456
  redis:
    database: 5
    host: 121.37.162.173
    password: d32ncxe@i3#!dV
    port: 6379
#    cluster:
#      nodes: 127.0.0.1:6379
    lettuce:
      pool:
        max-active: 200
        max-idle: 10
        max-wait: -1ms
        min-idle: 5
    timeout: 5000ms
#机器ID编号用于生成分布式ID
workerId: 0
#极光推送
jg:
  appkey: 2a733c0c2aad9be329d5be04
  secret: ec70e5f8db9324b27cb8f0df
gc-user/src/main/resources/application-xc.yml
New file
@@ -0,0 +1,35 @@
spring:
  rabbitmq:
    host: 120.27.238.55
    port: 5672
    username: ct_rabbit
    password: 123456
    virtual-host: /
  datasource:
    url: jdbc:mysql://120.27.238.55:3306/db_xzx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useAffectedRows=true
    username: ct_test
    password: 123456
  redis:
    database: 5
    host: 121.37.162.173
    password: d32ncxe@i3#!dV
    port: 6379
#    cluster:
#      nodes: 127.0.0.1:6379
    lettuce:
      pool:
        max-active: 200
        max-idle: 10
        max-wait: -1ms
        min-idle: 5
    timeout: 5000ms
#机器ID编号用于生成分布式ID
workerId: 0
#极光推送
jg:
  appkey: 2a733c0c2aad9be329d5be04
  secret: ec70e5f8db9324b27cb8f0df