Commit bf788774 authored by liujiangnan's avatar liujiangnan

feat: 原生调用的判断

parent b6acd553
......@@ -33,7 +33,11 @@ export function initAir(_this) {
if (key == "osmoCallback" || key == "osmoHandwritingCallback" || key == "osmoFingerReadCallback") {
newValue = function (res) {
_this.log(`||==成功调用${key}==||参数==${JSON.stringify(res)}`);
value(JSON.stringify(res));
if(typeof(res) == 'string') {
value(res);
} else {
value(JSON.stringify(res));
}
}
}
return Reflect.set(target, key, newValue, receiver);
......
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