mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复删除日志
This commit is contained in:
parent
8174762c18
commit
425e49675a
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user