This commit is contained in:
jonathang4 2025-12-15 15:13:21 +08:00
parent 9afc3f82d5
commit 3569981edc
2 changed files with 3 additions and 4 deletions

View File

@ -106,7 +106,7 @@ export default {
}, token); }, token);
} else { } else {
// 使用原有方法(不等待结果) // 使用原有方法(不等待结果)
generateImages(model||'jimeng-3.0', task_id, prompt, { generateImages(model||'jimeng-3.0', task_id, newPrompt, {
width, width,
height, height,
sampleStrength: sample_strength || 0.5, sampleStrength: sample_strength || 0.5,

View File

@ -396,9 +396,8 @@ export class TaskPollingService {
return; return;
} }
const { status, fail_code: failCode, item_list } = result[historyId]; const { status, fail_code: failCode, fail_msg, item_list } = result[historyId];
taskLog(`调用即梦API检查结果 ${task.task_id} [status${status} fail_code: ${failCode} fail_msg: ${fail_msg}]`);
taskLog(`调用即梦API检查结果 ${task.task_id} [status${status} fail_code: ${failCode}]`);
if (status === 20 || status === 45) { if (status === 20 || status === 45) {
// 仍在生成中,更新下次轮询时间 // 仍在生成中,更新下次轮询时间
await GenerationTask.updateOne( await GenerationTask.updateOne(