From b34203f33cce667858f124a656e66d99812bce8e Mon Sep 17 00:00:00 2001 From: bofeng-song Date: Thu, 17 Oct 2024 16:31:28 +0800 Subject: [PATCH] Fix adapter's error on taobao platform (#17734) --- pal/wasm/wasm-minigame.ts | 6 +----- .../taobao-mini-game/wrapper/builtin/localStorage.js | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pal/wasm/wasm-minigame.ts b/pal/wasm/wasm-minigame.ts index 687babefc42..6068640e850 100644 --- a/pal/wasm/wasm-minigame.ts +++ b/pal/wasm/wasm-minigame.ts @@ -119,11 +119,7 @@ function getPlatformBinaryUrl (binaryUrl: string): Promise { if (XIAOMI) { resolve(`src/cocos-js/${binaryUrl}`); } if (TAOBAO_MINIGAME && WASM_SUBPACKAGE) { - if (minigame.isDevTool) { - resolve(`cocos-js/${binaryUrl}`); - } else { - resolve(`__ccWasmAssetSubpkg__/${basename(binaryUrl)}`); - } + resolve(`__ccWasmAssetSubpkg__/${basename(binaryUrl)}`); } else { resolve(`cocos-js/${binaryUrl}`); } diff --git a/platforms/minigame/platforms/taobao-mini-game/wrapper/builtin/localStorage.js b/platforms/minigame/platforms/taobao-mini-game/wrapper/builtin/localStorage.js index 7f4ed0de2d8..700d3be730c 100644 --- a/platforms/minigame/platforms/taobao-mini-game/wrapper/builtin/localStorage.js +++ b/platforms/minigame/platforms/taobao-mini-game/wrapper/builtin/localStorage.js @@ -26,7 +26,7 @@ const localStorage = { }, removeItem(key) { - my.removeStorageSync(key) + my.removeStorageSync({ key }) }, clear() {