From 37a31f7264e8017d20b71118046c6baff425ce31 Mon Sep 17 00:00:00 2001 From: shiyue <935732994@qq.com> Date: Wed, 3 Sep 2025 17:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=9C=A8`app.js`?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E5=B0=86`Promise.all`=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E4=B8=BA`Promise.allSettled`=E4=BB=A5=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=9B=BE=E5=83=8F=E7=94=9F=E6=88=90=E5=A4=B1=E8=B4=A5=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E5=B0=86`generateImageWithRetry`=E7=9A=84=E6=9C=80?= =?UTF-8?q?=E5=A4=A7=E9=87=8D=E8=AF=95=E6=AC=A1=E6=95=B0=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=88=B015=E6=AC=A1=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 4d7f22a..ebf748a 100644 --- a/script.js +++ b/script.js @@ -2042,7 +2042,7 @@ const app = { } // 等待所有请求完成 - await Promise.all(promises); + await Promise.allSettled(promises); // 检查存储空间 await utils.checkAndCleanStorage(); @@ -2065,7 +2065,7 @@ const app = { // 带重试机制的图像生成方法 generateImageWithRetry: async function(message, images, settings, imageIndex, totalImages) { - const maxRetries = 5; + const maxRetries = 15; let retryCount = 0; while (retryCount <= maxRetries) {