Browse Source

REPORT-133286 fbp设计器获取云中心网址为空 代码质量

fbp/release
Destiny.Lin 3 months ago
parent
commit
0f8d6de845
  1. 24
      designer-realize/src/main/java/com/fanruan/boot/env/function/DesignUpdateComponent.java

24
designer-realize/src/main/java/com/fanruan/boot/env/function/DesignUpdateComponent.java vendored

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

Loading…
Cancel
Save