diff --git a/src/processing/ProcessQuestion.java b/src/processing/ProcessQuestion.java index 703b5af..a04e629 100644 --- a/src/processing/ProcessQuestion.java +++ b/src/processing/ProcessQuestion.java @@ -191,7 +191,7 @@ public class ProcessQuestion { String pair[]; HashSet keyWordSet = null; for(String premise:premisesString) { - System.out.println(premise); + // System.out.println(premise); if (premise.equals("") || premise.equals(" ")) continue; pair = premise.split("=", 2); @@ -681,12 +681,12 @@ public class ProcessQuestion { it = curInfoPoint.keySet().iterator(); String debugInfo = ""; - debugInfo += "(识别:"; + debugInfo += "(识别:"; while(it.hasNext()) { key = it.next(); values = curInfoPoint.get(key); if (values != null && !values[0].equals(" ") && !values[0].equals("") && !skipSet.contains(key)) - debugInfo += (" " + key + ":" + values[0] + " "); + debugInfo += (" " + key + ":\'" + values[0] + "\' "); } debugInfo += ")(已知:"; it = historyInfoPoint.keySet().iterator(); @@ -695,10 +695,10 @@ public class ProcessQuestion { key = it.next(); value = historyInfoPoint.get(key); if(value != null && !value.equals(" ") && !value.equals("") && !skipSet.contains(key)) - debugInfo += (" " + key + ":" + value + " "); + debugInfo += (" " + key + ":\'" + value + "\' "); } - ans.setAnswer( debugInfo + ") " + ans.getAnswer()); + ans.setAnswer( debugInfo + ") " + ans.getAnswer()); } @@ -917,6 +917,8 @@ public class ProcessQuestion { String configStr = ""; Integer configId; for(String configIdStr:activateList.split(",")){ + if (!StringUtils.isNumeric(configIdStr)) + continue; configId = Integer.parseInt(configIdStr); Condition condition = new Condition(); configStr = userinfo.id2config.get(configId);