Browse Source

REPORT-70746 更新日志的显示逻辑优化

url不能用硬编码
feature/x
Link.Zhao 2 years ago
parent
commit
eedccf740a
  1. 8
      designer-base/src/main/java/com/fr/design/update/actions/NewFeatureAction.java

8
designer-base/src/main/java/com/fr/design/update/actions/NewFeatureAction.java

@ -1,6 +1,7 @@
package com.fr.design.update.actions;
import com.fr.common.util.Strings;
import com.fr.design.utils.BrowseUtils;
import com.fr.general.CloudCenter;
import com.fr.log.FineLoggerFactory;
@ -16,10 +17,15 @@ import java.awt.event.ActionListener;
public class NewFeatureAction implements ActionListener {
public static String DEFAULT_UPDATE_DETAIL_URL = "https://help.fanruan.com/finereport/doc-view-4699.html";
@Override
public void actionPerformed(ActionEvent e) {
try {
String url = CloudCenter.getInstance().acquireConf("fr.latest.update.detail", "https://help.fanruan.com/finereport/doc-view-4699.html");
String url = CloudCenter.getInstance().acquireConf("fr.latest.update.detil");
if (Strings.isEmpty(url)) {
url = DEFAULT_UPDATE_DETAIL_URL;
}
BrowseUtils.browser(url);
} catch (Exception ex) {
FineLoggerFactory.getLogger().error(ex.getMessage());

Loading…
Cancel
Save