huan-jie %!s(int64=5) %!d(string=hai) anos
pai
achega
7e2bacdc95
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      plugins/bridge.js

+ 2 - 2
plugins/bridge.js

@@ -134,12 +134,12 @@ const factory = function() {
 
         if (this.isAndroid) {
             if (typeof this.root[fn] === 'function') {
-                return payload ? this.root[fn](payload) : this.root[fn]()
+                return data ? this.root[fn](data) : this.root[fn]()
             } else {
                 return null
             }
         } else {
-            return this.root(fn, payload)
+            return this.root(fn, data)
         }
     }