mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-05 08:14:32 +08:00
修复删除日志
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ export default (app: Router) => {
|
|||||||
path: string;
|
path: string;
|
||||||
};
|
};
|
||||||
const logService = Container.get(LogService);
|
const logService = Container.get(LogService);
|
||||||
const finalPath = logService.checkFilePath(filename, path);
|
const finalPath = logService.checkFilePath(path, filename);
|
||||||
if (!finalPath || blacklist.includes(path)) {
|
if (!finalPath || blacklist.includes(path)) {
|
||||||
return res.send({
|
return res.send({
|
||||||
code: 403,
|
code: 403,
|
||||||
|
|||||||
Reference in New Issue
Block a user