|
@@ -76,13 +76,15 @@ public class VisitLogInterceptor {
|
|
|
String browser = this.getBrowser(request);
|
|
|
//获取操作路径
|
|
|
String requestPath = this.getRequestPath(uri);
|
|
|
- //获取参数
|
|
|
- String params = this.getParams(pjp, request);
|
|
|
+
|
|
|
if(uri.contains("external")){
|
|
|
- saveLog(null,"external-api","external-api","api调用",uri,method,params,clientIP,browser,"");
|
|
|
+ String enParams = request.getHeader("en-params");
|
|
|
+ String decParams = request.getHeader("dec-params");
|
|
|
+ saveLog(null,"external-api","external-api","api调用",uri,method,enParams,clientIP,browser,decParams);
|
|
|
return pjp.proceed();
|
|
|
}
|
|
|
-
|
|
|
+ //获取参数
|
|
|
+ String params = this.getParams(pjp, request);
|
|
|
//放行
|
|
|
Object result = pjp.proceed();
|
|
|
|