|
|
|
@ -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(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|