diff --git a/sdk/common/src/main/java/io/dataease/utils/VersionUtil.java b/sdk/common/src/main/java/io/dataease/utils/VersionUtil.java index 35355c705c..396e83b2f5 100644 --- a/sdk/common/src/main/java/io/dataease/utils/VersionUtil.java +++ b/sdk/common/src/main/java/io/dataease/utils/VersionUtil.java @@ -1,11 +1,14 @@ package io.dataease.utils; +import org.springframework.core.env.Environment; + public class VersionUtil { - private static final String randomId = IDUtils.randomID(16); public static String getRandomVersion() { - return randomId; + Environment environment = CommonBeanFactory.getBean(Environment.class); + assert environment != null; + return environment.getProperty("dataease.version", "2.0.0"); } }