From 90cd14f1051ee1bac8f1d5aea40d4367dc28d258 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 19 Jul 2019 19:00:39 +0800 Subject: [PATCH] fix method argument type error --- .../java/com/github/pengfeizhou/doric/utils/DoricUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Android/doric/src/main/java/com/github/pengfeizhou/doric/utils/DoricUtils.java b/Android/doric/src/main/java/com/github/pengfeizhou/doric/utils/DoricUtils.java index 41bb2b59..3fb815bb 100644 --- a/Android/doric/src/main/java/com/github/pengfeizhou/doric/utils/DoricUtils.java +++ b/Android/doric/src/main/java/com/github/pengfeizhou/doric/utils/DoricUtils.java @@ -82,9 +82,9 @@ public class DoricUtils { if (clz == JSValue.class || JSValue.class.isAssignableFrom(clz)) { return jsValue; } else if (clz == String.class) { - return jsValue.asString(); + return jsValue.asString().value(); } else if (clz == boolean.class || clz == Boolean.class) { - return jsValue.asBoolean(); + return jsValue.asBoolean().value(); } else if (clz == int.class || clz == Integer.class) { return jsValue.asNumber().toInt(); } else if (clz == long.class || clz == Long.class) {