mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复shell任务id获取
This commit is contained in:
1 parent
a8a2a54bea
commit
e687511f32
2 files changed
+4
-4
No files matched your search
@@ -257,7 +257,7 @@ export default class CronService {
|
||||
public async log(_id: string) {
|
||||
const doc = await this.get(_id);
|
||||
if (doc.log_path) {
|
||||
return getFileContentByName(`${config.logPath}/${doc.log_path}`);
|
||||
return getFileContentByName(`${doc.log_path}`);
|
||||
}
|
||||
const [, commandStr, url] = doc.command.split(' ');
|
||||
let logPath = this.getKey(commandStr);
|
||||
|
||||
Reference in new issue
Block a user