Prechádzať zdrojové kódy

修改数据库配置

yumeng 4 mesiacov pred
rodič
commit
ad33afe63d

+ 2 - 2
jeecg-boot-bytedance-ad/src/main/resources/application-prod.yml

@@ -107,8 +107,8 @@ spring:
         connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
       datasource:
         master:
-          url: jdbc:mysql://139.186.27.96:4000/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
-          username: data
+          url: jdbc:mysql://172.30.0.36:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
+          username: hcst
           password: hcst@2021
           driver-class-name: com.mysql.jdbc.Driver
   #redis 配置

+ 3 - 3
jeecg-boot-finance/src/main/resources/application-dev.yml

@@ -110,9 +110,9 @@ spring:
           #url: jdbc:mysql://139.186.165.84:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
           #username: hcst
           #password: hcst@2020
-          url: jdbc:mysql://139.186.27.96:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
-          username: data
-          password: hcst@2021
+          url: jdbc:mysql://172.30.0.36:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
+          username: hcst
+          password: hcst@2025
           driver-class-name: com.mysql.jdbc.Driver
           # 多数据源配置
         multi-datasource1:

+ 3 - 3
jeecg-boot-finance/src/main/resources/application-prod.yml

@@ -106,9 +106,9 @@ spring:
         connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
       datasource:
         master:
-          url: jdbc:mysql://139.186.27.96:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
-          username: data
-          password: hcst@2021
+          url: jdbc:mysql://172.30.0.36:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
+          username: hcst
+          password: hcst@2025
           driver-class-name: com.mysql.jdbc.Driver
 #        multi-datasource1:
 #          url: jdbc:mysql://111.204.208.194:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true&serverTimezone=GMT%2B8

+ 28 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/service/impl/CorpWeixinServiceImpl.java

@@ -13,7 +13,7 @@ import org.springframework.stereotype.Service;
 @Slf4j
 @Service
 public class CorpWeixinServiceImpl implements ICorpWeixinService {
-    public static void main(String[] args) {
+/*    public static void main(String[] args) {
         val configStorage = new WxCpDefaultConfigImpl();
         configStorage.setCorpId("ww24b8a47826f5875f");
         configStorage.setAgentId(1000017);
@@ -36,5 +36,32 @@ public class CorpWeixinServiceImpl implements ICorpWeixinService {
             e.printStackTrace();
         }
 
+    }*/
+
+
+    public static void main(String[] args) {
+        val configStorage = new WxCpDefaultConfigImpl();
+        configStorage.setCorpId("ww24b8a47826f5875f");
+        configStorage.setAgentId(1000004);
+        configStorage.setCorpSecret("1YWGDtuZWrQDl6US3OPHG8_pvuNgP1TeUsOmfRk6GmQ");
+       /* configStorage.setToken("hcst2019");
+        configStorage.setAesKey("hcst2019");*/
+        val service = new WxCpServiceImpl();
+
+        service.setWxCpConfigStorage(configStorage);
+        WxCpOAuth2Service wxCpOAuth2Service = new WxCpOAuth2ServiceImpl(service);
+        try {
+            WxCpMessage message = new WxCpMessage();
+            message.setToUser("YuMeng");
+            message.setAgentId(1000004);
+            message.setContent("测试消息");
+            message.setMsgType("text");
+            service.messageSend(message);
+//            service.post("https://qyapi.weixin.qq.com/cgi-bin/message/send","touser=YiErSanSi&content=123&agentid=1000002&msgtype=text");
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
     }
+
 }

+ 3 - 3
jeecg-boot-report/src/main/resources/application-dev.yml

@@ -105,9 +105,9 @@ spring:
         connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
       datasource:
         master:
-          url: jdbc:mysql://139.186.27.96:3390/application?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
-          username: data
-          password: hcst@2021
+          url: jdbc:mysql://172.30.0.36:3390/application?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
+          username: hcst
+          password: hcst@2025
           driver-class-name: com.mysql.jdbc.Driver
   #redis 配置
   redis:

+ 3 - 3
jeecg-boot-report/src/main/resources/application-prod.yml

@@ -105,9 +105,9 @@ spring:
         connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
       datasource:
         master:
-          url: jdbc:mysql://139.186.27.96:3390/application?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
-          username: data
-          password: hcst@2021
+          url: jdbc:mysql://172.30.0.36:3390/application?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
+          username: hcst
+          password: hcst@2025
           driver-class-name: com.mysql.jdbc.Driver
   #redis 配置
   redis:

+ 3 - 3
jeecg-cloud-module/jeecg-cloud-nacos/src/main/resources/application-prod.yml

@@ -4,11 +4,11 @@ spring:
 db:
   num: 1
   password:
-    '0': hcst@2021
+    '0': hcst@2025
   url:
-    '0': jdbc:mysql://139.186.27.96:3390/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
+    '0': jdbc:mysql://172.30.0.36:3390/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
   user:
-    '0': data
+    '0': hcst
 management:
   metrics:
     export:

+ 1 - 9
jeecg-cloud-module/jeecg-cloud-system-start/src/main/resources/application-dev.yml

@@ -76,15 +76,7 @@ spring:
   autoconfigure:
     exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
   datasource:
-    #---------------------线上库
-    #    url: jdbc:mysql://139.186.27.96:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
-    #    username: readonly
-    #    password: hcst@2021
-    #---------------------测试库
-    #    url: jdbc:mysql://139.186.165.84:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true
-    #    username: hcst
-    #    password: hcst@2020
-    #    driver-class-name: com.mysql.jdbc.Driver
+
     druid:
       stat-view-servlet:
         loginUsername: admin

+ 8 - 8
jeecg-cloud-module/jeecg-cloud-system-start/src/main/resources/application-prod.yml

@@ -76,9 +76,9 @@ spring:
   autoconfigure:
     exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
   datasource:
-    url: jdbc:mysql://172.30.0.4:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
-    username: data
-    password: hcst@2021
+    url: jdbc:mysql://172.30.0.36:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
+    username: hcst
+    password: hcst@2025
     driver-class-name: com.mysql.jdbc.Driver
     druid:
       stat-view-servlet:
@@ -116,9 +116,9 @@ spring:
         connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
       datasource:
         master:
-          url: jdbc:mysql://172.30.0.4:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
-          username: data
-          password: hcst@2021
+          url: jdbc:mysql://172.30.0.36:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
+          username: hcst
+          password: hcst@2025
           driver-class-name: com.mysql.jdbc.Driver
   #redis 配置
   redis:
@@ -262,8 +262,8 @@ bytedance:
     advertiser-fund-daily-stat: /2/advertiser/fund/daily_stat/
 ai:
   callback:
-    callback-unit-url: http://139.186.27.96:31012/ai_callback_add_group
-    callback-creative-url: http://139.186.27.96:31012/ai_callback_add_creative
+    callback-unit-url: http://172.30.0.36:31012/ai_callback_add_group
+    callback-creative-url: http://172.30.0.36:31012/ai_callback_add_creative
 xxl-job:
   requestUrl: http://jiaoyangapi.shyouteng.com.cn
 rule:

+ 3 - 3
jeecg-cloud-module/jeecg-cloud-system-start/src/main/resources/application-test.yml

@@ -122,9 +122,9 @@ spring:
           driver-class-name: com.mysql.jdbc.Driver
 
           #---------------------线上库
-#          url: jdbc:mysql://139.186.27.96:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
-#          username: data
-#          password: hcst@2021
+#          url: jdbc:mysql://172.30.0.36:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
+#          username: hcst
+#          password: hcst@2025
 
 
   #redis 配置