Эх сурвалжийг харах

修改js引擎返回类型

andy 1 жил өмнө
parent
commit
0bead5563a

+ 1 - 1
src/main/java/com/scbfkj/uni/library/script/JsScriptEngineUtil.java

@@ -58,7 +58,7 @@ public final class JsScriptEngineUtil {
                 Value result = function.execute();
                 return UniReturnUtil.success(toHostObject(result));
             } else {
-                return UniReturnUtil.success(toString(function));
+                return UniReturnUtil.success(toHostObject(function));
             }
         } catch (Exception e) {
             System.out.println(script);