alipay: the accessSync interface needs to check if it is successful. (#15616)

This commit is contained in:
bofeng-song
2023-07-05 11:02:37 +08:00
committed by GitHub
parent da0374bb1a
commit 85db1c3d7c
@@ -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;
}
}