Browse Source

Pull request #7573: REPORT-65644 未联网时,打开编辑器,再联网点击重新加载,没有反应

Merge in DESIGN/design from ~PENGDA/design:feature/x to feature/x

* commit 'ee86cda3b1df0d4cee33e6df5ede665dc79c72af':
  REPORT-65644 未联网时,打开编辑器,再联网点击重新加载,没有反应
feature/x
pengda 3 years ago
parent
commit
1a314f965f
  1. 4
      designer-base/src/main/java/com/fr/design/javascript/JSContentWithDescriptionPane.java

4
designer-base/src/main/java/com/fr/design/javascript/JSContentWithDescriptionPane.java

@ -108,7 +108,7 @@ public class JSContentWithDescriptionPane extends JSContentPane implements KeyLi
private static final String URL_FOR_TEST_NETWORK = "https://www.baidu.com"; private static final String URL_FOR_TEST_NETWORK = "https://www.baidu.com";
private static final String DOCUMENT_SEARCH_URL = CloudCenter.getInstance().acquireUrlByKind("af.doc_search"); private static final String DOCUMENT_SEARCH_URL = "https://help.fanruan.com/finereport/api-helpdoc-title-";
private String currentValue; private String currentValue;
@ -352,7 +352,7 @@ public class JSContentWithDescriptionPane extends JSContentPane implements KeyLi
private void doHelpDocumentSearch() { private void doHelpDocumentSearch() {
Object value = interfaceNameList.getSelectedValue(); Object value = interfaceNameList.getSelectedValue();
if (value != null) { if (value != null) {
String url = DOCUMENT_SEARCH_URL + value.toString(); String url = CloudCenter.getInstance().acquireUrlByKind("af.doc_search", DOCUMENT_SEARCH_URL) + value.toString();
try { try {
String result = HttpToolbox.get(url); String result = HttpToolbox.get(url);
JSONObject jsonObject = new JSONObject(result); JSONObject jsonObject = new JSONObject(result);

Loading…
Cancel
Save