From 937e18bf7781941768e0f7cd34ff0a35c58e6df6 Mon Sep 17 00:00:00 2001 From: DCloud_MQ Date: Wed, 8 May 2024 14:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E4=BA=91=E7=AB=AF=E6=89=A9?= =?UTF-8?q?=E5=B1=95=E6=A1=86=E6=9E=B6=E7=BC=93=E5=AD=98=E6=97=A0=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uniCloud/cloudfunctions/common/uni-im-ext/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uniCloud/cloudfunctions/common/uni-im-ext/index.js b/uniCloud/cloudfunctions/common/uni-im-ext/index.js index c113d16..d9b81d2 100644 --- a/uniCloud/cloudfunctions/common/uni-im-ext/index.js +++ b/uniCloud/cloudfunctions/common/uni-im-ext/index.js @@ -200,7 +200,8 @@ let _registeredExtensionPointsPromise * @returns {any[]} 该扩展点上挂接的所有扩展程序各自的返回值拼装在一个数组里。 */ async function invokeExts(extensionPointName, ...args) { - isFsWritable = (uniCloud.getCloudInfos().provider === 'aliyun') + const [{ provider }] = uniCloud.getCloudInfos() + isFsWritable = (provider === 'aliyun') // 尝试从生成的缓存文件中加载 let registeredExtensionPoints -- GitLab