diff --git a/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignUpdateComponent.java b/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignUpdateComponent.java index f4d7f3710d..8f5d592bb0 100644 --- a/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignUpdateComponent.java +++ b/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignUpdateComponent.java @@ -46,6 +46,20 @@ public class DesignUpdateComponent { */ @Start public void start() { + initFanruanCloud(); + if (DesignerStartupContext.getInstance().onWarmup()) { + try { + prepare4Start(); + FineUpdateUnit.makeNew(); + } catch (Throwable ignore) { + } + } else { + prepare4Start(); + ResourceUpdateManager.basicUpdateStart(); + } + } + + private void initFanruanCloud() { FanruanCloud.setSitesService(new SitesServiceProvider() { @Override public boolean enabled() { @@ -73,16 +87,6 @@ public class DesignUpdateComponent { } }); FanruanCloud.setPassportService(new FinePassportServiceAdaptor()); - if (DesignerStartupContext.getInstance().onWarmup()) { - try { - prepare4Start(); - FineUpdateUnit.makeNew(); - } catch (Throwable ignore) { - } - } else { - prepare4Start(); - ResourceUpdateManager.basicUpdateStart(); - } } /**