1
This commit is contained in:
parent
9afc3f82d5
commit
3569981edc
@ -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,
|
||||||
|
|||||||
@ -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(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user