juhaoyu 7 years ago
parent
commit
ba1e541f14
  1. 5
      designer_base/src/com/fr/design/extra/PluginHelper.java

5
designer_base/src/com/fr/design/extra/PluginHelper.java

@ -283,14 +283,13 @@ public class PluginHelper {
File fileToCheck = getTempPluginFileDirectory(); File fileToCheck = getTempPluginFileDirectory();
File oldfile = new File(StableUtils.pathJoin(FRContext.getCurrentEnv().getPath(), ProjectConstants.PLUGINS_NAME, "plugin-" + plugin.getId())); File oldfile = new File(StableUtils.pathJoin(FRContext.getCurrentEnv().getPath(), ProjectConstants.PLUGINS_NAME, "plugin-" + plugin.getId()));
if (!PluginManagerHelper.checkLic(plugin, fileToCheck)) { if (!PluginManagerHelper.checkLic(plugin, fileToCheck) && !PluginManagerHelper.checkLic(plugin, oldfile)) {
if (!PluginManagerHelper.checkLic(plugin, oldfile)) {//安装时,在安装目录下和压缩包里都没有才弹框 //安装时,在安装目录下和压缩包里都没有才弹框
String checkLicFail = Inter.getLocText("FR-Designer-PluginLicense_Check_Failed"); String checkLicFail = Inter.getLocText("FR-Designer-PluginLicense_Check_Failed");
FRLogger.getLogger().error(checkLicFail); FRLogger.getLogger().error(checkLicFail);
throw new com.fr.plugin.PluginVerifyException(checkLicFail); throw new com.fr.plugin.PluginVerifyException(checkLicFail);
} }
} }
}
private static boolean isSupportCurrentEnv(String envVersion) { private static boolean isSupportCurrentEnv(String envVersion) {
//包含8.0 //包含8.0

Loading…
Cancel
Save