瀏覽代碼

返回前端错误码整理

chenyongxing 5 年之前
父節點
當前提交
bf455e4df1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gateway/ag-basic/src/main/java/com/yihu/jw/gateway/filter/BasicZuulFilter.java

+ 1 - 1
gateway/ag-basic/src/main/java/com/yihu/jw/gateway/filter/BasicZuulFilter.java

@ -88,7 +88,7 @@ public class BasicZuulFilter extends ZuulFilter {
        }
        OAuth2AccessToken oAuth2AccessToken = tokenStore.readAccessToken(accessToken);
        if (null == oAuth2AccessToken) {
            return this.forbidden(ctx, ResultStatus.INVALID_GRANT, "invalid token");
            return this.forbidden(ctx, ResultStatus.ERROR_TOKEN, "invalid token");
        }
        if (oAuth2AccessToken.isExpired()) {
            return this.forbidden(ctx, ResultStatus.ERROR_TOKEN, "expired token");