fix: 前置任务输出不存在时输出警告提示

v2-dev
xiaojunnuo 2025-09-01 13:29:47 +08:00
parent 44019e1042
commit b59052cc43
2 changed files with 2 additions and 2 deletions

View File

@ -314,7 +314,7 @@ export class Executor {
const outputKey = arr[2]; const outputKey = arr[2];
input[key] = this.currentStatusMap.get(id)?.status?.output[outputKey] ?? this.lastStatusMap.get(id)?.status?.output[outputKey]; input[key] = this.currentStatusMap.get(id)?.status?.output[outputKey] ?? this.lastStatusMap.get(id)?.status?.output[outputKey];
if (input[key] == null) { if (input[key] == null) {
this.logger.warn(`${item.title}的配置未找到对应的输出值,请确认对应的前置任务是否存在或者是否执行正确`); currentLogger.warn(`${item.title}的配置未找到对应的输出值,请确认对应的前置任务是否存在或者是否执行正确`);
} }
} }
} }

View File

@ -23,7 +23,7 @@ const unhiddenHtml = `
@Provide() @Provide()
@Controller('/api/unhidden') @Controller('/api/unhidden')
export class HnhiddenController { export class UnhiddenController {
@Inject() @Inject()
ctx: IMidwayKoaContext; ctx: IMidwayKoaContext;
@Inject() @Inject()