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; } }