|
@@ -66,7 +66,7 @@ public class DomainZuulPostFilter extends ZuulFilter {
|
66
|
66
|
}else {
|
67
|
67
|
log.info("获取的token: {}", token);
|
68
|
68
|
|
69
|
|
- if (matcher.match(RequestURI.APP_API.getUrl(), requestURI)) {
|
|
69
|
+ if (requestURI.indexOf(RequestURI.APP_API.getUrl()) != -1) {
|
70
|
70
|
UserElement appElement = (UserElement) request.getSession().getAttribute(Constant.APP_USER_SESSION);
|
71
|
71
|
if (null == appElement) {
|
72
|
72
|
responseBean.addError(Status.RESPONSE_STATUS_803.getValue(),Status.RESPONSE_STATUS_803.getComment());
|
|
@@ -74,7 +74,7 @@ public class DomainZuulPostFilter extends ZuulFilter {
|
74
|
74
|
ctx.setResponseBody(JSONObject.toJSONString(responseBean));
|
75
|
75
|
}
|
76
|
76
|
|
77
|
|
- } else if (matcher.match(RequestURI.OPERATE_API.getUrl(), requestURI) || matcher.match(RequestURI.PROPERTY_API.getUrl(), requestURI)) {
|
|
77
|
+ } else if (requestURI.indexOf(RequestURI.OPERATE_API.getUrl()) != -1 || requestURI.indexOf(RequestURI.PROPERTY_API.getUrl()) != -1) {
|
78
|
78
|
UserElement webOperateElement = (UserElement) request.getSession().getAttribute(Constant.WEB_USER_SESSION);
|
79
|
79
|
if (null == webOperateElement) {
|
80
|
80
|
responseBean.addError(Status.RESPONSE_STATUS_803.getValue(),Status.RESPONSE_STATUS_803.getComment());
|