From 85db1c3d7cba6166ab8d5aec5da103db953ff1d3 Mon Sep 17 00:00:00 2001 From: bofeng-song Date: Wed, 5 Jul 2023 11:02:37 +0800 Subject: [PATCH] alipay: the accessSync interface needs to check if it is successful. (#15616) --- platforms/minigame/common/engine/AssetManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/minigame/common/engine/AssetManager.js b/platforms/minigame/common/engine/AssetManager.js index e2d0a4b1ff..7d1ceee4a8 100644 --- a/platforms/minigame/common/engine/AssetManager.js +++ b/platforms/minigame/common/engine/AssetManager.js @@ -278,7 +278,7 @@ function downloadBundle (nameOrUrl, options, onComplete) { // to remove in the future if (sys.platform === sys.Platform.ALIPAY_MINI_GAME && sys.os === sys.OS.ANDROID) { const resPath = `${unzipPath}res/`; - if (fs.accessSync({ path: resPath })) { + if (fs.accessSync({ path: resPath }).success) { data.base = resPath; } }