Commit 6950e474 by fz

1.触发条件value,修复json解析反斜杠问题

1 parent d7f4887b
...@@ -152,8 +152,7 @@ public class SceneService { ...@@ -152,8 +152,7 @@ public class SceneService {
ScenseParamValue paramValue = null; ScenseParamValue paramValue = null;
try { try {
String json = StringEscapeUtils.unescapeJavaScript(value); paramValue = JSON.parseObject(JSON.parse(value).toString(), ScenseParamValue.class);
paramValue = JSON.parseObject(json, ScenseParamValue.class);
} catch (Exception e) { } catch (Exception e) {
log.info("JSON解析异常:ScenseParamValue===="+e.getMessage()+"===conditionId:"+condition.getId()+"===conditionType:"+conditionType); log.info("JSON解析异常:ScenseParamValue===="+e.getMessage()+"===conditionId:"+condition.getId()+"===conditionType:"+conditionType);
return false; return false;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!