Commit 3a0d6a73 authored by 周健威's avatar 周健威

添加数据中心验证代码

parent 018fd815
......@@ -9,6 +9,7 @@ public class RequestTypeConstants {
public static final String BASE = "BASE";
public static final String APP = "APP";
public static final String NOT = "NOT";
public static final String WX = "WX";
}
......@@ -120,7 +120,21 @@ public class AccessGatewayFilter implements GlobalFilter {
//根据头部请求token
HttpRequest httpRequest = HttpRequest.get("https://gdxm.upyuns.com/sign/authz/jwt/rest/78917a82-1c86-4020-b86a-3b1b350357e3");
// String usercenterResult = HttpUtil.get("https://gdxm.upyuns.com/sign/authz/jwt/rest/78917a82-1c86-4020-b86a-3b1b350357e3");
HttpCookie strings = (HttpCookie) request.getCookies().get("congress");
List<String> congresss = request.getHeaders().get("Congress");
String congress = null;
if (congresss != null) {
congress = congresss.get(0);
}
List<String> requestTypes = request.getHeaders().get(RequestTypeConstants.HEADER_KEY);
String requestType = null;
if (requestTypes != null) {
requestType = requestTypes.get(0);
}
if(null != requestType && !RequestTypeConstants.NOT.equals(requestType)) {
}
// String authToken = null;
// if (strings != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment