Commit 93a89c4c authored by 郑磊's avatar 郑磊

update

parent b36ce54a
...@@ -64,7 +64,9 @@ function callAndroidApi(name: string, ...args: any[]): void { ...@@ -64,7 +64,9 @@ function callAndroidApi(name: string, ...args: any[]): void {
params = '' params = ''
} }
result = eval(`window.liveapp.${name}(${params})`) const evalCode = `window.liveapp.${name}(${params})`
console.log(evalCode)
result = eval(evalCode)
if (typeof ack === 'function') { if (typeof ack === 'function') {
ack(result) ack(result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment