Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qwgame
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵国君
qwgame
Commits
f4ead641
Commit
f4ead641
authored
Apr 19, 2019
by
赵国君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志修改
parent
115271fa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
ActionMatcher.java
...ava/com/qiwu/chatbotbackend/processing/ActionMatcher.java
+21
-4
BasicBotUtil.java
...java/com/qiwu/chatbotbackend/task/utils/BasicBotUtil.java
+0
-0
No files found.
src/main/java/com/qiwu/chatbotbackend/processing/ActionMatcher.java
View file @
f4ead641
...
...
@@ -88,7 +88,9 @@ public class ActionMatcher {
if
(
action
.
getStatus
().
equals
(
"waiting"
)){
logWriter
.
record
(
"-----------------------------------检索到配置条目"
,
0
);
logWriter
.
record
(
userinfo
.
id2config
.
get
(
action
.
getId
()),
1
);
//logWriter.record(userinfo.id2config.get(action.getId()), 1);
Action
action2
=
userinfo
.
id2condition
.
get
(
action
.
getId
());
logWriter
.
record
(
action2
.
getConfigName
()
+
" - "
+
action2
.
getId
(),
1
);
//是否有激活操作,如果有激活操作且没有提交表单则判断是否满足条件,如果有激活有提交表单,则放在整个操作完成(getSolution)之后再激活
if
(
action
.
getFeatureMap
().
get
(
"activate"
)
!=
null
&&
!
action
.
getFeatureMap
().
containsKey
(
"post"
))
{
...
...
@@ -163,8 +165,9 @@ public class ActionMatcher {
logWriter
.
record
(
"-----------------------------------检索到配置条目"
,
0
);
logWriter
.
record
(
userinfo
.
id2config
.
get
(
action
.
getId
()),
1
);
//logWriter.record(userinfo.id2config.get(action.getId()), 1);
Action
action2
=
userinfo
.
id2condition
.
get
(
action
.
getId
());
logWriter
.
record
(
action2
.
getConfigName
()
+
" - "
+
action2
.
getId
(),
1
);
if
(
higherPriority
(
action
,
bestMatch
))
replaceFlag
=
true
;
...
...
@@ -678,7 +681,21 @@ public class ActionMatcher {
historyInfoPoint
.
put
(
"currentAction"
,
next
);
historyInfoPoint
.
put
(
"activeList"
,
historyInfoPoint
.
get
(
"activeList"
)
+
"|"
+
next
);
logWriter
.
record
(
"处理完成后的信息点:<br>"
+
historyInfoPoint
.
toString
(),
1
);
// logWriter.record("处理完成后的信息点:<br>" + historyInfoPoint.toString(), 1);
StringBuilder
sb
=
new
StringBuilder
(
"处理完成后的信息点:<br>"
);
for
(
Map
.
Entry
<
String
,
String
>
entry
:
historyInfoPoint
.
entrySet
())
{
if
(
entry
.
getValue
()==
null
||
entry
.
getValue
().
equals
(
""
))
continue
;
switch
(
entry
.
getKey
())
{
case
"unknownText"
:
case
"unknownTextList"
:
case
"finalUnknownText"
:
break
;
default
:
sb
.
append
(
entry
.
getKey
()
+
":"
+
entry
.
getValue
()
+
", "
);
}
}
logWriter
.
record
(
sb
.
toString
(),
1
);
HashSet
<
String
>
skipSet
=
new
HashSet
<
String
>()
{
{
...
...
src/main/java/com/qiwu/chatbotbackend/task/utils/BasicBotUtil.java
View file @
f4ead641
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment