diff --git a/chatbotbackend.iml b/chatbotbackend.iml
deleted file mode 100644
index d0d10d3..0000000
--- a/chatbotbackend.iml
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/main/java/com/qiwu/chatbotbackend/processing/ActionMatcher.java b/src/main/java/com/qiwu/chatbotbackend/processing/ActionMatcher.java
index 33068b4..87f60c7 100644
--- a/src/main/java/com/qiwu/chatbotbackend/processing/ActionMatcher.java
+++ b/src/main/java/com/qiwu/chatbotbackend/processing/ActionMatcher.java
@@ -831,9 +831,7 @@ public class ActionMatcher {
System.out.println("提交表单" + gameEnv);
poster.postGameQA(curInfoPoint, historyInfoPoint, ans, gameEnv, worldController, url, userinfo);
}
-
return ans;
-
}
public Solution findNewNext(Solution ans, Action ansAction) {
diff --git a/src/main/java/com/qiwu/chatbotbackend/processing/FormsPoster.java b/src/main/java/com/qiwu/chatbotbackend/processing/FormsPoster.java
index 17e2f3b..b51ba83 100644
--- a/src/main/java/com/qiwu/chatbotbackend/processing/FormsPoster.java
+++ b/src/main/java/com/qiwu/chatbotbackend/processing/FormsPoster.java
@@ -221,7 +221,7 @@ public class FormsPoster {
Matcher m = findTalker.matcher((String) textscore.get(0));
if (m.find()) {
npc = m.group(1);
- if ((GameBotUtil.sameLocation((String) textscore.get(0), curInfoPoint, historyInfoPoint, gameEnv, historyInfoPoint.get("site"), logWriter) == 1)) {
+ if ((GameBotUtil.sameLocation((String) textscore.get(0), gameEnv, historyInfoPoint.get("site"), logWriter) == 1)) {
historyInfoPoint.put("common_answer", (String) textscore.get(0));
historyInfoPoint.put("qa_score", String.valueOf(textscore.get(1)));
break;
@@ -239,6 +239,10 @@ public class FormsPoster {
}
}
+
+// private void postLoadQA() {
+//
+// }
public void postGameQA(Map curInfoPoint, Map historyInfoPoint, Solution ans,GameEnv gameEnv, WorldController worldController, String URL, UserInfo userInfo) throws UnsupportedEncodingException {
postGameQA1(historyInfoPoint.get("game_step"), curInfoPoint, historyInfoPoint,ans, gameEnv, worldController, URL, userInfo);
diff --git a/src/main/java/com/qiwu/chatbotbackend/task/utils/GameBotUtil.java b/src/main/java/com/qiwu/chatbotbackend/task/utils/GameBotUtil.java
index 226eba2..59eb87a 100644
--- a/src/main/java/com/qiwu/chatbotbackend/task/utils/GameBotUtil.java
+++ b/src/main/java/com/qiwu/chatbotbackend/task/utils/GameBotUtil.java
@@ -141,6 +141,7 @@ public class GameBotUtil extends BasicBotUtil{
}else {
//对剧情文本做处理,或者说对unknown文本做处理
+ System.out.println("$$ plotText:" + plotText);
finalText.append(plotTextFilt(plotText));
}
@@ -457,14 +458,12 @@ public class GameBotUtil extends BasicBotUtil{
* 1:说话者在当前地点
* 2:说话者不在当前地点或者不能说话
* @param reply
- * @param curInfoPoint
- * @param historyInfoPoint
* @param gameEnv
* @param site
* @param logWriter
* @return
*/
- public static Integer sameLocation(String reply, Map curInfoPoint, Map historyInfoPoint, GameEnv gameEnv, String site, LogWriter logWriter){
+ public static Integer sameLocation(String reply, GameEnv gameEnv, String site, LogWriter logWriter){
String npc, location;
Matcher m = findTalker(reply);
@@ -516,9 +515,6 @@ public class GameBotUtil extends BasicBotUtil{
}
if (location.equals(site) || location.equals("无处不在") || location.equals("任意地点")){
if(chatCache.getGameEnv().queryNpcAttrByNpcName(npc, "能否说话") == null || chatCache.getGameEnv().queryNpcAttrByNpcName(npc, "能否说话").equals("能")){
-
-
-
if(onlineDetect){
if(isOnlineMode(npc, chatCache.getInfoPoint())){
logWriter.record("\"" + npc + "\":匹配", 1);
@@ -533,9 +529,7 @@ public class GameBotUtil extends BasicBotUtil{
}else {
logWriter.record("\"" + npc + "\":" + npc +"不在" + site + ",跳过",1 );
}
-
return flag;
-
}
@@ -619,14 +613,13 @@ public class GameBotUtil extends BasicBotUtil{
}
- public String textTypeDetect(String text, String site){
+ public String textTypeDetect(String text, String site) {
int code = 0;
String textType = "to_unknown", npc;
-
-
Boolean flag = true;
npc = findFirstTalker(text);
+ System.out.println("findFirstTalker:" + npc);
if(text.equals("")){
textType = "to_unknown";
@@ -637,10 +630,6 @@ public class GameBotUtil extends BasicBotUtil{
}else{
textType = "to_unknown";
}
-
-
-
-
return textType;
}