From 76dd0ddcc364c721934105f663d3c3967f62bebb Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Mon, 10 Oct 2022 23:26:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=BC=96=E7=A0=81=E8=A7=84?= =?UTF-8?q?=E5=88=99=E6=97=A0=E6=B3=95=E7=9B=B4=E6=8E=A5=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/skyeye/eve/entity/coderule/util/CodePattern.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/eve/entity/coderule/util/CodePattern.java b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/eve/entity/coderule/util/CodePattern.java index 20e53c6a..12eb090a 100644 --- a/skyeye-promote/skyeye-common/src/main/java/com/skyeye/eve/entity/coderule/util/CodePattern.java +++ b/skyeye-promote/skyeye-common/src/main/java/com/skyeye/eve/entity/coderule/util/CodePattern.java @@ -157,6 +157,8 @@ public class CodePattern { if ("map".equalsIgnoreCase(type)) { if (obj.getJSONObject("content").containsKey(value)) { return obj.getJSONObject("content").getStr(value); + } else { + return value; } } else { return FeatureScriptUtil.invokeScript(obj.getStr("content"), key, value); @@ -164,7 +166,6 @@ public class CodePattern { } else { return value; } - return ""; } /**