明树Git Lab

Commit 3a319fd9 authored by zfp1's avatar zfp1

update

parent ede5b7c9
Pipeline #104358 passed with stage
in 3 seconds
...@@ -30,6 +30,7 @@ module.exports = async (req, res, next) => { ...@@ -30,6 +30,7 @@ module.exports = async (req, res, next) => {
} }
/* --------------3. 记录所有进来的日志,是否记录响应的值有待 */ /* --------------3. 记录所有进来的日志,是否记录响应的值有待 */
if(!['/resource/listResourceAll'].includes(path)) {
requestLogModule.createRequestLog({ requestLogModule.createRequestLog({
url: req.baseUrl + req.path, url: req.baseUrl + req.path,
params: JSON.stringify({ params: JSON.stringify({
...@@ -43,6 +44,7 @@ module.exports = async (req, res, next) => { ...@@ -43,6 +44,7 @@ module.exports = async (req, res, next) => {
method: req.method, method: req.method,
headers: JSON.stringify(req.headers), headers: JSON.stringify(req.headers),
}); });
}
next(); next();
} }
......
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