fix method argument type error

This commit is contained in:
pengfei.zhou 2019-07-19 19:00:39 +08:00
parent 64ba346d38
commit 90cd14f105

View File

@ -82,9 +82,9 @@ public class DoricUtils {
if (clz == JSValue.class || JSValue.class.isAssignableFrom(clz)) { if (clz == JSValue.class || JSValue.class.isAssignableFrom(clz)) {
return jsValue; return jsValue;
} else if (clz == String.class) { } else if (clz == String.class) {
return jsValue.asString(); return jsValue.asString().value();
} else if (clz == boolean.class || clz == Boolean.class) { } else if (clz == boolean.class || clz == Boolean.class) {
return jsValue.asBoolean(); return jsValue.asBoolean().value();
} else if (clz == int.class || clz == Integer.class) { } else if (clz == int.class || clz == Integer.class) {
return jsValue.asNumber().toInt(); return jsValue.asNumber().toInt();
} else if (clz == long.class || clz == Long.class) { } else if (clz == long.class || clz == Long.class) {