缓存优化,执行器查询展示优化

This commit is contained in:
暮光:城中城
2019-08-27 22:53:41 +08:00
parent cbaee753cb
commit 63f6b80b79
12 changed files with 113 additions and 85 deletions

View File

@@ -39,7 +39,7 @@ public class ZyplayerProxyFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
@@ -137,7 +137,7 @@ public class ZyplayerProxyFilter implements Filter {
httpRequest.cookie(httpCookieList.toArray(new HttpCookie[]{}));
}
String resultStr = httpRequest.execute().body();
if (proxyUrl.indexOf(Consts.V2_API_DOCS) >= 0) {
if (proxyUrl.contains(Consts.V2_API_DOCS)) {
// "basePath":"/" 替换成 "basePath":"/zyplayer-doc-manage/zyplayer-proxy/2/",使其走代理接口
ServletContext servletContext = httpServletRequest.getServletContext();
Object ctx = servletContext.getAttribute("ctx");