1
This commit is contained in:
parent
9afc3f82d5
commit
3569981edc
@ -106,7 +106,7 @@ export default {
|
||||
}, token);
|
||||
} else {
|
||||
// 使用原有方法(不等待结果)
|
||||
generateImages(model||'jimeng-3.0', task_id, prompt, {
|
||||
generateImages(model||'jimeng-3.0', task_id, newPrompt, {
|
||||
width,
|
||||
height,
|
||||
sampleStrength: sample_strength || 0.5,
|
||||
|
||||
@ -396,9 +396,8 @@ export class TaskPollingService {
|
||||
return;
|
||||
}
|
||||
|
||||
const { status, fail_code: failCode, item_list } = result[historyId];
|
||||
|
||||
taskLog(`调用即梦API检查结果 ${task.task_id} [status:${status} fail_code: ${failCode}]`);
|
||||
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}]`);
|
||||
if (status === 20 || status === 45) {
|
||||
// 仍在生成中,更新下次轮询时间
|
||||
await GenerationTask.updateOne(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user