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;