mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
alipay: the accessSync interface needs to check if it is successful. (#15616)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user