fix: 修复n8n异步任务解析结果bug
This commit is contained in:
parent
d2acf1b702
commit
db67fd718d
|
|
@ -43,6 +43,7 @@ export class PlatformAuthGuard implements CanActivate {
|
|||
|
||||
return true;
|
||||
} catch (error) {
|
||||
console.log({token})
|
||||
throw new UnauthorizedException('令牌验证失败');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue