From 121f3fc672617bb4ceae90418bd2c603175c28c2 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Thu, 16 Apr 2026 22:28:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E8=B0=83=E6=95=B4=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/TGHttps.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/TGHttps.ts b/src/utils/TGHttps.ts index a2983797..0a7cf4e6 100644 --- a/src/utils/TGHttps.ts +++ b/src/utils/TGHttps.ts @@ -41,7 +41,7 @@ function createHttpError( /** * 执行 HTTP 请求 - * @since Beta v0.10.0 + * @since Beta v0.10.1 * @param method - 请求方法 * @param url - 请求地址 * @param config - 请求配置 @@ -52,7 +52,8 @@ async function request( url: string, config: TGApp.App.Response.ReqConf = {}, ): Promise> { - const timeout = config.timeout ?? 30000; + // 默认超时1min + const timeout = config.timeout ?? 60000; // 构建完整 URL let finalUrl = url;