From 39873305339ae2e0bcf4be8a18f33c8bedd7a4e0 Mon Sep 17 00:00:00 2001 From: qiang Date: Fri, 21 Jun 2024 20:21:38 +0800 Subject: [PATCH] chore: build --- packages/uni-app-plus/dist/uni.x.runtime.esm.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/uni-app-plus/dist/uni.x.runtime.esm.js b/packages/uni-app-plus/dist/uni.x.runtime.esm.js index 6bca8c67c6..d2f9f2bbdc 100644 --- a/packages/uni-app-plus/dist/uni.x.runtime.esm.js +++ b/packages/uni-app-plus/dist/uni.x.runtime.esm.js @@ -2313,6 +2313,16 @@ function getProxy() { return nativeChannel.invokeSync("APP-SERVICE", args, callback); }, invokeAsync(args, callback) { + if ( + // 硬编码 + args.moduleName === "uni-ad" && ["showByJs", "loadByJs"].includes(args.name) + ) { + var res = nativeChannel.invokeSync("APP-SERVICE", args, callback); + callback(extend(res, { + params: [res.params] + })); + return res; + } return nativeChannel.invokeAsync("APP-SERVICE", args, callback); } }; -- GitLab