update(REQ-2516) - 临时兼容,待 axzo-common 包合并master 后,便可以使用基础类库中的常量

This commit is contained in:
wangli 2024-06-26 10:00:15 +08:00
parent 6ee4430f43
commit 31f35737a2

View File

@ -31,7 +31,7 @@ import java.util.Collection;
import java.util.Collections;
import java.util.Objects;
import static cn.axzo.framework.web.filter.BasicRecordExceptionFilter.MICRO_SERVER_RECORD_ERROR_GET_PARAM_NAME;
//import static cn.axzo.framework.web.filter.BasicRecordExceptionFilter.MICRO_SERVER_RECORD_ERROR_GET_PARAM_NAME;
import static cn.axzo.workflow.client.config.WorkflowRequestInterceptor.HEADER_API_VERSION;
import static cn.axzo.workflow.client.config.WorkflowRequestInterceptor.HEADER_HTTP_CLIENT;
import static cn.axzo.workflow.client.config.WorkflowRequestInterceptor.HEADER_HTTP_CLIENT_VALUE;
@ -92,6 +92,7 @@ public class WorkflowEngineStarterFeignConfiguration {
}
private void setRequestParams(RequestTemplate template, HttpServletRequest originalRequest) {
String MICRO_SERVER_RECORD_ERROR_GET_PARAM_NAME = "pkg";
String[] packageNames = originalRequest.getParameterValues(MICRO_SERVER_RECORD_ERROR_GET_PARAM_NAME);
template.query(MICRO_SERVER_RECORD_ERROR_GET_PARAM_NAME, packageNames);
}
@ -101,7 +102,7 @@ public class WorkflowEngineStarterFeignConfiguration {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
return attributes.getRequest();
} catch (Exception e) {
log.warn("not HttpServletRequest instance bean found");
log.debug("not HttpServletRequest instance bean found");
return null;
}
}