|
|
@ -63,8 +63,10 @@ public class PluginOperateUtils { |
|
|
|
JSONObject latestPluginInfo = PluginUtils.getLatestPluginInfo(pluginMarker.getPluginID()); |
|
|
|
JSONObject latestPluginInfo = PluginUtils.getLatestPluginInfo(pluginMarker.getPluginID()); |
|
|
|
String latestPluginVersion = (String) latestPluginInfo.get("version"); |
|
|
|
String latestPluginVersion = (String) latestPluginInfo.get("version"); |
|
|
|
PluginMarker toPluginMarker = PluginMarker.create(pluginMarker.getPluginID(), latestPluginVersion); |
|
|
|
PluginMarker toPluginMarker = PluginMarker.create(pluginMarker.getPluginID(), latestPluginVersion); |
|
|
|
PluginTask pluginTask = PluginTask.updateTask(pluginMarker, toPluginMarker); |
|
|
|
//当前已经安装的相同ID插件marker
|
|
|
|
PluginControllerHelper.updateOnline(pluginMarker, toPluginMarker, new UpdateOnlineCallback(pluginTask, jsCallback)); |
|
|
|
PluginMarker currentMarker = PluginUtils.getInstalledPluginMarkerByID(pluginMarker.getPluginID()); |
|
|
|
|
|
|
|
PluginTask pluginTask = PluginTask.updateTask(currentMarker, toPluginMarker); |
|
|
|
|
|
|
|
PluginControllerHelper.updateOnline(currentMarker, toPluginMarker, new UpdateOnlineCallback(pluginTask, jsCallback)); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
FRContext.getLogger().error(e.getMessage(), e); |
|
|
|
FRContext.getLogger().error(e.getMessage(), e); |
|
|
|
} |
|
|
|
} |
|
|
|