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