From b59cbaddf3ed05cca086a85889ad9dba1f01b82c Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Sat, 14 Mar 2020 22:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=9D=99=E6=80=81=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cm/common/wechat/filter/WechatFilter.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cloud-common-wechat/src/main/java/com/cm/common/wechat/filter/WechatFilter.java b/cloud-common-wechat/src/main/java/com/cm/common/wechat/filter/WechatFilter.java index 30d4a3c..a348ce8 100644 --- a/cloud-common-wechat/src/main/java/com/cm/common/wechat/filter/WechatFilter.java +++ b/cloud-common-wechat/src/main/java/com/cm/common/wechat/filter/WechatFilter.java @@ -61,6 +61,9 @@ public class WechatFilter implements Filter { * 微信路由静态资源 */ private static final String WECHAT_ROUTE_STATIC_URL = "/**/wechatroute/static/**"; + private static final String WECHAT_ROUTE_CSS_URL = "/**/wechatroute/css/**"; + private static final String WECHAT_ROUTE_JS_URL = "/**/wechatroute/js/**"; + private static final String WECHAT_ROUTE_IMAGES_URL = "/**/wechatroute/images/**"; /** * 上传文件 */ @@ -88,7 +91,10 @@ public class WechatFilter implements Filter { || antPathMatcher.match(WECHAT_API_RELEASE_URL, requestUri) || antPathMatcher.match(WECHAT_ROUTE_RELEASE_URL, requestUri) || antPathMatcher.match(WECHAT_ROUTE_STATIC_URL, requestUri) - || antPathMatcher.match(WECHAT_ROUTE_HYBRID_URL, requestUri); + || antPathMatcher.match(WECHAT_ROUTE_HYBRID_URL, requestUri) + || antPathMatcher.match(WECHAT_ROUTE_CSS_URL, requestUri) + || antPathMatcher.match(WECHAT_ROUTE_JS_URL, requestUri) + || antPathMatcher.match(WECHAT_ROUTE_IMAGES_URL, requestUri); if (isRelease) { filterChain.doFilter(request, response); return;