feat: 增加日志
This commit is contained in:
parent
0d226184ee
commit
476808710c
@ -75,12 +75,13 @@ public class AxContextInterceptor implements HandlerInterceptor {
|
||||
}
|
||||
if (authorization.startsWith("Bearer")) {
|
||||
String result;
|
||||
String url = StringUtils.firstNonBlank(supplierHost, ENV_HOSTS.get(appRuntime.getEnv()));
|
||||
try {
|
||||
String url = StringUtils.firstNonBlank(supplierHost, ENV_HOSTS.get(appRuntime.getEnv()));
|
||||
result = HTTP_CLIENT.get(url, RequestParams.FormParams.builder()
|
||||
.headers(ImmutableMap.of("Authorization", authorization))
|
||||
.build());
|
||||
} catch (Exception ex) {
|
||||
log.error("获取登陆信息错误, url = {}, authorization = {}", url, authorization, ex);
|
||||
throw ResultCode.RUNTIME_EXCEPTION.toException("获取登陆信息错误" + ex.getMessage());
|
||||
}
|
||||
//这里是一个非标准返回
|
||||
|
||||
Loading…
Reference in New Issue
Block a user