diff --git a/uniCloud/cloudfunctions/common/uni-im-ext/index.js b/uniCloud/cloudfunctions/common/uni-im-ext/index.js index c113d16a50ea26cca30fa8ca31a95934940bdd46..d9b81d2a8fe39d6a1eb79c16b7947f5c4f4d2346 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