From 0f8d6de84544d02e4422fe2fbff3595f5f5dd8c0 Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Wed, 4 Sep 2024 11:52:27 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-133286=20fbp=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=BA=91=E4=B8=AD=E5=BF=83=E7=BD=91=E5=9D=80?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=20=E4=BB=A3=E7=A0=81=E8=B4=A8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../env/function/DesignUpdateComponent.java | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) 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(); - } } /**