Browse Source

REPORT-81246【运营产品化二期10.0】模板商城断网后的刷新点击无反应(联网后仍存在报错)

提取常量
security/10.0
Link.Zhao 2 years ago
parent
commit
4b196aa95c
  1. 74
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/AlphaFineCloudConstants.java

74
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/AlphaFineCloudConstants.java

@ -12,140 +12,166 @@ import com.fr.general.CloudCenter;
*/
public class AlphaFineCloudConstants {
private static final String PLUGIN_SEARCH_API = "plugin.searchAPI";
private static final String AF_PLUGIN_INFO = "af.pluginInfo";
private static final String AF_REUSE_INFO = "af.reuseInfo";
private static final String AF_DOC_VIEW = "af.doc_view";
private static final String AF_DOC_SEARCH = "af.doc_search";
private static final String AF_DOC_INFO = "af.doc_info";
private static final String AF_PLUGIN_IMAGE = "af.plugin_image";
private static final String AF_RECORD = "af.record";
private static final String AF_CLOUD_SEARCH = "af.cloud_search";
private static final String AF_SIMILAR_SEARCH = "af.similar_search";
private static final String AF_ADVICE_SEARCH = "af.advice_search";
private static final String AF_HOT_SEARCH = "af.hot_search";
private static final String AF_GO_FORUM = "af.go_fourm";
private static final String AF_GO_WEB = "af.go_web";
private static final String AF_PREVIEW = "af.preview";
private static final String AF_CID_NEW = "af.cid.new";
private static final String AF_CID_USER_GROUP_INFO = "af.cid.user.group.info";
private static final String AF_HELP_QUICK_START = "af.help.quick.start";
private static final String AF_HELP_REPORT_LEARNING_PATH = "af.help.report.learning.path";
private static final String AF_HELP_PARAM_LEARNING_PATH = "af.help.param.learning.path";
private static final String AF_HELP_FILL_LEARNING_PATH = "af.help.fill.learning.path";
private static final String AF_HELP_API_SUMMARY = "af.help.api.summary";
private static final String AF_HELP_MONTHLY_DOCUMENT = "af.help.monthly.document";
private static final String AF_RECOMMEND = "af.recommend";
/**
* 插件搜索api
*/
public static String getPluginSearchUrl() {
return CloudCenter.getInstance().acquireUrlByKind("plugin.searchAPI");
return CloudCenter.getInstance().acquireUrlByKind(PLUGIN_SEARCH_API);
}
/**
* 插件信息api
*/
public static String getPluginUrl() {
return CloudCenter.getInstance().acquireUrlByKind("af.pluginInfo");
return CloudCenter.getInstance().acquireUrlByKind(AF_PLUGIN_INFO);
}
/**
* get REUSE_URL
*/
public static String getReuseUrl() {
return CloudCenter.getInstance().acquireUrlByKind("af.reuseInfo");
return CloudCenter.getInstance().acquireUrlByKind(AF_REUSE_INFO);
}
/**
* get DOCUMENT_DOC_URL
*/
public static String getDocumentDocUrl() {
return CloudCenter.getInstance().acquireUrlByKind("af.doc_view");
return CloudCenter.getInstance().acquireUrlByKind(AF_DOC_VIEW);
}
/**
* 获取文档搜索api
*/
public static String getDocumentSearchUrl() {
return CloudCenter.getInstance().acquireUrlByKind("af.doc_search");
return CloudCenter.getInstance().acquireUrlByKind(AF_DOC_SEARCH);
}
/**
* 文档信息api
*/
public static String getDocumentInformationUrl() {
return CloudCenter.getInstance().acquireUrlByKind("af.doc_info");
return CloudCenter.getInstance().acquireUrlByKind(AF_DOC_INFO);
}
/**
* 插件图标api
*/
public static String getPluginImageUrl() {
return CloudCenter.getInstance().acquireUrlByKind("af.plugin_image");
return CloudCenter.getInstance().acquireUrlByKind(AF_PLUGIN_IMAGE);
}
/**
* get CLOUD_SERVER_URL
*/
public static String getCloudServerUrl() {
return CloudCenter.getInstance().acquireUrlByKind("af.record");
return CloudCenter.getInstance().acquireUrlByKind(AF_RECORD);
}
/**
* get SEARCH_API
*/
public static String getSearchApi() {
return CloudCenter.getInstance().acquireUrlByKind("af.cloud_search");
return CloudCenter.getInstance().acquireUrlByKind(AF_CLOUD_SEARCH);
}
/**
* get SIMILAR_SEARCH_URL_PREFIX
*/
public static String getSimilarSearchUrlPrefix() {
return CloudCenter.getInstance().acquireUrlByKind("af.similar_search");
return CloudCenter.getInstance().acquireUrlByKind(AF_SIMILAR_SEARCH);
}
/**
* get COMPLEMENT_ADVICE_SEARCH_URL_PREFIX
*/
public static String getComplementAdviceSearchUrlPrefix() {
return CloudCenter.getInstance().acquireUrlByKind("af.advice_search");
return CloudCenter.getInstance().acquireUrlByKind(AF_ADVICE_SEARCH);
}
/**
* 获取热门问题
*/
public static String getAlphaHotSearch() {
return CloudCenter.getInstance().acquireUrlByKind("af.hot_search");
return CloudCenter.getInstance().acquireUrlByKind(AF_HOT_SEARCH);
}
/**
* 跳转论坛api
*/
public static String getAlphaGoToForum() {
return CloudCenter.getInstance().acquireUrlByKind("af.go_fourm");
return CloudCenter.getInstance().acquireUrlByKind(AF_GO_FORUM);
}
/**
* get ALPHA_GO_TO_WEB
*/
public static String getAlphaGoToWeb() {
return CloudCenter.getInstance().acquireUrlByKind("af.go_web");
return CloudCenter.getInstance().acquireUrlByKind(AF_GO_WEB);
}
/**
* get ALPHA_PREVIEW
*/
public static String getAlphaPreview() {
return CloudCenter.getInstance().acquireUrlByKind("af.preview");
return CloudCenter.getInstance().acquireUrlByKind(AF_PREVIEW);
}
/**
* cid系统的产品动态api
*/
public static String getAlphaCid() {
return CloudCenter.getInstance().acquireUrlByKind("af.cid.new");
return CloudCenter.getInstance().acquireUrlByKind(AF_CID_NEW);
}
/**
* cid系统的用户组信息api
*/
public static String getAlphaCidUserGroupInfo() {
return CloudCenter.getInstance().acquireUrlByKind("af.cid.user.group.info");
return CloudCenter.getInstance().acquireUrlByKind(AF_CID_USER_GROUP_INFO);
}
/**
* 获取默认推荐的帮助文档
*/
public static String getAlphaHelpRecommend() {
String quickStartUrl = CloudCenter.getInstance().acquireUrlByKind("af.help.quick.start");
String quickStartUrl = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_QUICK_START);
String reportLearningPath = CloudCenter.getInstance().acquireUrlByKind("af.help.report.learning.path");
String reportLearningPath = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_REPORT_LEARNING_PATH);
String parameterLearningPath = CloudCenter.getInstance().acquireUrlByKind("af.help.param.learning.path");
String parameterLearningPath = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_PARAM_LEARNING_PATH);
String fillLearningPath = CloudCenter.getInstance().acquireUrlByKind("af.help.fill.learning.path");
String fillLearningPath = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_FILL_LEARNING_PATH);
String apiSummary = CloudCenter.getInstance().acquireUrlByKind("af.help.api.summary");
String apiSummary = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_API_SUMMARY);
String monthlyDocument = CloudCenter.getInstance().acquireUrlByKind("af.help.monthly.document");
String monthlyDocument = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_MONTHLY_DOCUMENT);
String defaultRecommend = "[ {\"name\":\"快速入门指南\", \"link\":\"" + quickStartUrl + "\"}," +
"{\"name\":\"报表应用学习路径\", \"link\":\"" + reportLearningPath + "\"}," +
@ -154,7 +180,7 @@ public class AlphaFineCloudConstants {
"{\"name\":\"API接口汇总\", \"link\":\"" + apiSummary + "\"}," +
"{\"name\":\"文档月刊\", \"link\":\"" + monthlyDocument + "\"} ]";
return CloudCenter.getInstance().acquireUrlByKind("af.recommend", defaultRecommend);
return CloudCenter.getInstance().acquireUrlByKind(AF_RECOMMEND, defaultRecommend);
}
}

Loading…
Cancel
Save