From f9c85aedda065e871f5dca7bc625bdc7471be5f8 Mon Sep 17 00:00:00 2001 From: SmallMain Date: Thu, 31 Oct 2024 17:17:50 +0800 Subject: [PATCH] =?UTF-8?q?[adapters]=20=E5=A4=9A=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E5=86=85=E7=9A=84=E7=BD=91=E7=BB=9C=E8=B0=83=E7=94=A8=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E9=AB=98=E6=80=A7=E8=83=BD=E6=A8=A1=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E6=94=AF=E6=8C=81=20Http2=E3=80=81Quic/Http3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adapters/platforms/wechat/res/workers/fs-utils-sync.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adapters/platforms/wechat/res/workers/fs-utils-sync.js b/adapters/platforms/wechat/res/workers/fs-utils-sync.js index 5e5a6517..ac7bd7c9 100644 --- a/adapters/platforms/wechat/res/workers/fs-utils-sync.js +++ b/adapters/platforms/wechat/res/workers/fs-utils-sync.js @@ -68,6 +68,9 @@ var fsUtils = { downloadFile(remoteUrl, filePath, header, onProgress, onComplete) { var options = { url: remoteUrl, + useHighPerformanceMode: true, + enableHttp2: true, + enableQuic: true, success: function (res) { if (res.statusCode === 200) { onComplete && onComplete(null, res.tempFilePath || res.filePath);