提交 39873305 编写于 作者: Q qiang

chore: build

上级 39c368f5
......@@ -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);
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册