From cce492b93a794f0c6901df4ffea092dc36a2029e Mon Sep 17 00:00:00 2001 From: lbq <563294062@qq.com> Date: Fri, 15 Nov 2024 14:09:45 +0800 Subject: [PATCH] fixed #17703 : fix mini game cache api error --- platforms/minigame/common/engine/cache-manager.js | 2 +- platforms/runtime/common/engine/cache-manager.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/minigame/common/engine/cache-manager.js b/platforms/minigame/common/engine/cache-manager.js index 47963569751..7777744dbb1 100644 --- a/platforms/minigame/common/engine/cache-manager.js +++ b/platforms/minigame/common/engine/cache-manager.js @@ -191,7 +191,7 @@ const cacheManager = { } for (let i = 0, l = caches.length; i < l; i++) { const cacheKey = `${cc.assetManager.utils.getUuidFromURL(caches[i].originUrl)}@native`; - cc.assetManager.files.remove(cacheKey); + cc.assetManager._files$.remove(cacheKey); this.cachedFiles.remove(caches[i].originUrl); } diff --git a/platforms/runtime/common/engine/cache-manager.js b/platforms/runtime/common/engine/cache-manager.js index bfba43897e4..a49613ffdae 100644 --- a/platforms/runtime/common/engine/cache-manager.js +++ b/platforms/runtime/common/engine/cache-manager.js @@ -184,7 +184,7 @@ const cacheManager = { } for (let i = 0, l = caches.length; i < l; i++) { const cacheKey = `${cc.assetManager.utils.getUuidFromURL(caches[i].originUrl)}@native`; - cc.assetManager.files.remove(cacheKey); + cc.assetManager._files$.remove(cacheKey); this.cachedFiles.remove(caches[i].originUrl); }