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) {