Browse Source
Merge in DESIGN/design from ~LINK.ZHAO/design:release/10.0 to release/10.0 * commit '4b196aa95c03902fe1c291899930e6ad6cdcace7': REPORT-81246【运营产品化二期10.0】模板商城断网后的刷新点击无反应(联网后仍存在报错) 提取常量 REPORT-81246【运营产品化二期10.0】模板商城断网后的刷新点击无反应(联网后仍存在报错) url编码 REPORT-81246【运营产品化二期10.0】模板商城断网后的刷新点击无反应(联网后仍存在报错) url编码 REPORT-81246【运营产品化二期10.0】模板商城断网后的刷新点击无反应(联网后仍存在报错) 修改pr REPORT-81246【运营产品化二期10.0】模板商城断网后的刷新点击无反应(联网后仍存在报错) 修改云端常量的获取方式 REPORT-81246【运营产品化二期10.0】模板商城断网后的刷新点击无反应(联网后仍存在报错) 修改云端常量的获取方式 REPORT-81246【运营产品化二期10.0】模板商城断网后的刷新点击无反应(联网后仍存在报错) REPORT-81243【运营产品化二期10.0】模板资源需要剔除11.0模板,10.0设计器不应该检索到11.0的资源 添加reload事件 修改请求参数 修改云端常量的获取方式security/10.0
Link.Zhao-赵展
2 years ago
20 changed files with 244 additions and 84 deletions
@ -0,0 +1,186 @@
|
||||
package com.fr.design.mainframe.alphafine; |
||||
|
||||
import com.fr.general.CloudCenter; |
||||
|
||||
/** |
||||
* 需要从云端获取的常量单独放一起 |
||||
* 每次获取的时候都去加载一次 |
||||
* |
||||
* @author Link |
||||
* @version 11.0 |
||||
* Created by Link on 2022/9/28 |
||||
*/ |
||||
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_SEARCH_API); |
||||
} |
||||
|
||||
/** |
||||
* 插件信息api |
||||
*/ |
||||
public static String getPluginUrl() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_PLUGIN_INFO); |
||||
} |
||||
|
||||
/** |
||||
* get REUSE_URL |
||||
*/ |
||||
public static String getReuseUrl() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_REUSE_INFO); |
||||
} |
||||
|
||||
/** |
||||
* get DOCUMENT_DOC_URL |
||||
*/ |
||||
public static String getDocumentDocUrl() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_DOC_VIEW); |
||||
} |
||||
|
||||
/** |
||||
* 获取文档搜索api |
||||
*/ |
||||
public static String getDocumentSearchUrl() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_DOC_SEARCH); |
||||
} |
||||
|
||||
/** |
||||
* 文档信息api |
||||
*/ |
||||
public static String getDocumentInformationUrl() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_DOC_INFO); |
||||
} |
||||
|
||||
/** |
||||
* 插件图标api |
||||
*/ |
||||
public static String getPluginImageUrl() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_PLUGIN_IMAGE); |
||||
} |
||||
|
||||
/** |
||||
* get CLOUD_SERVER_URL |
||||
*/ |
||||
public static String getCloudServerUrl() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_RECORD); |
||||
} |
||||
|
||||
/** |
||||
* get SEARCH_API |
||||
*/ |
||||
public static String getSearchApi() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_CLOUD_SEARCH); |
||||
} |
||||
|
||||
/** |
||||
* get SIMILAR_SEARCH_URL_PREFIX |
||||
*/ |
||||
public static String getSimilarSearchUrlPrefix() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_SIMILAR_SEARCH); |
||||
} |
||||
|
||||
/** |
||||
* get COMPLEMENT_ADVICE_SEARCH_URL_PREFIX |
||||
*/ |
||||
public static String getComplementAdviceSearchUrlPrefix() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_ADVICE_SEARCH); |
||||
} |
||||
|
||||
/** |
||||
* 获取热门问题 |
||||
*/ |
||||
public static String getAlphaHotSearch() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_HOT_SEARCH); |
||||
} |
||||
|
||||
/** |
||||
* 跳转论坛api |
||||
*/ |
||||
public static String getAlphaGoToForum() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_GO_FORUM); |
||||
} |
||||
|
||||
/** |
||||
* get ALPHA_GO_TO_WEB |
||||
*/ |
||||
public static String getAlphaGoToWeb() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_GO_WEB); |
||||
} |
||||
|
||||
/** |
||||
* get ALPHA_PREVIEW |
||||
*/ |
||||
public static String getAlphaPreview() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_PREVIEW); |
||||
} |
||||
|
||||
/** |
||||
* cid系统的产品动态api |
||||
*/ |
||||
public static String getAlphaCid() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_CID_NEW); |
||||
} |
||||
|
||||
/** |
||||
* cid系统的用户组信息api |
||||
*/ |
||||
public static String getAlphaCidUserGroupInfo() { |
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_CID_USER_GROUP_INFO); |
||||
} |
||||
|
||||
/** |
||||
* 获取默认推荐的帮助文档 |
||||
*/ |
||||
public static String getAlphaHelpRecommend() { |
||||
String quickStartUrl = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_QUICK_START); |
||||
|
||||
String reportLearningPath = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_REPORT_LEARNING_PATH); |
||||
|
||||
String parameterLearningPath = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_PARAM_LEARNING_PATH); |
||||
|
||||
String fillLearningPath = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_FILL_LEARNING_PATH); |
||||
|
||||
String apiSummary = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_API_SUMMARY); |
||||
|
||||
String monthlyDocument = CloudCenter.getInstance().acquireUrlByKind(AF_HELP_MONTHLY_DOCUMENT); |
||||
|
||||
String defaultRecommend = "[ {\"name\":\"快速入门指南\", \"link\":\"" + quickStartUrl + "\"}," + |
||||
"{\"name\":\"报表应用学习路径\", \"link\":\"" + reportLearningPath + "\"}," + |
||||
"{\"name\":\"参数应用学习路径\", \"link\":\"" + parameterLearningPath + "\"}," + |
||||
"{\"name\":\"填报学习路径\", \"link\":\"" + fillLearningPath + "\"}," + |
||||
"{\"name\":\"API接口汇总\", \"link\":\"" + apiSummary + "\"}," + |
||||
"{\"name\":\"文档月刊\", \"link\":\"" + monthlyDocument + "\"} ]"; |
||||
|
||||
return CloudCenter.getInstance().acquireUrlByKind(AF_RECOMMEND, defaultRecommend); |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue