mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 00:16:06 +08:00
修复获取日志判断
This commit is contained in:
parent
100ca7b54b
commit
8d99f3ffbb
|
@ -352,6 +352,10 @@ export default class CronService {
|
|||
|
||||
public async log(_id: string) {
|
||||
const doc = await this.get(_id);
|
||||
if (!doc) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (doc.log_path) {
|
||||
return getFileContentByName(`${doc.log_path}`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user