From c274c67652c24db10abb8ae0dc683832f523ce42 Mon Sep 17 00:00:00 2001 From: zhukai Date: Tue, 6 Jun 2023 09:33:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=90=8E=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mj-api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mj-api.ts b/src/mj-api.ts index bf35db1..937d081 100644 --- a/src/mj-api.ts +++ b/src/mj-api.ts @@ -91,7 +91,7 @@ export class MJApi { if (status == 'SUBMITTED') { room.say(`@${userName} \n✅ 您的任务已提交\n✨ ${description}\n🚀 正在快速处理中,请稍后`); } else if (status == 'FAILURE') { - room.say(`@${userName} \n❌ 任务执行失败\n✨ ${description}`); + room.say(`@${userName} \n❌ 任务执行失败\n✨ ${description}\n📒 失败原因: ${req.body.failReason}`); } else if (status == 'SUCCESS') { const time = req.body.finishTime - req.body.submitTime; if (action == 'UPSCALE') { @@ -106,7 +106,7 @@ export class MJApi { } else { const taskId = req.body.id; const prompt = req.body.prompt; - await room.say(`@${userName} \n🎨 ${action == 'IMAGINE' ? '绘图' : '变换'}成功,用时 ${displayMilliseconds(time)}\n✨ Prompt: ${prompt}\n📨 任务ID: ${taskId}\n🪄 放大 U1~U4 ,变换 V1~V4\n✏️ 使用[/up 任务ID 操作]\n/up ${taskId} U1`); + await room.say(`@${userName} \n🎨 ${action == 'IMAGINE' ? '绘图' : '变换'}成功,用时 ${displayMilliseconds(time)}\n✨ Prompt: ${prompt}\n📨 任务ID: ${taskId}\n🪄 放大 U1~U4,变换 V1~V4\n✏️ 使用[/up 任务ID 操作]\n/up ${taskId} U1`); let image; if (config.httpProxy) { image = await this.proxyDownloadImage(req.body.imageUrl);