修复获取日志判断

This commit is contained in:
whyour committed 2021-11-11 22:50:28 +08:00
1 parent 9936097086
commit 62fca3dfe2
1 file changed
+4
+4
View File
@@ -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}`);
}