Commit b1e38927 authored by suhuiguang's avatar suhuiguang

1.生产对接feign无头信息

parent 1584322f
...@@ -35,6 +35,15 @@ public class FeignAuthRequestInterceptor implements RequestInterceptor { ...@@ -35,6 +35,15 @@ public class FeignAuthRequestInterceptor implements RequestInterceptor {
if (product == null) { if (product == null) {
product = request.getParameter("product"); product = request.getParameter("product");
} }
if (authToken == null) {
authToken = RequestContext.getToken();
}
if (appKey == null) {
appKey = RequestContext.getAppKey();
}
if (product == null) {
product = RequestContext.getProduct();
}
template.header("X-Access-Token", authToken); template.header("X-Access-Token", authToken);
template.header("token", authToken); template.header("token", authToken);
template.header("appKey", appKey); template.header("appKey", appKey);
......
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