|
|
@ -46,6 +46,20 @@ public class DesignUpdateComponent { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Start |
|
|
|
@Start |
|
|
|
public void 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() { |
|
|
|
FanruanCloud.setSitesService(new SitesServiceProvider() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean enabled() { |
|
|
|
public boolean enabled() { |
|
|
@ -73,16 +87,6 @@ public class DesignUpdateComponent { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
FanruanCloud.setPassportService(new FinePassportServiceAdaptor()); |
|
|
|
FanruanCloud.setPassportService(new FinePassportServiceAdaptor()); |
|
|
|
if (DesignerStartupContext.getInstance().onWarmup()) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
prepare4Start(); |
|
|
|
|
|
|
|
FineUpdateUnit.makeNew(); |
|
|
|
|
|
|
|
} catch (Throwable ignore) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
prepare4Start(); |
|
|
|
|
|
|
|
ResourceUpdateManager.basicUpdateStart(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|