Commit 7ea0f052 authored by 黎博's avatar 黎博

新增日志

parent 92af6cea
......@@ -40,10 +40,11 @@ public class YeebaoInterceptor implements HandlerInterceptor {
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {
String uri = request.getRequestURI();
// if (!(uri.equals("/tzt-api/api/divide/record") || uri.equals("/balance-board/transfer"))) {
// log.info("收到易宝 {} 接口请求", uri);
// }
if (!(uri.equals("/tzt-api/api/divide/record") || uri.equals("/balance-board/transfer"))) {
log.info("收到易宝 {} 接口请求, 请求方式:{}", uri, request.getMethod());
}
Map<String, String[]> parameterMap = request.getParameterMap();
log.info("请求参数:{}", JSON.toJSONString(convertParameterMap(parameterMap)));
QueryWrapper<Mock> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("url", uri);
Mock mock = mockMapper.selectOne(queryWrapper);
......
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