From 4d8f1082ec1ab38278abf1e001a24a0223523eb2 Mon Sep 17 00:00:00 2001 From: xiaonan <13733918655@163.com> Date: Tue, 28 May 2024 22:31:44 +0800 Subject: [PATCH 01/12] =?UTF-8?q?fix=EF=BC=9Aconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/filters/config-dev.properties | 29 +++++++++++----------- src/main/filters/config-prod.properties | 23 ++++++++--------- src/main/filters/config-release.properties | 18 ++++++++++++++ src/main/filters/config-test.properties | 18 ++++++++++++++ 4 files changed, 61 insertions(+), 27 deletions(-) create mode 100644 src/main/filters/config-release.properties create mode 100644 src/main/filters/config-test.properties diff --git a/src/main/filters/config-dev.properties b/src/main/filters/config-dev.properties index e094f488..47fb8ca8 100644 --- a/src/main/filters/config-dev.properties +++ b/src/main/filters/config-dev.properties @@ -1,19 +1,18 @@ -# \u5728\u8FD9\u4E2A\u914D\u7F6E\u6587\u4EF6\u4E2D\u914D\u7F6E\u7684\u5C5E\u6027\uFF0C\u662F\u6240\u6709\u670D\u52A1\u5747\u9700\u8981\u7684\u7EDF\u4E00\u7684\u914D\u7F6E\uFF0C\u4E14\u4E0D\u80FD\u914D\u7F6E\u5728nacos\u4E2D -# \u5FAE\u670D\u52A1\u5BA2\u6237\u7AEF\u9700\u8981 \u914D\u7F6E\u7684 nacos \u670D\u52A1\u7AEF\u7684ip\u7B49\u4FE1\u606F -nacos.ip=124.223.113.139 -nacos.port=18848 -# \u72EC\u7ACB\u547D\u540D\u7A7A\u95F4\u907F\u514D\u8DDF\u522B\u7684\u9879\u76EE\u51B2\u7A81 -nacos.namespace=9507457f-fe75-43ad-a48a-40f6ffc60b8f -nacos.username=thinglinks-test -nacos.password=12345678 +# 在这个配置文件中配置的属性,是所有服务均需要的统一的配置,且不能配置在nacos中 +# 微服务客户端需要配置的nacos服务端的ip等信息 +nacos.ip=127.0.0.1 +nacos.port=8848 +nacos.namespace=7b0a0646-fdeb-483f-b4c8-9024f8920be9 +nacos.username=nacos +nacos.password=nacos -# seata \u5BA2\u6237\u7AEF\u4ECE nacos \u62C9\u53D6\u914D\u7F6E\u548C\u6CE8\u518C\u7684\u547D\u540D\u7A7A\u95F4 \u8DDF nacos.namespace \u533A\u5206\u51FA\u6765\uFF0C\u539F\u56E0\u662F seata -seata.namespace=23a01bfb-11c2-4a33-811f-8b57131a4d10 -# seata \u7684 grouplist ip +# seata 客户端从 nacos 拉取配置和注册的命名空间 跟 nacos.namespace 区分开来,原因为 seata +seata.namespace=f65008d9-37f1-45ce-88eb-fba641041065 +# seata 的 grouplist ip seata.ip=127.0.0.1 -# seata \u7684 grouplist \u7AEF\u53E3 +# seata 的 grouplist 端口 seata.port=8091 -# \u65E5\u5FD7\u5B58\u50A8\u8DEF\u5F84 -logging.file.path=/usr/local/mqtts/logs -# sentinel \u63A7\u5236\u53F0 +# 日志存储路径 +logging.file.path=/data01/mqttsnet/data_dev/logs +# sentinel 控制台的地址 sentinel.dashboard=127.0.0.1:8088 diff --git a/src/main/filters/config-prod.properties b/src/main/filters/config-prod.properties index 9b7c78e0..b73a891b 100644 --- a/src/main/filters/config-prod.properties +++ b/src/main/filters/config-prod.properties @@ -1,19 +1,18 @@ -# \u5728\u8FD9\u4E2A\u914D\u7F6E\u6587\u4EF6\u4E2D\u914D\u7F6E\u7684\u5C5E\u6027\uFF0C\u662F\u6240\u6709\u670D\u52A1\u5747\u9700\u8981\u7684\u7EDF\u4E00\u7684\u914D\u7F6E\uFF0C\u4E14\u4E0D\u80FD\u914D\u7F6E\u5728nacos\u4E2D -# \u5FAE\u670D\u52A1\u5BA2\u6237\u7AEF\u9700\u8981 \u914D\u7F6E\u7684 nacos \u670D\u52A1\u7AEF\u7684ip\u7B49\u4FE1\u606F +# 在这个配置文件中配置的属性,是所有服务均需要的统一的配置,且不能配置在nacos中 +# 微服务客户端需要配置的nacos服务端的ip等信息 nacos.ip=127.0.0.1 nacos.port=8848 -# \u72EC\u7ACB\u547D\u540D\u7A7A\u95F4\u907F\u514D\u8DDF\u522B\u7684\u9879\u76EE\u51B2\u7A81 -nacos.namespace=23a01bfb-11c2-4a33-811f-8b57131a4d10 +nacos.namespace=7b0a0646-fdeb-483f-b4c8-9024f8920be9 nacos.username=nacos -nacos.password=123456 +nacos.password=nacos -# seata \u5BA2\u6237\u7AEF\u4ECE nacos \u62C9\u53D6\u914D\u7F6E\u548C\u6CE8\u518C\u7684\u547D\u540D\u7A7A\u95F4 \u8DDF nacos.namespace \u533A\u5206\u51FA\u6765\uFF0C\u539F\u56E0\u662F seata -seata.namespace=23a01bfb-11c2-4a33-811f-8b57131a4d10 -# seata \u7684 grouplist ip +# seata 客户端从 nacos 拉取配置和注册的命名空间 跟 nacos.namespace 区分开来,原因为 seata +seata.namespace=f65008d9-37f1-45ce-88eb-fba641041065 +# seata 的 grouplist ip seata.ip=127.0.0.1 -# seata \u7684 grouplist \u7AEF\u53E3 +# seata 的 grouplist 端口 seata.port=8091 -# \u65E5\u5FD7\u5B58\u50A8\u8DEF\u5F84 -logging.file.path=/usr/local/mqtts/logs -# sentinel \u63A7\u5236\u53F0 +# 日志存储路径 +logging.file.path=/data01/mqttsnet/data_prod/logs +# sentinel 控制台的地址 sentinel.dashboard=127.0.0.1:8088 diff --git a/src/main/filters/config-release.properties b/src/main/filters/config-release.properties new file mode 100644 index 00000000..2c08546d --- /dev/null +++ b/src/main/filters/config-release.properties @@ -0,0 +1,18 @@ +# 在这个配置文件中配置的属性,是所有服务均需要的统一的配置,且不能配置在nacos中 +# 微服务客户端需要配置的nacos服务端的ip等信息 +nacos.ip=127.0.0.1 +nacos.port=8848 +nacos.namespace=7b0a0646-fdeb-483f-b4c8-9024f8920be9 +nacos.username=nacos +nacos.password=nacos + +# seata 客户端从 nacos 拉取配置和注册的命名空间 跟 nacos.namespace 区分开来,原因为 seata +seata.namespace=f65008d9-37f1-45ce-88eb-fba641041065 +# seata 的 grouplist ip +seata.ip=127.0.0.1 +# seata 的 grouplist 端口 +seata.port=8091 +# 日志存储路径 +logging.file.path=/data01/mqttsnet/data_release/logs +# sentinel 控制台的地址 +sentinel.dashboard=127.0.0.1:8088 diff --git a/src/main/filters/config-test.properties b/src/main/filters/config-test.properties new file mode 100644 index 00000000..a5a82b49 --- /dev/null +++ b/src/main/filters/config-test.properties @@ -0,0 +1,18 @@ +# 在这个配置文件中配置的属性,是所有服务均需要的统一的配置,且不能配置在nacos中 +# 微服务客户端需要配置的nacos服务端的ip等信息 +nacos.ip=127.0.0.1 +nacos.port=8848 +nacos.namespace=7b0a0646-fdeb-483f-b4c8-9024f8920be9 +nacos.username=nacos +nacos.password=nacos + +# seata 客户端从 nacos 拉取配置和注册的命名空间 跟 nacos.namespace 区分开来,原因为 seata +seata.namespace=f65008d9-37f1-45ce-88eb-fba641041065 +# seata 的 grouplist ip +seata.ip=127.0.0.1 +# seata 的 grouplist 端口 +seata.port=8091 +# 日志存储路径 +logging.file.path=/data01/mqttsnet/data_test/logs +# sentinel 控制台的地址 +sentinel.dashboard=127.0.0.1:8088 From cc8c42cfce33548dee57395dad93dda95f4cc1d4 Mon Sep 17 00:00:00 2001 From: xiaonan <13733918655@163.com> Date: Wed, 29 May 2024 15:47:50 +0800 Subject: [PATCH 02/12] feat: jdk17 --- pom.xml | 4 ++-- .../core/dynamicCompilation/bytecode/InjectionSystem.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 7b5a2b35..b6632370 100644 --- a/pom.xml +++ b/pom.xml @@ -48,8 +48,8 @@ UTF-8 UTF-8 - 1.8 - 1.8 + 17 + 17 1.4.12 mqttsnet diff --git a/thinglinks-common/thinglinks-common-core/src/main/java/com/mqttsnet/thinglinks/common/core/dynamicCompilation/bytecode/InjectionSystem.java b/thinglinks-common/thinglinks-common-core/src/main/java/com/mqttsnet/thinglinks/common/core/dynamicCompilation/bytecode/InjectionSystem.java index d0043b76..f0dde05a 100644 --- a/thinglinks-common/thinglinks-common-core/src/main/java/com/mqttsnet/thinglinks/common/core/dynamicCompilation/bytecode/InjectionSystem.java +++ b/thinglinks-common/thinglinks-common-core/src/main/java/com/mqttsnet/thinglinks/common/core/dynamicCompilation/bytecode/InjectionSystem.java @@ -148,7 +148,7 @@ public static void runFinalization() { @Deprecated public static void runFinalizersOnExit(boolean value) { - System.runFinalizersOnExit(value); + System.gc(); } public static void load(String filename) { From 1f26649a5f28e2a5541567110c4bc80440d10e4f Mon Sep 17 00:00:00 2001 From: xiaonan <13733918655@163.com> Date: Wed, 29 May 2024 22:21:13 +0800 Subject: [PATCH 03/12] =?UTF-8?q?fix=EF=BC=9Adockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- thinglinks-auth/Dockerfile | 2 +- thinglinks-gateway/Dockerfile | 2 +- thinglinks-modules/thinglinks-modules-broker/Dockerfile | 2 +- thinglinks-modules/thinglinks-modules-file/Dockerfile | 2 +- thinglinks-modules/thinglinks-modules-gen/Dockerfile | 2 +- thinglinks-modules/thinglinks-modules-job/Dockerfile | 2 +- thinglinks-modules/thinglinks-modules-link/Dockerfile | 2 +- .../thinglinks-modules-protocolAnalysis/Dockerfile | 2 +- thinglinks-modules/thinglinks-modules-rule/Dockerfile | 2 +- thinglinks-modules/thinglinks-modules-system/Dockerfile | 2 +- thinglinks-modules/thinglinks-modules-tdengine/Dockerfile | 2 +- thinglinks-visual/thinglinks-visual-monitor/Dockerfile | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/thinglinks-auth/Dockerfile b/thinglinks-auth/Dockerfile index aff2d01d..693690b7 100644 --- a/thinglinks-auth/Dockerfile +++ b/thinglinks-auth/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-gateway/Dockerfile b/thinglinks-gateway/Dockerfile index e752c35f..6753db34 100644 --- a/thinglinks-gateway/Dockerfile +++ b/thinglinks-gateway/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-modules/thinglinks-modules-broker/Dockerfile b/thinglinks-modules/thinglinks-modules-broker/Dockerfile index a15756ed..d65e7cd4 100644 --- a/thinglinks-modules/thinglinks-modules-broker/Dockerfile +++ b/thinglinks-modules/thinglinks-modules-broker/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-modules/thinglinks-modules-file/Dockerfile b/thinglinks-modules/thinglinks-modules-file/Dockerfile index bc8b52d6..b1fc44a6 100644 --- a/thinglinks-modules/thinglinks-modules-file/Dockerfile +++ b/thinglinks-modules/thinglinks-modules-file/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-modules/thinglinks-modules-gen/Dockerfile b/thinglinks-modules/thinglinks-modules-gen/Dockerfile index 9cfd022a..f12e3e19 100644 --- a/thinglinks-modules/thinglinks-modules-gen/Dockerfile +++ b/thinglinks-modules/thinglinks-modules-gen/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-modules/thinglinks-modules-job/Dockerfile b/thinglinks-modules/thinglinks-modules-job/Dockerfile index 929d5563..77322284 100644 --- a/thinglinks-modules/thinglinks-modules-job/Dockerfile +++ b/thinglinks-modules/thinglinks-modules-job/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-modules/thinglinks-modules-link/Dockerfile b/thinglinks-modules/thinglinks-modules-link/Dockerfile index c146a54c..76249d84 100644 --- a/thinglinks-modules/thinglinks-modules-link/Dockerfile +++ b/thinglinks-modules/thinglinks-modules-link/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-modules/thinglinks-modules-protocolAnalysis/Dockerfile b/thinglinks-modules/thinglinks-modules-protocolAnalysis/Dockerfile index 3dd28467..a6a50ab8 100644 --- a/thinglinks-modules/thinglinks-modules-protocolAnalysis/Dockerfile +++ b/thinglinks-modules/thinglinks-modules-protocolAnalysis/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-modules/thinglinks-modules-rule/Dockerfile b/thinglinks-modules/thinglinks-modules-rule/Dockerfile index b127d225..fe156077 100644 --- a/thinglinks-modules/thinglinks-modules-rule/Dockerfile +++ b/thinglinks-modules/thinglinks-modules-rule/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-modules/thinglinks-modules-system/Dockerfile b/thinglinks-modules/thinglinks-modules-system/Dockerfile index cdcc35ae..8f3814f3 100644 --- a/thinglinks-modules/thinglinks-modules-system/Dockerfile +++ b/thinglinks-modules/thinglinks-modules-system/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-modules/thinglinks-modules-tdengine/Dockerfile b/thinglinks-modules/thinglinks-modules-tdengine/Dockerfile index 4d6a6f95..3dd95943 100644 --- a/thinglinks-modules/thinglinks-modules-tdengine/Dockerfile +++ b/thinglinks-modules/thinglinks-modules-tdengine/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" diff --git a/thinglinks-visual/thinglinks-visual-monitor/Dockerfile b/thinglinks-visual/thinglinks-visual-monitor/Dockerfile index 23bdce89..d589bd59 100644 --- a/thinglinks-visual/thinglinks-visual-monitor/Dockerfile +++ b/thinglinks-visual/thinglinks-visual-monitor/Dockerfile @@ -1,5 +1,5 @@ # 使用 Java 运行环境 -FROM openjdk:8-jre +FROM eclipse-temurin:17-jre # 维护者信息 LABEL maintainer="mqttsnet mqttsnet@163.com" From 8bb9c1e835265a255a88b89541c2508f302b2049 Mon Sep 17 00:00:00 2001 From: xiaonan <13733918655@163.com> Date: Wed, 29 May 2024 23:31:44 +0800 Subject: [PATCH 04/12] =?UTF-8?q?fix=EF=BC=9Ayml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/bootstrap.yml | 24 ++++++------ .../src/main/resources/logback.xml | 36 ++++++------------ .../src/main/resources/bootstrap.yml | 32 ++++++++-------- .../src/main/resources/logback.xml | 36 ++++++------------ .../src/main/resources/bootstrap.yml | 22 +++++------ .../src/main/resources/logback.xml | 36 ++++++------------ .../src/main/resources/bootstrap.yml | 24 ++++++------ .../src/main/resources/logback.xml | 36 ++++++------------ .../src/main/resources/bootstrap.yml | 24 ++++++------ .../src/main/resources/logback.xml | 36 ++++++------------ .../src/main/resources/bootstrap.yml | 24 ++++++------ .../src/main/resources/logback.xml | 36 ++++++------------ .../src/main/resources/bootstrap.yml | 24 ++++++------ .../src/main/resources/logback.xml | 36 ++++++------------ .../src/main/resources/bootstrap.yml | 24 ++++++------ .../src/main/resources/logback.xml | 36 ++++++------------ .../src/main/resources/bootstrap.yml | 22 +++++------ .../src/main/resources/logback.xml | 36 ++++++------------ .../src/main/resources/bootstrap.yml | 24 ++++++------ .../src/main/resources/logback.xml | 38 +++++++------------ .../src/main/resources/bootstrap.yml | 22 +++++------ .../src/main/resources/logback.xml | 36 ++++++------------ 22 files changed, 266 insertions(+), 398 deletions(-) diff --git a/thinglinks-auth/src/main/resources/bootstrap.yml b/thinglinks-auth/src/main/resources/bootstrap.yml index 10dadc37..df0ded1e 100644 --- a/thinglinks-auth/src/main/resources/bootstrap.yml +++ b/thinglinks-auth/src/main/resources/bootstrap.yml @@ -1,11 +1,11 @@ # Spring -spring: +spring: application: # 应用名称 name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -33,5 +33,5 @@ spring: refresh: false - dataId: database.yml refresh: true - username: @nacos.username@ - password: @nacos.password@ + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} diff --git a/thinglinks-auth/src/main/resources/logback.xml b/thinglinks-auth/src/main/resources/logback.xml index 96a75ce3..1b44fc41 100644 --- a/thinglinks-auth/src/main/resources/logback.xml +++ b/thinglinks-auth/src/main/resources/logback.xml @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - diff --git a/thinglinks-gateway/src/main/resources/bootstrap.yml b/thinglinks-gateway/src/main/resources/bootstrap.yml index 5e202c77..8c62c85b 100644 --- a/thinglinks-gateway/src/main/resources/bootstrap.yml +++ b/thinglinks-gateway/src/main/resources/bootstrap.yml @@ -1,11 +1,11 @@ # Spring -spring: +spring: application: # 应用名称 name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -33,21 +33,21 @@ spring: refresh: false - dataId: database.yml refresh: true - username: @nacos.username@ - password: @nacos.password@ + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} sentinel: # 取消控制台懒加载 eager: false transport: # 控制台地址 - dashboard: @sentinel.dashboard@ + dashboard: ${SENTINEL_DASHBOARD:@sentinel.dashboard@} # nacos配置持久化 datasource: ds1: nacos: - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} dataId: sentinel-thinglinks-gateway groupId: DEFAULT_GROUP data-type: json diff --git a/thinglinks-gateway/src/main/resources/logback.xml b/thinglinks-gateway/src/main/resources/logback.xml index 33a5dbd6..df8df7e6 100644 --- a/thinglinks-gateway/src/main/resources/logback.xml +++ b/thinglinks-gateway/src/main/resources/logback.xml @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - diff --git a/thinglinks-modules/thinglinks-modules-broker/src/main/resources/bootstrap.yml b/thinglinks-modules/thinglinks-modules-broker/src/main/resources/bootstrap.yml index 91424fcc..8f488424 100644 --- a/thinglinks-modules/thinglinks-modules-broker/src/main/resources/bootstrap.yml +++ b/thinglinks-modules/thinglinks-modules-broker/src/main/resources/bootstrap.yml @@ -5,7 +5,7 @@ spring: name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -37,5 +37,5 @@ spring: refresh: false - dataId: rocketmq.yml refresh: false - username: @nacos.username@ - password: @nacos.password@ \ No newline at end of file + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} diff --git a/thinglinks-modules/thinglinks-modules-broker/src/main/resources/logback.xml b/thinglinks-modules/thinglinks-modules-broker/src/main/resources/logback.xml index d3611a22..1e118a5e 100644 --- a/thinglinks-modules/thinglinks-modules-broker/src/main/resources/logback.xml +++ b/thinglinks-modules/thinglinks-modules-broker/src/main/resources/logback.xml @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - diff --git a/thinglinks-modules/thinglinks-modules-file/src/main/resources/bootstrap.yml b/thinglinks-modules/thinglinks-modules-file/src/main/resources/bootstrap.yml index 8cba77e6..d36b893c 100644 --- a/thinglinks-modules/thinglinks-modules-file/src/main/resources/bootstrap.yml +++ b/thinglinks-modules/thinglinks-modules-file/src/main/resources/bootstrap.yml @@ -1,11 +1,11 @@ # Spring -spring: +spring: application: # 应用名称 name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -35,5 +35,5 @@ spring: refresh: true - dataId: rocketmq.yml refresh: false - username: @nacos.username@ - password: @nacos.password@ \ No newline at end of file + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} diff --git a/thinglinks-modules/thinglinks-modules-file/src/main/resources/logback.xml b/thinglinks-modules/thinglinks-modules-file/src/main/resources/logback.xml index 2673f9cf..76a12121 100644 --- a/thinglinks-modules/thinglinks-modules-file/src/main/resources/logback.xml +++ b/thinglinks-modules/thinglinks-modules-file/src/main/resources/logback.xml @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - diff --git a/thinglinks-modules/thinglinks-modules-gen/src/main/resources/bootstrap.yml b/thinglinks-modules/thinglinks-modules-gen/src/main/resources/bootstrap.yml index 8cba77e6..d36b893c 100644 --- a/thinglinks-modules/thinglinks-modules-gen/src/main/resources/bootstrap.yml +++ b/thinglinks-modules/thinglinks-modules-gen/src/main/resources/bootstrap.yml @@ -1,11 +1,11 @@ # Spring -spring: +spring: application: # 应用名称 name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -35,5 +35,5 @@ spring: refresh: true - dataId: rocketmq.yml refresh: false - username: @nacos.username@ - password: @nacos.password@ \ No newline at end of file + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} diff --git a/thinglinks-modules/thinglinks-modules-gen/src/main/resources/logback.xml b/thinglinks-modules/thinglinks-modules-gen/src/main/resources/logback.xml index 561745e3..f957f1f3 100644 --- a/thinglinks-modules/thinglinks-modules-gen/src/main/resources/logback.xml +++ b/thinglinks-modules/thinglinks-modules-gen/src/main/resources/logback.xml @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - diff --git a/thinglinks-modules/thinglinks-modules-job/src/main/resources/bootstrap.yml b/thinglinks-modules/thinglinks-modules-job/src/main/resources/bootstrap.yml index 8cba77e6..d36b893c 100644 --- a/thinglinks-modules/thinglinks-modules-job/src/main/resources/bootstrap.yml +++ b/thinglinks-modules/thinglinks-modules-job/src/main/resources/bootstrap.yml @@ -1,11 +1,11 @@ # Spring -spring: +spring: application: # 应用名称 name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -35,5 +35,5 @@ spring: refresh: true - dataId: rocketmq.yml refresh: false - username: @nacos.username@ - password: @nacos.password@ \ No newline at end of file + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} diff --git a/thinglinks-modules/thinglinks-modules-job/src/main/resources/logback.xml b/thinglinks-modules/thinglinks-modules-job/src/main/resources/logback.xml index e7453818..13fcec55 100644 --- a/thinglinks-modules/thinglinks-modules-job/src/main/resources/logback.xml +++ b/thinglinks-modules/thinglinks-modules-job/src/main/resources/logback.xml @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - diff --git a/thinglinks-modules/thinglinks-modules-link/src/main/resources/bootstrap.yml b/thinglinks-modules/thinglinks-modules-link/src/main/resources/bootstrap.yml index dd7fcb63..b3e366e7 100644 --- a/thinglinks-modules/thinglinks-modules-link/src/main/resources/bootstrap.yml +++ b/thinglinks-modules/thinglinks-modules-link/src/main/resources/bootstrap.yml @@ -1,11 +1,11 @@ # Spring -spring: +spring: application: # 应用名称 name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -37,5 +37,5 @@ spring: refresh: false - dataId: kafka.yml refresh: false - username: @nacos.username@ - password: @nacos.password@ + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} diff --git a/thinglinks-modules/thinglinks-modules-link/src/main/resources/logback.xml b/thinglinks-modules/thinglinks-modules-link/src/main/resources/logback.xml index 5585855d..9c9a6c50 100644 --- a/thinglinks-modules/thinglinks-modules-link/src/main/resources/logback.xml +++ b/thinglinks-modules/thinglinks-modules-link/src/main/resources/logback.xml @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - diff --git a/thinglinks-modules/thinglinks-modules-protocolAnalysis/src/main/resources/bootstrap.yml b/thinglinks-modules/thinglinks-modules-protocolAnalysis/src/main/resources/bootstrap.yml index 8cba77e6..d36b893c 100644 --- a/thinglinks-modules/thinglinks-modules-protocolAnalysis/src/main/resources/bootstrap.yml +++ b/thinglinks-modules/thinglinks-modules-protocolAnalysis/src/main/resources/bootstrap.yml @@ -1,11 +1,11 @@ # Spring -spring: +spring: application: # 应用名称 name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -35,5 +35,5 @@ spring: refresh: true - dataId: rocketmq.yml refresh: false - username: @nacos.username@ - password: @nacos.password@ \ No newline at end of file + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} diff --git a/thinglinks-modules/thinglinks-modules-protocolAnalysis/src/main/resources/logback.xml b/thinglinks-modules/thinglinks-modules-protocolAnalysis/src/main/resources/logback.xml index d963cbbe..2d2faa85 100644 --- a/thinglinks-modules/thinglinks-modules-protocolAnalysis/src/main/resources/logback.xml +++ b/thinglinks-modules/thinglinks-modules-protocolAnalysis/src/main/resources/logback.xml @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - diff --git a/thinglinks-modules/thinglinks-modules-rule/src/main/resources/bootstrap.yml b/thinglinks-modules/thinglinks-modules-rule/src/main/resources/bootstrap.yml index 34e7f925..d36b893c 100644 --- a/thinglinks-modules/thinglinks-modules-rule/src/main/resources/bootstrap.yml +++ b/thinglinks-modules/thinglinks-modules-rule/src/main/resources/bootstrap.yml @@ -5,7 +5,7 @@ spring: name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -35,5 +35,5 @@ spring: refresh: true - dataId: rocketmq.yml refresh: false - username: @nacos.username@ - password: @nacos.password@ \ No newline at end of file + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} diff --git a/thinglinks-modules/thinglinks-modules-rule/src/main/resources/logback.xml b/thinglinks-modules/thinglinks-modules-rule/src/main/resources/logback.xml index 4ce73c70..bddbf680 100644 --- a/thinglinks-modules/thinglinks-modules-rule/src/main/resources/logback.xml +++ b/thinglinks-modules/thinglinks-modules-rule/src/main/resources/logback.xml @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - diff --git a/thinglinks-modules/thinglinks-modules-system/src/main/resources/bootstrap.yml b/thinglinks-modules/thinglinks-modules-system/src/main/resources/bootstrap.yml index 8cba77e6..d36b893c 100644 --- a/thinglinks-modules/thinglinks-modules-system/src/main/resources/bootstrap.yml +++ b/thinglinks-modules/thinglinks-modules-system/src/main/resources/bootstrap.yml @@ -1,11 +1,11 @@ # Spring -spring: +spring: application: # 应用名称 name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -35,5 +35,5 @@ spring: refresh: true - dataId: rocketmq.yml refresh: false - username: @nacos.username@ - password: @nacos.password@ \ No newline at end of file + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} diff --git a/thinglinks-modules/thinglinks-modules-system/src/main/resources/logback.xml b/thinglinks-modules/thinglinks-modules-system/src/main/resources/logback.xml index 49403a19..8a8382a1 100644 --- a/thinglinks-modules/thinglinks-modules-system/src/main/resources/logback.xml +++ b/thinglinks-modules/thinglinks-modules-system/src/main/resources/logback.xml @@ -1,7 +1,7 @@ - + @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - diff --git a/thinglinks-modules/thinglinks-modules-tdengine/src/main/resources/bootstrap.yml b/thinglinks-modules/thinglinks-modules-tdengine/src/main/resources/bootstrap.yml index 36c3e718..458213c6 100644 --- a/thinglinks-modules/thinglinks-modules-tdengine/src/main/resources/bootstrap.yml +++ b/thinglinks-modules/thinglinks-modules-tdengine/src/main/resources/bootstrap.yml @@ -5,7 +5,7 @@ spring: name: @project.artifactId@ profiles: # 环境配置 - active: @spring.profile@ + active: ${SPRING_PROFILES_ACTIVE:@spring.profile@} main: allow-circular-references: true allow-bean-definition-overriding: true @@ -13,16 +13,16 @@ spring: nacos: discovery: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ - username: @nacos.username@ - password: @nacos.password@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} config: # 配置中心地址 - server-addr: @nacos.ip@:@nacos.port@ - #命名空间 - namespace: @nacos.namespace@ + server-addr: ${NACOS_IP:@nacos.ip@}:${NACOS_PORT:@nacos.port@} + # 命名空间 + namespace: ${NACOS_NAMESPACE:@nacos.namespace@} # 配置文件格式 file-extension: yml # 共享配置 @@ -31,5 +31,5 @@ spring: refresh: true - dataId: redis.yml refresh: false - username: @nacos.username@ - password: @nacos.password@ \ No newline at end of file + username: ${NACOS_USERNAME:@nacos.username@} + password: ${NACOS_PASSWORD:@nacos.password@} \ No newline at end of file diff --git a/thinglinks-modules/thinglinks-modules-tdengine/src/main/resources/logback.xml b/thinglinks-modules/thinglinks-modules-tdengine/src/main/resources/logback.xml index 84706b70..0e208334 100644 --- a/thinglinks-modules/thinglinks-modules-tdengine/src/main/resources/logback.xml +++ b/thinglinks-modules/thinglinks-modules-tdengine/src/main/resources/logback.xml @@ -21,11 +21,9 @@ ${log.path}/all.%d{yyyy-MM-dd}.log 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + 100MB @@ -42,11 +40,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + INFO @@ -66,11 +62,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + WARN @@ -90,11 +84,9 @@ 30 - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n - - + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + ERROR @@ -112,10 +104,6 @@ - - - - From c4e73b200bb7c9df470c1c384ee1ad11141114a5 Mon Sep 17 00:00:00 2001 From: xiaonan <13733918655@163.com> Date: Thu, 30 May 2024 09:49:01 +0800 Subject: [PATCH 05/12] =?UTF-8?q?fix=EF=BC=9Ayml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-gen.yml | 2 +- doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-job.yml | 2 +- doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-system.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-gen.yml b/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-gen.yml index f34cbfc7..9fc99383 100755 --- a/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-gen.yml +++ b/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-gen.yml @@ -13,7 +13,7 @@ mybatis: swagger: title: 代码生成接口文档 license: Powered By thinglinks - licenseUrl: https://doc.thinglinks.mqttsnet.com + licenseUrl: http://www.mqttsnet.com/ # 代码生成 gen: diff --git a/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-job.yml b/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-job.yml index f2849120..594cc872 100755 --- a/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-job.yml +++ b/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-job.yml @@ -13,4 +13,4 @@ mybatis: swagger: title: 定时任务接口文档 license: Powered By thinglinks - licenseUrl: https://doc.thinglinks.mqttsnet.com + licenseUrl: http://www.mqttsnet.com/ diff --git a/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-system.yml b/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-system.yml index 5452c0d3..939f7c45 100755 --- a/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-system.yml +++ b/doc/nacos-config/DEFAULT_GROUP/thinglinks-modules-system.yml @@ -13,4 +13,4 @@ mybatis: swagger: title: 系统模块接口文档 license: Powered By thinglinks - licenseUrl: https://doc.thinglinks.mqttsnet.com \ No newline at end of file + licenseUrl: http://www.mqttsnet.com/ \ No newline at end of file From 0efa1a2915597e1723a9a3696ecd52a57edf76a8 Mon Sep 17 00:00:00 2001 From: abang Date: Thu, 30 May 2024 23:17:42 +0800 Subject: [PATCH 06/12] =?UTF-8?q?feat:=E8=AE=BE=E5=A4=87=E5=BD=B1=E5=AD=90?= =?UTF-8?q?=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- thinglinks-ui/.env.development | 2 +- thinglinks-ui/src/api/link/device/device.js | 7 ++- thinglinks-ui/src/api/link/deviceInfo.js | 7 ++- .../src/views/link/device/detail.vue | 48 ++++-------------- .../views/link/deviceInfo/equipmentShadow.vue | 50 +++++-------------- thinglinks-ui/vue.config.js | 4 +- 6 files changed, 33 insertions(+), 85 deletions(-) diff --git a/thinglinks-ui/.env.development b/thinglinks-ui/.env.development index ab110dcc..e73899b8 100644 --- a/thinglinks-ui/.env.development +++ b/thinglinks-ui/.env.development @@ -5,7 +5,7 @@ VUE_APP_TITLE = ThingLinks物联网一体化平台 ENV = 'development' # ThingLinks物联网一体化平台/开发环境 -VUE_APP_BASE_API = '/dev-api' +VUE_APP_BASE_API = '/api' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/thinglinks-ui/src/api/link/device/device.js b/thinglinks-ui/src/api/link/device/device.js index 6941f82e..193cae44 100644 --- a/thinglinks-ui/src/api/link/device/device.js +++ b/thinglinks-ui/src/api/link/device/device.js @@ -79,11 +79,10 @@ export function validationDeviceIdentification_deviceIdentification(deviceIdenti } // 查询普通设备影子数据 -export function getDeviceShadow(data) { +export function getDeviceShadow(deviceIdentification) { return request({ - url: '/link/shadow/getDeviceShadow', - method: 'post', - data: data + url: '/link/shadow/queryDeviceShadow?deviceIdentification=' + deviceIdentification, + method: 'get', }) } // 查询设备告警信息列表 diff --git a/thinglinks-ui/src/api/link/deviceInfo.js b/thinglinks-ui/src/api/link/deviceInfo.js index 34d2f428..ba2567dd 100644 --- a/thinglinks-ui/src/api/link/deviceInfo.js +++ b/thinglinks-ui/src/api/link/deviceInfo.js @@ -44,10 +44,9 @@ export function delDeviceInfo(id) { } // 查询子设备影子数据 -export function getDeviceInfoShadow(data) { +export function getDeviceInfoShadow(deviceIdentification) { return request({ - url: '/link/deviceInfo/getDeviceInfoShadow', - method: 'post', - data: data + url: '/link/shadow/queryDeviceShadow?deviceIdentification=' + deviceIdentification, + method: 'get', }) } diff --git a/thinglinks-ui/src/views/link/device/detail.vue b/thinglinks-ui/src/views/link/device/detail.vue index 6c697f05..9785ed35 100644 --- a/thinglinks-ui/src/views/link/device/detail.vue +++ b/thinglinks-ui/src/views/link/device/detail.vue @@ -150,40 +150,8 @@ - - - - - - - - - - - - - - - - - - - - 格式化 - - - - - + + @@ -194,9 +162,15 @@ import {getDevice, getDeviceShadow} from "@/api/link/device/device"; import Topic from "@/views/link/device/topic"; import Action from "@/views/link/device/action"; +// components +import DeviceShadow from "@/views/components/device/deviceShaDow.vue"; export default { name: "device-detail", - components: {Action, Topic}, + components: { + Action, + Topic, + [DeviceShadow.name]: DeviceShadow, + }, dicts: [ "link_device_device_type", "link_device_connect_status", @@ -239,7 +213,7 @@ export default { activeName(value) { if (value === 'fourth') { this.data.ids = this.deviceId - this.getShadowData() + this.$refs.deviceShaDow.getShadowData() } }, }, @@ -247,7 +221,7 @@ export default { timeControls() { this.data.startTime = this.value1[0] this.data.endTime = this.value1[1] - this.getShadowData() + this.$refs.deviceShaDow.getShadowData() }, // 查询子设备影子数据 getShadowData() { diff --git a/thinglinks-ui/src/views/link/deviceInfo/equipmentShadow.vue b/thinglinks-ui/src/views/link/deviceInfo/equipmentShadow.vue index 194957a5..ed9c1dea 100644 --- a/thinglinks-ui/src/views/link/deviceInfo/equipmentShadow.vue +++ b/thinglinks-ui/src/views/link/deviceInfo/equipmentShadow.vue @@ -100,50 +100,24 @@ - - - - - - - - - - - - - - - - - - - - 格式化 - - - - - + + + From 6ae7551d2ef227009eaba8679b0e30d36c7c0b9f Mon Sep 17 00:00:00 2001 From: abang Date: Wed, 3 Jul 2024 22:57:51 +0800 Subject: [PATCH 09/12] =?UTF-8?q?feat:ota=E5=88=97=E8=A1=A8&=E5=88=A0?= =?UTF-8?q?=E9=99=A4&=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- thinglinks-ui/src/api/link/ota/otaList.js | 22 + thinglinks-ui/src/views/link/ota/index.vue | 972 ++++++++++++++++++ .../src/views/link/ota/mock/otaList.js | 136 +++ 3 files changed, 1130 insertions(+) create mode 100644 thinglinks-ui/src/api/link/ota/otaList.js create mode 100644 thinglinks-ui/src/views/link/ota/index.vue create mode 100644 thinglinks-ui/src/views/link/ota/mock/otaList.js diff --git a/thinglinks-ui/src/api/link/ota/otaList.js b/thinglinks-ui/src/api/link/ota/otaList.js new file mode 100644 index 00000000..3645fa1a --- /dev/null +++ b/thinglinks-ui/src/api/link/ota/otaList.js @@ -0,0 +1,22 @@ +import request from '@/utils/request' +import { + praseStrEmpty +} from "@/utils/thinglinks"; + +// 查询ota列表 +export function listOta(data) { + return request({ + url: '/link/otaUpgrades/page', + method: 'post', + data: data + }) +} + +// 删除ota +export function deleteOta(data) { + return request({ + url: '/link/otaUpgrades', + method: 'delete', + data: data + }) +} \ No newline at end of file diff --git a/thinglinks-ui/src/views/link/ota/index.vue b/thinglinks-ui/src/views/link/ota/index.vue new file mode 100644 index 00000000..7b672ffe --- /dev/null +++ b/thinglinks-ui/src/views/link/ota/index.vue @@ -0,0 +1,972 @@ + + + + diff --git a/thinglinks-ui/src/views/link/ota/mock/otaList.js b/thinglinks-ui/src/views/link/ota/mock/otaList.js new file mode 100644 index 00000000..ef5ba8d8 --- /dev/null +++ b/thinglinks-ui/src/views/link/ota/mock/otaList.js @@ -0,0 +1,136 @@ +export const otaList = + [ + { + "id": "507495642097988661", + "createdTime": "2024-06-14 13:56:59", + "createdBy": "1452186486253289472", + "updatedTime": "2024-06-18 14:14:07", + "updatedBy": "1452186486253289472", + "echoMap": {}, + "appId": "thinglinks-test", + "packageName": "测试11111", + "packageType": 0, + "productIdentification": "4382169500930048", + "version": "1.3.3", + "fileLocation": "507898505735406629", + "status": 0, + "description": "得到的", + "customInfo": "\"{\\\"b\\\":\\\"nn\\\"}\"", + "remark": "wdd", + "createdOrgId": null + }, + { + "id": "501535275462904951", + "createdTime": "2024-05-28 17:19:23", + "createdBy": "1452186486253289472", + "updatedTime": "2024-06-18 18:19:12", + "updatedBy": "1452186486253289472", + "echoMap": {}, + "appId": "thinglinks-test", + "packageName": "测试ota资源包", + "packageType": 0, + "productIdentification": "3819185904996352", + "version": "1.0.0", + "fileLocation": "509030049229431368", + "status": 0, + "description": "描述", + "customInfo": "\"{\\\"A\\\":1}\"", + "remark": "描述", + "createdOrgId": null + }, + { + "id": "497972960863191072", + "createdTime": "2024-05-25 21:22:24", + "createdBy": "1452186486253289472", + "updatedTime": "2024-06-18 18:19:38", + "updatedBy": "1452186486253289472", + "echoMap": {}, + "appId": "thinglinks-test", + "packageName": "测试ota资源包", + "packageType": 0, + "productIdentification": "3819185904996352", + "version": "1.0.0", + "fileLocation": "509030049229431377", + "status": 0, + "description": "描述", + "customInfo": "\"[{\\\"key\\\":\\\"a\\\",\\\"value\\\":\\\"1\\\",\\\"id\\\":1716643319358},{\\\"key\\\":\\\"b\\\",\\\"value\\\":\\\"2\\\",\\\"id\\\":1716643324273}]\"", + "remark": "描述", + "createdOrgId": null + }, + { + "id": "497972960863191061", + "createdTime": "2024-05-25 14:39:33", + "createdBy": "1452186486253289472", + "updatedTime": "2024-06-14 15:27:09", + "updatedBy": "1452186486253289472", + "echoMap": {}, + "appId": "thinglinks-test", + "packageName": "测试自定义参数3", + "packageType": 0, + "productIdentification": "5880804975194112", + "version": "1.2.0", + "fileLocation": "", + "status": 0, + "description": "111", + "customInfo": "[{\"key\":\"a\",\"value\":\"1\",\"id\":1716619156953}]", + "remark": "7654", + "createdOrgId": null + }, + { + "id": "497972960863191060", + "createdTime": "2024-05-25 14:32:59", + "createdBy": "1452186486253289472", + "updatedTime": "2024-06-14 15:26:51", + "updatedBy": "1452186486253289472", + "echoMap": {}, + "appId": "thinglinks-test", + "packageName": "测试自定义参数2(废弃⚠️)", + "packageType": 0, + "productIdentification": "3819185904996352", + "version": "1.1.0", + "fileLocation": "", + "status": 0, + "description": "测试", + "customInfo": "[{\"key\":\"v\",\"value\":\"123\"}]", + "remark": "11111", + "createdOrgId": null + }, + { + "id": "497972960863191058", + "createdTime": "2024-05-23 23:52:10", + "createdBy": "1452186486253289472", + "updatedTime": "2024-06-14 15:26:45", + "updatedBy": "1452186486253289472", + "echoMap": {}, + "appId": "thinglinks-test", + "packageName": "测试12", + "packageType": 0, + "productIdentification": "4382169500930048", + "version": "1.3.0", + "fileLocation": "", + "status": 0, + "description": "1", + "customInfo": "2", + "remark": "3", + "createdOrgId": null + }, + { + "id": "470808946278400012", + "createdTime": "2024-03-15 09:38:29", + "createdBy": "1452186486253289472", + "updatedTime": "2024-06-14 15:26:42", + "updatedBy": "1452186486253289472", + "echoMap": {}, + "appId": "thinglinks-test", + "packageName": "测试包名1", + "packageType": 0, + "productIdentification": "5880804975194112", + "version": "1.4.0", + "fileLocation": "", + "status": 0, + "description": "", + "customInfo": "[{\"key\":\"a\",\"value\":\"1\",\"id\":1716619156953}]", + "remark": "32323", + "createdOrgId": null + } + ]; \ No newline at end of file From 387cb5861406b9d2293cbe7476e7ce268442901e Mon Sep 17 00:00:00 2001 From: abang Date: Wed, 3 Jul 2024 23:00:26 +0800 Subject: [PATCH 10/12] =?UTF-8?q?chore:=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- thinglinks-ui/src/views/components/device/deviceShaDow.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thinglinks-ui/src/views/components/device/deviceShaDow.vue b/thinglinks-ui/src/views/components/device/deviceShaDow.vue index 448ec0ac..14855f73 100644 --- a/thinglinks-ui/src/views/components/device/deviceShaDow.vue +++ b/thinglinks-ui/src/views/components/device/deviceShaDow.vue @@ -8,7 +8,7 @@ {{ value.serviceName }} {{ value.description }} - 123 +
@@ -351,246 +351,124 @@ :visible.sync="open" append-to-body width="48%" + custom-class="ota-dialog" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + 点击上传 +
只能上传zip文件,且不超过2048MB
+
+
+ + + + + + + + + + + + + + + + +