修复日志参数获取

This commit is contained in:
hanhh 2021-06-25 15:58:14 +08:00
parent 86e5f208fb
commit 54dd82dc77

View File

@ -241,7 +241,7 @@ export default class CronService {
const [, commandStr, url] = doc.command.split(' '); const [, commandStr, url] = doc.command.split(' ');
let logPath = this.getKey(commandStr); let logPath = this.getKey(commandStr);
const isQlCommand = doc.command.startsWith('ql '); const isQlCommand = doc.command.startsWith('ql ');
const key = this.getKey(url) || logPath; const key = (url && this.getKey(url)) || logPath;
if (isQlCommand) { if (isQlCommand) {
logPath = 'update'; logPath = 'update';
} }