fix: 修复n8n异步任务解析结果bug

This commit is contained in:
imeepos 2025-09-04 20:40:00 +08:00
parent d2acf1b702
commit db67fd718d
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ export class PlatformAuthGuard implements CanActivate {
return true;
} catch (error) {
console.log({token})
throw new UnauthorizedException('令牌验证失败');
}
}

View File

@ -33,7 +33,7 @@ export abstract class N8nImageGenerateTemplate extends ImageGenerateTemplate {
})
.then((res) => res.data)
.then((res) => {
if(res.task_id) return res.task_id
throw new Error(res.msg);
});
}