forked from github/dataease
fix(插件): 兼容已安装的第三方插件版本号
This commit is contained in:
parent
ba85c4e731
commit
5188b99995
@ -6,6 +6,7 @@ import io.dataease.plugins.common.base.domain.MyPlugin;
|
||||
import io.dataease.service.sys.PluginService;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.ApplicationArguments;
|
||||
@ -73,6 +74,13 @@ public class PluginRunner implements ApplicationRunner {
|
||||
|
||||
|
||||
String jarPath = jarFile.getAbsolutePath();
|
||||
if (!StringUtils.equals("default", store) && !jarFile.exists()) {
|
||||
version = "1.0-SNAPSHOT";
|
||||
path = pluginDir + store + "/" + moduleName + "-" + version + ".jar";
|
||||
plugin.setVersion(version);
|
||||
jarFile = new File(path);
|
||||
jarPath = jarFile.getAbsolutePath();
|
||||
}
|
||||
try {
|
||||
if (jarFile.exists()) {
|
||||
pluginService.loadJar(jarPath, plugin);
|
||||
|
Loading…
Reference in New Issue
Block a user