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
d2717eef
Commit
d2717eef
authored
Apr 13, 2019
by
赵国君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
cdf861c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
ActionUtils.java
...qiwu/chatbotbackend/actiongenerate/utils/ActionUtils.java
+0
-4
PlotConstructor2.java
.../com/qiwu/chatbotbackend/gameDesign/PlotConstructor2.java
+8
-7
No files found.
src/main/java/com/qiwu/chatbotbackend/actiongenerate/utils/ActionUtils.java
View file @
d2717eef
...
...
@@ -832,11 +832,7 @@ public class ActionUtils {
try
{
platformUtils
=
new
PlatformUtils
();
//helper.deleteUserData(botId);
idList
=
platformUtils
.
queryConditionIdByTypetreeId
(
parameters
.
getJSONArray
(
"conditionCategories"
));
id2unit
=
engine
.
queryUnitsByIdList
(
idList
);
for
(
Integer
id:
id2unit
.
keySet
()){
...
...
src/main/java/com/qiwu/chatbotbackend/gameDesign/PlotConstructor2.java
View file @
d2717eef
...
...
@@ -985,14 +985,15 @@ public class PlotConstructor2 extends ElementConstructor {
String
feature
=
newTerm
.
getFeature
();
feature
=
feature
+
",activate,post::gameQA("
+
QA_URL
+
")"
;
newTerm
.
setFeature
(
feature
);
newTerm
.
setNextStep
(
stemStr
+
"_qa1,"
+
stemStr
+
"_qa2"
);
newTerm
.
setNextStep
(
"map*,item*,npc*,"
+
stemStr
+
"_qa1,"
+
stemStr
+
"_qa2"
);
return
newTerm
;
}
private
ConfigTermText
createTermExtra1
(
ConfigTermText
term
)
{
String
hPremise
=
"qa_score::number-Bigger=90"
;
String
featureStr
=
"match,activate,return-0"
;
String
nextStr
=
"map*,item*,npc*"
;
String
hPremise
=
"qa_score::number-BiggerOrEqual=98"
;
String
featureStr
=
"match,return-0"
;
//String nextStr = "map*,item*,npc*";
String
nextStr
=
" "
;
String
knowledgeStr
=
UNKNOWN_COUNTER_NAME
+
":+1"
;
String
configName
=
term
.
getConfigName
()+
"_qa1"
;
ConfigTermText
newTerm
=
new
ConfigTermText
(
" "
,
hPremise
,
featureStr
,
""
,
nextStr
,
knowledgeStr
);
...
...
@@ -1002,9 +1003,9 @@ public class PlotConstructor2 extends ElementConstructor {
}
private
ConfigTermText
createTermExtra2
(
ConfigTermText
term
)
{
String
hPremise
=
"qa_score::number-Smaller=9
0
"
;
String
featureStr
=
"match
,activate
"
;
String
nextStr
=
"
map*,item*,npc*
"
;
String
hPremise
=
"qa_score::number-Smaller=9
8
"
;
String
featureStr
=
"match"
;
String
nextStr
=
"
"
;
String
configName
=
term
.
getConfigName
()+
"_qa2"
;
if
(
term
.
getFeature
().
indexOf
(
"activate"
)
!=
-
1
)
{
nextStr
=
term
.
getNextStep
()
+
","
+
nextStr
;
...
...
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