Commit 6419080b by liyanlin

fix

parent fdba55ed
...@@ -63,6 +63,7 @@ public class RequestBakRequestWrapper extends HttpServletRequestWrapper { ...@@ -63,6 +63,7 @@ public class RequestBakRequestWrapper extends HttpServletRequestWrapper {
.userAgent(UserAgentUtil.getDevice(request.getHeader("User-Agent"))) .userAgent(UserAgentUtil.getDevice(request.getHeader("User-Agent")))
.url(request.getRequestURI()) .url(request.getRequestURI())
.input(cachedContent.toByteArray()) .input(cachedContent.toByteArray())
.params(request.getParameterMap())
.build(); .build();
logService.insert(log); logService.insert(log);
}catch (Exception ex){ }catch (Exception ex){
......
...@@ -13,6 +13,7 @@ import org.springframework.data.mongodb.core.mapping.MongoId; ...@@ -13,6 +13,7 @@ import org.springframework.data.mongodb.core.mapping.MongoId;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.Map;
/** /**
* @Author: li.yanlin * @Author: li.yanlin
...@@ -42,5 +43,7 @@ public class OperationLog implements Serializable { ...@@ -42,5 +43,7 @@ public class OperationLog implements Serializable {
private byte[] input; private byte[] input;
private Map<String, String[]> params;
private LocalDateTime createTime; private LocalDateTime createTime;
} }
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