File tree Expand file tree Collapse file tree
plugin-apipost/src/main/kotlin/me/leon/toolsfx/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -454,7 +454,8 @@ class ApiPostView : PluginFragment("ApiPost") {
454454 }
455455 val showdata =
456456 if (showJsonPath.get() && tfJsonPath.text.trim().isNotEmpty()) {
457- resp.data.simpleJsonPath(tfJsonPath.text.trim())
457+ runCatching { resp.data.simpleJsonPath(tfJsonPath.text.trim()) }
458+ .getOrElse { resp.data }
458459 } else {
459460 resp.data
460461 }
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ fun String.methodCall(args: String): String {
3939 " base64" -> args.base64()
4040 " base64File" -> args.toFile().readBytes().base64()
4141 " binary" -> args.toBinaryString()
42+ " env" -> System .getenv(args)
4243 " uppercase" -> args.uppercase()
4344 " lowercase" -> args.lowercase()
4445 " date2Mills" ->
You can’t perform that action at this time.
0 commit comments