| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 699f78d commit b11b822
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,7 @@ | |||
| 14 | 14 | import static apijson.RequestMethod.HEADS; | |
| 15 | 15 | import static apijson.RequestMethod.POST; | |
| 16 | 16 | import static apijson.RequestMethod.PUT; | |
| 17 | + import static apijson.orm.AbstractFunctionParser.ENABLE_SCRIPT_FUNCTION; | ||
| 17 | 18 | import static apijson.orm.Operation.*; | |
| 18 | 19 | //import static apijson.orm.Operation.CODE; | |
| 19 | 20 | ||
@@ -1339,6 +1340,11 @@ && rv instanceof List<?> && isArrayKey(rk)) { | |||
| 1339 | 1340 | } | |
| 1340 | 1341 | ||
| 1341 | 1342 | public static ScriptEngine getScriptEngine(String lang) { | |
| 1343 | + if (ENABLE_SCRIPT_FUNCTION == false) { | ||
| 1344 | + throw new UnsupportedOperationException("AbstractFunctionParser.ENABLE_SCRIPT_FUNCTION" + | ||
| 1345 | + " == false 时不支持执行脚本!如需支持则设置为 true !"); | ||
| 1346 | + } | ||
| 1347 | + | ||
| 1342 | 1348 | boolean isEmpty = StringUtil.isEmpty(lang, true); | |
| 1343 | 1349 | ScriptEngine engine = isEmpty ? SCRIPT_ENGINE : SCRIPT_ENGINE_MANAGER.getEngineByName(lang); | |
| 1344 | 1350 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments