Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SmartBox
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
苗权威
SmartBox
Commits
f8b3597c
Commit
f8b3597c
authored
Nov 22, 2019
by
苗权威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11.22
parent
fc461663
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
460 additions
and
273 deletions
+460
-273
workspace.xml
.idea/workspace.xml
+308
-242
OkHttp3Utils.java
...ain/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java
+1
-1
TTSController.java
...ava/ai/qiwu/com/tts_service/controller/TTSController.java
+10
-1
LieHuSchedule.java
...n/java/ai/qiwu/com/tts_service/service/LieHuSchedule.java
+22
-2
Test.java
...e/src/main/java/ai/qiwu/com/tts_service/service/Test.java
+8
-6
ThirdPartyService.java
...qiwu/com/tts_service/service/baidu/ThirdPartyService.java
+2
-0
Constants.java
...rc/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java
+1
-0
XiaoDuHomeController.java
.../qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java
+1
-1
DplBotService.java
...in/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java
+48
-12
RequestTerminal.java
.../java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java
+9
-0
XiaoAiConstants.java
...ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java
+5
-1
XiaoAiService.java
.../ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java
+45
-7
No files found.
.idea/workspace.xml
View file @
f8b3597c
...
@@ -11,29 +11,17 @@
...
@@ -11,29 +11,17 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"4a2f3afc-3cd8-46bb-9e78-9759246c43dc"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"4a2f3afc-3cd8-46bb-9e78-9759246c43dc"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/common/Code.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/common/Code.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/pom.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/
TTService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServic
e.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/
LieHuSchedule.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/LieHuSchedul
e.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Test.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Test.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Test.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Test.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/
xiaoduhome/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/pom.xml
"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java
"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTB.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTB.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuRequest.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuRequest.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuResponse.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuResponse.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/RequestTerminal.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/RequestTerminal.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/model/QiWuRequest.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/model/QiWuRequest.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml"
afterDir=
"false"
/>
</list>
</list>
<ignored
path=
"$PROJECT_DIR$/out/"
/>
<ignored
path=
"$PROJECT_DIR$/out/"
/>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
...
@@ -79,63 +67,73 @@
...
@@ -79,63 +67,73 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
515
"
>
<state
relative-caret-position=
"
163
"
>
<caret
line=
"
343"
column=
"27"
lean-forward=
"true"
selection-start-line=
"343"
selection-start-column=
"27"
selection-end-line=
"343"
selection-end-column=
"27
"
/>
<caret
line=
"
631"
column=
"35"
selection-start-line=
"631"
selection-start-column=
"35"
selection-end-line=
"631"
selection-end-column=
"35
"
/>
<folding>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#36492#36493#0"
expanded=
"true"
/>
<element
signature=
"e#36550#36551#0"
expanded=
"true"
/>
<element
signature=
"e#82094#82164#0"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
controller/XiaoDuHomeController
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
service/RequestTerminal
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"57
8
"
>
<state
relative-caret-position=
"57
0
"
>
<caret
line=
"
64"
column=
"5"
selection-start-line=
"64"
selection-start-column=
"5"
selection-end-line=
"64"
selection-end-column=
"5
"
/>
<caret
line=
"
59"
column=
"30"
selection-start-line=
"59"
selection-start-column=
"16"
selection-end-line=
"59"
selection-end-column=
"30
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
common/Constants
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
xiaoai/service/XiaoAiService
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"264"
>
<state
relative-caret-position=
"1567"
>
<caret
line=
"102"
column=
"55"
selection-start-line=
"102"
selection-start-column=
"55"
selection-end-line=
"102"
selection-end-column=
"55"
/>
<caret
line=
"314"
column=
"47"
selection-start-line=
"314"
selection-start-column=
"47"
selection-end-line=
"314"
selection-end-column=
"47"
/>
<folding>
<element
signature=
"e#11213#11214#0"
expanded=
"true"
/>
<element
signature=
"e#11270#11271#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiServic
e.java"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initializ
e.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1062"
>
<state
relative-caret-position=
"246"
>
<caret
line=
"287"
column=
"62"
selection-start-line=
"287"
selection-start-column=
"62"
selection-end-line=
"287"
selection-end-column=
"62"
/>
<caret
line=
"156"
column=
"74"
selection-start-line=
"156"
selection-start-column=
"55"
selection-end-line=
"156"
selection-end-column=
"74"
/>
<folding>
<element
signature=
"e#10574#10575#0"
expanded=
"true"
/>
<element
signature=
"e#10616#10617#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService
.java"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/service/Test
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"476"
>
<state
relative-caret-position=
"2778"
>
<caret
line=
"257"
column=
"44"
selection-start-line=
"257"
selection-start-column=
"44"
selection-end-line=
"257"
selection-end-column=
"44"
/>
<caret
line=
"264"
column=
"80"
selection-start-line=
"264"
selection-start-column=
"80"
selection-end-line=
"264"
selection-end-column=
"80"
/>
<folding>
<element
signature=
"e#12433#12434#0"
expanded=
"true"
/>
<element
signature=
"e#12474#12475#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
service/DplbotServiceUti
l.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
xiaoai/common/RequestTermina
l.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"300"
>
<state
relative-caret-position=
"660"
>
<caret
line=
"101"
column=
"34"
selection-start-line=
"101"
selection-start-column=
"18"
selection-end-line=
"101"
selection-end-column=
"34"
/>
<caret
line=
"38"
column=
"81"
selection-start-line=
"38"
selection-start-column=
"81"
selection-end-line=
"38"
selection-end-column=
"81"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"220"
>
<caret
line=
"10"
column=
"34"
selection-start-line=
"10"
selection-start-column=
"34"
selection-end-line=
"10"
selection-end-column=
"34"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -154,12 +152,6 @@
...
@@ -154,12 +152,6 @@
</component>
</component>
<component
name=
"FindInProjectRecents"
>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<findStrings>
<find>
init_tone
</find>
<find>
PERSON_INFO_ONLINE
</find>
<find>
9395788731
</find>
<find>
log.error
</find>
<find>
isNotBlank
</find>
<find>
setCookie
</find>
<find>
response.body()
</find>
<find>
response.body()
</find>
<find>
filename
</find>
<find>
filename
</find>
<find>
fileName
</find>
<find>
fileName
</find>
...
@@ -174,7 +166,6 @@
...
@@ -174,7 +166,6 @@
<find>
intentName
</find>
<find>
intentName
</find>
<find>
EXCEPT_BOT_ACCOUNT
</find>
<find>
EXCEPT_BOT_ACCOUNT
</find>
<find>
dealDefaultIntent
</find>
<find>
dealDefaultIntent
</find>
<find>
dealNoScreenIntent
</find>
<find>
userId
</find>
<find>
userId
</find>
<find>
getUserId()
</find>
<find>
getUserId()
</find>
<find>
ge
</find>
<find>
ge
</find>
...
@@ -184,6 +175,13 @@
...
@@ -184,6 +175,13 @@
<find>
shouldEndSession
</find>
<find>
shouldEndSession
</find>
<find>
PlaybackStarted
</find>
<find>
PlaybackStarted
</find>
<find>
onPlaybackStartedEvent
</find>
<find>
onPlaybackStartedEvent
</find>
<find>
data
</find>
<find>
deviceUserId
</find>
<find>
dealNoScreenIntent
</find>
<find>
record_callback_url
</find>
<find>
trim()
</find>
<find>
LAST_OUTTIME_RESULT
</find>
<find>
onSess
</find>
</findStrings>
</findStrings>
<replaceStrings>
<replaceStrings>
<replace>
OPENID_CACHE
</replace>
<replace>
OPENID_CACHE
</replace>
...
@@ -200,8 +198,6 @@
...
@@ -200,8 +198,6 @@
<component
name=
"IdeDocumentHistory"
>
<component
name=
"IdeDocumentHistory"
>
<option
name=
"CHANGED_PATHS"
>
<option
name=
"CHANGED_PATHS"
>
<list>
<list>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/mapper/GameProjectTBRepository.java"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/repository/GameProjectTBRepository.java"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/pom.xml"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/pom.xml"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/common/config/DataSourceConfig.java"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/common/config/DataSourceConfig.java"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/resources/application.yml"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/resources/application.yml"
/>
...
@@ -213,12 +209,9 @@
...
@@ -213,12 +209,9 @@
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/ThirdPartyLoadApplication.java"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/ThirdPartyLoadApplication.java"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/pojo/UserProfile.java"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/pojo/UserProfile.java"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/common/Code.java"
/>
<option
value=
"$PROJECT_DIR$/third_party_load/src/main/java/ai/qiwu/com/third_party_load/common/Code.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Test.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/pom.xml"
/>
<option
value=
"$PROJECT_DIR$/tts_service/pom.xml"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuRequest.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuRequest.java"
/>
...
@@ -240,17 +233,22 @@
...
@@ -240,17 +233,22 @@
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AllOnProductInfoRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AllOnProductInfoRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log4.html"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log4.html"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log3.html"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log3.html"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log2.html"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log2.html"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log1.html"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log1.html"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/WebSocketLogController.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/WebSocketLogController.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/index.html"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/index.html"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/LieHuSchedule.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Test.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
/>
</list>
</list>
</option>
</option>
</component>
</component>
...
@@ -268,6 +266,15 @@
...
@@ -268,6 +266,15 @@
<expand>
<expand>
<path>
<path>
<item
name=
""
type=
"16c1761:MavenProjectsStructure$RootNode"
/>
<item
name=
""
type=
"16c1761:MavenProjectsStructure$RootNode"
/>
<item
name=
"tts_service"
type=
"9519ce18:MavenProjectsStructure$ProjectNode"
/>
</path>
<path>
<item
name=
""
type=
"16c1761:MavenProjectsStructure$RootNode"
/>
<item
name=
"tts_service"
type=
"9519ce18:MavenProjectsStructure$ProjectNode"
/>
<item
name=
"Lifecycle"
type=
"58874e2:MavenProjectsStructure$LifecycleNode"
/>
</path>
<path>
<item
name=
""
type=
"16c1761:MavenProjectsStructure$RootNode"
/>
<item
name=
"xiaoduhome"
type=
"9519ce18:MavenProjectsStructure$ProjectNode"
/>
<item
name=
"xiaoduhome"
type=
"9519ce18:MavenProjectsStructure$ProjectNode"
/>
</path>
</path>
<path>
<path>
...
@@ -283,8 +290,8 @@
...
@@ -283,8 +290,8 @@
<option
name=
"skipTests"
value=
"true"
/>
<option
name=
"skipTests"
value=
"true"
/>
</component>
</component>
<component
name=
"ProjectFrameBounds"
>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"
24
2"
/>
<option
name=
"x"
value=
"
36
2"
/>
<option
name=
"y"
value=
"
69
"
/>
<option
name=
"y"
value=
"
81
"
/>
<option
name=
"width"
value=
"1377"
/>
<option
name=
"width"
value=
"1377"
/>
<option
name=
"height"
value=
"973"
/>
<option
name=
"height"
value=
"973"
/>
</component>
</component>
...
@@ -296,6 +303,8 @@
...
@@ -296,6 +303,8 @@
<foldersAlwaysOnTop
value=
"true"
/>
<foldersAlwaysOnTop
value=
"true"
/>
</navigator>
</navigator>
<panes>
<panes>
<pane
id=
"PackagesPane"
/>
<pane
id=
"Scope"
/>
<pane
id=
"ProjectPane"
>
<pane
id=
"ProjectPane"
>
<subPane>
<subPane>
<expand>
<expand>
...
@@ -306,6 +315,69 @@
...
@@ -306,6 +315,69 @@
<path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"controller"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"service"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"resources"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<path>
...
@@ -390,8 +462,6 @@
...
@@ -390,8 +462,6 @@
<select
/>
<select
/>
</subPane>
</subPane>
</pane>
</pane>
<pane
id=
"Scope"
/>
<pane
id=
"PackagesPane"
/>
</panes>
</panes>
</component>
</component>
<component
name=
"PropertiesComponent"
>
<component
name=
"PropertiesComponent"
>
...
@@ -405,7 +475,7 @@
...
@@ -405,7 +475,7 @@
<property
name=
"RequestMappingsPanelWidth2"
value=
"75"
/>
<property
name=
"RequestMappingsPanelWidth2"
value=
"75"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"aspect.path.notification.shown"
value=
"true"
/>
<property
name=
"aspect.path.notification.shown"
value=
"true"
/>
<property
name=
"com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp"
value=
"1574
254612552
"
/>
<property
name=
"com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp"
value=
"1574
427340128
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/../game_editor/backend_rebuild"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/../game_editor/backend_rebuild"
/>
<property
name=
"nodejs_interpreter_path.stuck_in_default_project"
value=
"undefined stuck path"
/>
<property
name=
"nodejs_interpreter_path.stuck_in_default_project"
value=
"undefined stuck path"
/>
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
...
@@ -457,7 +527,7 @@
...
@@ -457,7 +527,7 @@
</list>
</list>
</option>
</option>
</component>
</component>
<component
name=
"RunManager"
selected=
"Application.
XiaoDuHomeController
"
>
<component
name=
"RunManager"
selected=
"Application.
Test
"
>
<configuration
name=
"Code"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"Code"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.third_party_load.common.Code"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.third_party_load.common.Code"
/>
<module
name=
"third_party_load"
/>
<module
name=
"third_party_load"
/>
...
@@ -836,6 +906,7 @@
...
@@ -836,6 +906,7 @@
<item
itemvalue=
"Application.Test (1)"
/>
<item
itemvalue=
"Application.Test (1)"
/>
<item
itemvalue=
"Application.UserProfile"
/>
<item
itemvalue=
"Application.UserProfile"
/>
<item
itemvalue=
"Application.Code"
/>
<item
itemvalue=
"Application.Code"
/>
<item
itemvalue=
"Application.XiaoDuHomeController"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.dingdong"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.dingdong"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.xiaodu"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.xiaodu"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.rokid"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.rokid"
/>
...
@@ -856,12 +927,11 @@
...
@@ -856,12 +927,11 @@
<item
itemvalue=
"Spring Boot.XiaoduhomeApplication"
/>
<item
itemvalue=
"Spring Boot.XiaoduhomeApplication"
/>
<item
itemvalue=
"Spring Boot.TtsServiceApplication"
/>
<item
itemvalue=
"Spring Boot.TtsServiceApplication"
/>
<item
itemvalue=
"Spring Boot.TtsOfflineApplication"
/>
<item
itemvalue=
"Spring Boot.TtsOfflineApplication"
/>
<item
itemvalue=
"Application.XiaoDuHomeController"
/>
</list>
</list>
<recent_temporary>
<recent_temporary>
<list>
<list>
<item
itemvalue=
"Application.XiaoDuHomeController"
/>
<item
itemvalue=
"Application.Test"
/>
<item
itemvalue=
"Application.Test"
/>
<item
itemvalue=
"Application.XiaoDuHomeController"
/>
<item
itemvalue=
"Application.Code"
/>
<item
itemvalue=
"Application.Code"
/>
<item
itemvalue=
"Application.UserProfile"
/>
<item
itemvalue=
"Application.UserProfile"
/>
<item
itemvalue=
"Application.Test (1)"
/>
<item
itemvalue=
"Application.Test (1)"
/>
...
@@ -1020,7 +1090,9 @@
...
@@ -1020,7 +1090,9 @@
<workItem
from=
"1573459985931"
duration=
"6137000"
/>
<workItem
from=
"1573459985931"
duration=
"6137000"
/>
<workItem
from=
"1574053719309"
duration=
"23161000"
/>
<workItem
from=
"1574053719309"
duration=
"23161000"
/>
<workItem
from=
"1574127645437"
duration=
"14621000"
/>
<workItem
from=
"1574127645437"
duration=
"14621000"
/>
<workItem
from=
"1574214575154"
duration=
"32150000"
/>
<workItem
from=
"1574214575154"
duration=
"32315000"
/>
<workItem
from=
"1574301315953"
duration=
"28268000"
/>
<workItem
from=
"1574401705670"
duration=
"15294000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
@@ -1030,7 +1102,7 @@
...
@@ -1030,7 +1102,7 @@
</history-entry>
</history-entry>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"2
857702
000"
/>
<option
name=
"totallyTimeSpent"
value=
"2
901429
000"
/>
</component>
</component>
<component
name=
"TodoView"
>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
<todo-panel
id=
"selected-file"
>
...
@@ -1042,8 +1114,7 @@
...
@@ -1042,8 +1114,7 @@
</todo-panel>
</todo-panel>
</component>
</component>
<component
name=
"ToolWindowManager"
>
<component
name=
"ToolWindowManager"
>
<frame
x=
"242"
y=
"69"
width=
"1377"
height=
"973"
extended-state=
"0"
/>
<frame
x=
"362"
y=
"81"
width=
"1377"
height=
"973"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<layout>
<layout>
<window_info
id=
"Designer"
order=
"0"
/>
<window_info
id=
"Designer"
order=
"0"
/>
<window_info
id=
"Image Layers"
order=
"1"
/>
<window_info
id=
"Image Layers"
order=
"1"
/>
...
@@ -1056,7 +1127,7 @@
...
@@ -1056,7 +1127,7 @@
<window_info
id=
"Structure"
order=
"8"
sideWeight=
"0.5134264"
weight=
"0.19488338"
/>
<window_info
id=
"Structure"
order=
"8"
sideWeight=
"0.5134264"
weight=
"0.19488338"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.25243902"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.25243902"
/>
<window_info
a
nchor=
"bottom"
id=
"Run"
order=
"2
"
weight=
"0.3402439"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Run"
order=
"2"
visible=
"true
"
weight=
"0.3402439"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.39885056"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.39885056"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
...
@@ -1073,7 +1144,7 @@
...
@@ -1073,7 +1144,7 @@
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Ant Build"
order=
"1"
weight=
"0.24964029"
/>
<window_info
anchor=
"right"
id=
"Ant Build"
order=
"1"
weight=
"0.24964029"
/>
<window_info
anchor=
"right"
content_ui=
"combo"
id=
"Hierarchy"
order=
"2"
weight=
"0.25"
/>
<window_info
anchor=
"right"
content_ui=
"combo"
id=
"Hierarchy"
order=
"2"
weight=
"0.25"
/>
<window_info
anchor=
"right"
id=
"Maven"
order=
"3"
weight=
"0.27614748"
/>
<window_info
anchor=
"right"
id=
"Maven"
order=
"3"
visible=
"true"
weight=
"0.27614748"
/>
<window_info
anchor=
"right"
id=
"Palette"
order=
"4"
/>
<window_info
anchor=
"right"
id=
"Palette"
order=
"4"
/>
<window_info
anchor=
"right"
id=
"Capture Analysis"
order=
"5"
/>
<window_info
anchor=
"right"
id=
"Capture Analysis"
order=
"5"
/>
<window_info
anchor=
"right"
id=
"Palette	"
order=
"6"
/>
<window_info
anchor=
"right"
id=
"Palette	"
order=
"6"
/>
...
@@ -1093,121 +1164,6 @@
...
@@ -1093,121 +1164,6 @@
<option
name=
"FILTER_TARGETS"
value=
"false"
/>
<option
name=
"FILTER_TARGETS"
value=
"false"
/>
</component>
</component>
<component
name=
"editorHistoryManager"
>
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/linPicture.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/UpLoadImgController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"286"
>
<caret
line=
"20"
column=
"31"
lean-forward=
"true"
selection-start-line=
"20"
selection-start-column=
"31"
selection-end-line=
"20"
selection-end-column=
"31"
/>
<folding>
<element
signature=
"e#604#605#0"
expanded=
"true"
/>
<element
signature=
"e#639#640#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"594"
>
<caret
line=
"59"
column=
"29"
selection-start-line=
"59"
selection-start-column=
"29"
selection-end-line=
"59"
selection-end-column=
"29"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"22"
>
<caret
line=
"1"
column=
"10"
selection-start-line=
"1"
selection-start-column=
"10"
selection-end-line=
"1"
selection-end-column=
"10"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/aigz4.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"240"
>
<caret
line=
"18"
column=
"73"
selection-start-line=
"18"
selection-start-column=
"73"
selection-end-line=
"19"
selection-end-column=
"14"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/aigz3.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"374"
>
<caret
line=
"17"
column=
"42"
selection-start-line=
"17"
selection-start-column=
"42"
selection-end-line=
"17"
selection-end-column=
"42"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Oauth2_load.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-1806"
/>
</provider>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Random.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"264"
>
<caret
line=
"385"
column=
"15"
selection-start-line=
"385"
selection-start-column=
"15"
selection-end-line=
"385"
selection-end-column=
"15"
/>
</state>
</provider>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar!/org/apache/commons/lang3/RandomUtils.class"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"312"
>
<caret
line=
"29"
column=
"93"
selection-start-line=
"29"
selection-start-column=
"93"
selection-end-line=
"29"
selection-end-column=
"93"
/>
<folding>
<element
signature=
"e#1072#1073#0"
expanded=
"true"
/>
<element
signature=
"e#1117#1118#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/log/index.html"
/>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/vue.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-132"
>
<folding>
<element
signature=
"n#!!doc"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"264"
>
<caret
line=
"15"
column=
"18"
selection-start-line=
"15"
selection-start-column=
"18"
selection-end-line=
"15"
selection-end-column=
"18"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"308"
>
<caret
line=
"15"
column=
"14"
selection-start-line=
"15"
selection-start-column=
"14"
selection-end-line=
"15"
selection-end-column=
"14"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"195"
>
<caret
line=
"82"
column=
"18"
selection-start-line=
"82"
selection-start-column=
"18"
selection-end-line=
"82"
selection-end-column=
"18"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"418"
>
<caret
line=
"70"
column=
"50"
selection-start-line=
"70"
selection-start-column=
"36"
selection-end-line=
"70"
selection-end-column=
"50"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"528"
>
<caret
line=
"209"
column=
"42"
lean-forward=
"true"
selection-start-line=
"209"
selection-start-column=
"42"
selection-end-line=
"209"
selection-end-column=
"42"
/>
<folding>
<element
signature=
"e#29333#29382#0"
/>
<element
signature=
"e#64222#64231#0"
/>
<element
signature=
"e#83626#83660#0"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0.jar!/com/baidu/dueros/data/request/IntentRequest.class"
>
<entry
file=
"jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0.jar!/com/baidu/dueros/data/request/IntentRequest.class"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"198"
>
<state
relative-caret-position=
"198"
>
...
@@ -1257,13 +1213,6 @@
...
@@ -1257,13 +1213,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/OverTimeDetail.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"220"
>
<caret
line=
"19"
column=
"13"
selection-start-line=
"19"
selection-start-column=
"13"
selection-end-line=
"19"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1122"
>
<state
relative-caret-position=
"1122"
>
...
@@ -1337,34 +1286,6 @@
...
@@ -1337,34 +1286,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"300"
>
<caret
line=
"101"
column=
"34"
selection-start-line=
"101"
selection-start-column=
"18"
selection-end-line=
"101"
selection-end-column=
"34"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"198"
>
<caret
line=
"9"
column=
"49"
selection-start-line=
"9"
selection-start-column=
"49"
selection-end-line=
"9"
selection-end-column=
"49"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/RequestTerminal.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"528"
>
<caret
line=
"38"
column=
"80"
selection-start-line=
"38"
selection-start-column=
"80"
selection-end-line=
"38"
selection-end-column=
"80"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"396"
>
<caret
line=
"31"
column=
"68"
lean-forward=
"true"
selection-start-line=
"31"
selection-start-column=
"68"
selection-end-line=
"31"
selection-end-column=
"68"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log3.html"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Log3.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-1078"
>
<state
relative-caret-position=
"-1078"
>
...
@@ -1410,17 +1331,6 @@
...
@@ -1410,17 +1331,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"476"
>
<caret
line=
"257"
column=
"44"
selection-start-line=
"257"
selection-start-column=
"44"
selection-end-line=
"257"
selection-end-column=
"44"
/>
<folding>
<element
signature=
"e#12433#12434#0"
expanded=
"true"
/>
<element
signature=
"e#12474#12475#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0.jar!/com/baidu/dueros/bot/AudioPlayer.class"
>
<entry
file=
"jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0.jar!/com/baidu/dueros/bot/AudioPlayer.class"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"220"
>
<state
relative-caret-position=
"220"
>
...
@@ -1446,36 +1356,192 @@
...
@@ -1446,36 +1356,192 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
controller/XiaoDuHomeController
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
service/ScheduleService
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
578
"
>
<state
relative-caret-position=
"
4906
"
>
<caret
line=
"
64"
column=
"5"
selection-start-line=
"64"
selection-start-column=
"5"
selection-end-line=
"64"
selection-end-column=
"5
"
/>
<caret
line=
"
257"
column=
"44"
selection-start-line=
"257"
selection-start-column=
"44"
selection-end-line=
"257"
selection-end-column=
"44
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1166"
>
<caret
line=
"101"
column=
"34"
selection-start-line=
"101"
selection-start-column=
"18"
selection-end-line=
"101"
selection-end-column=
"34"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/OverTimeDetail.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"286"
>
<caret
line=
"22"
column=
"11"
selection-start-line=
"22"
selection-start-column=
"11"
selection-end-line=
"22"
selection-end-column=
"11"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/OnlineCache.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"13"
column=
"13"
selection-start-line=
"13"
selection-start-column=
"13"
selection-end-line=
"13"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/concurrent/ConcurrentHashMap.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"264"
>
<state
relative-caret-position=
"264"
>
<caret
line=
"102"
column=
"55"
selection-start-line=
"102"
selection-start-column=
"55"
selection-end-line=
"102"
selection-end-column=
"55"
/>
<caret
line=
"1004"
column=
"13"
selection-start-line=
"1004"
selection-start-column=
"13"
selection-end-line=
"1004"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"e#44347#44348#0"
expanded=
"true"
/>
<element
signature=
"e#44395#44396#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/model/response/innerResponse/directive/Directive.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"15"
column=
"13"
selection-start-line=
"15"
selection-start-column=
"13"
selection-end-line=
"15"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/resources/ttsTest.properties"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/resources/ttsDidi.properties"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"614"
>
<caret
line=
"38"
column=
"70"
selection-start-line=
"38"
selection-start-column=
"70"
selection-end-line=
"38"
selection-end-column=
"70"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"256"
>
<caret
line=
"70"
column=
"25"
selection-start-line=
"70"
selection-start-column=
"25"
selection-end-line=
"70"
selection-end-column=
"25"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/model/response/XiaoAiResponse.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"16"
column=
"13"
selection-start-line=
"16"
selection-start-column=
"13"
selection-end-line=
"16"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"286"
>
<caret
line=
"113"
column=
"37"
selection-start-line=
"113"
selection-start-column=
"15"
selection-end-line=
"113"
selection-end-column=
"37"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"792"
>
<caret
line=
"51"
column=
"47"
selection-start-line=
"51"
selection-start-column=
"47"
selection-end-line=
"51"
selection-end-column=
"47"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"4048"
>
<caret
line=
"202"
selection-start-line=
"202"
selection-end-line=
"202"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/RequestTerminal.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"660"
>
<caret
line=
"38"
column=
"81"
selection-start-line=
"38"
selection-start-column=
"81"
selection-end-line=
"38"
selection-end-column=
"81"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"220"
>
<caret
line=
"10"
column=
"34"
selection-start-line=
"10"
selection-start-column=
"34"
selection-end-line=
"10"
selection-end-column=
"34"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Test.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2778"
>
<caret
line=
"264"
column=
"80"
selection-start-line=
"264"
selection-start-column=
"80"
selection-end-line=
"264"
selection-end-column=
"80"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"246"
>
<caret
line=
"156"
column=
"74"
selection-start-line=
"156"
selection-start-column=
"55"
selection-end-line=
"156"
selection-end-column=
"74"
/>
<folding>
<element
signature=
"e#10574#10575#0"
expanded=
"true"
/>
<element
signature=
"e#10616#10617#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"225"
>
<caret
line=
"1747"
column=
"79"
selection-start-line=
"1747"
selection-start-column=
"79"
selection-end-line=
"1747"
selection-end-column=
"79"
/>
<folding>
<element
signature=
"e#29333#29382#0"
/>
<element
signature=
"e#64222#64231#0"
/>
<element
signature=
"e#83626#83660#0"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/LieHuSchedule.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"482"
>
<caret
line=
"47"
column=
"53"
selection-start-line=
"47"
selection-start-column=
"53"
selection-end-line=
"47"
selection-end-column=
"53"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1576"
>
<caret
line=
"108"
column=
"89"
selection-start-line=
"108"
selection-start-column=
"89"
selection-end-line=
"108"
selection-end-column=
"89"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1062"
>
<state
relative-caret-position=
"1567"
>
<caret
line=
"287"
column=
"62"
selection-start-line=
"287"
selection-start-column=
"62"
selection-end-line=
"287"
selection-end-column=
"62"
/>
<caret
line=
"314"
column=
"47"
selection-start-line=
"314"
selection-start-column=
"47"
selection-end-line=
"314"
selection-end-column=
"47"
/>
<folding>
<element
signature=
"e#11213#11214#0"
expanded=
"true"
/>
<element
signature=
"e#11270#11271#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"108"
column=
"36"
selection-start-line=
"108"
selection-start-column=
"23"
selection-end-line=
"108"
selection-end-column=
"36"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"570"
>
<caret
line=
"59"
column=
"30"
selection-start-line=
"59"
selection-start-column=
"16"
selection-end-line=
"59"
selection-end-column=
"30"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
515
"
>
<state
relative-caret-position=
"
163
"
>
<caret
line=
"
343"
column=
"27"
lean-forward=
"true"
selection-start-line=
"343"
selection-start-column=
"27"
selection-end-line=
"343"
selection-end-column=
"27
"
/>
<caret
line=
"
631"
column=
"35"
selection-start-line=
"631"
selection-start-column=
"35"
selection-end-line=
"631"
selection-end-column=
"35
"
/>
<folding>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#36492#36493#0"
expanded=
"true"
/>
<element
signature=
"e#36550#36551#0"
expanded=
"true"
/>
<element
signature=
"e#82094#82164#0"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java
View file @
f8b3597c
...
@@ -68,7 +68,7 @@ public class OkHttp3Utils {
...
@@ -68,7 +68,7 @@ public class OkHttp3Utils {
* @return json信息
* @return json信息
* @throws IOException
* @throws IOException
*/
*/
p
rivate
static
String
doGet
(
String
url
,
Map
<
String
,
String
>
params
,
Map
<
String
,
String
>
header
)
throws
IOException
{
p
ublic
static
String
doGet
(
String
url
,
Map
<
String
,
String
>
params
,
Map
<
String
,
String
>
header
)
throws
IOException
{
Request
.
Builder
builder
=
new
Request
.
Builder
();
Request
.
Builder
builder
=
new
Request
.
Builder
();
Request
request
=
builder
.
url
(
url
).
build
();
Request
request
=
builder
.
url
(
url
).
build
();
HttpUrl
.
Builder
urlBuild
=
request
.
url
().
newBuilder
();
HttpUrl
.
Builder
urlBuild
=
request
.
url
().
newBuilder
();
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java
View file @
f8b3597c
...
@@ -4,6 +4,7 @@ import ai.qiwu.com.tts_service.common.TTSUtils;
...
@@ -4,6 +4,7 @@ import ai.qiwu.com.tts_service.common.TTSUtils;
import
ai.qiwu.com.tts_service.pojo.*
;
import
ai.qiwu.com.tts_service.pojo.*
;
import
ai.qiwu.com.tts_service.pojo.upload.UploadOneSenData
;
import
ai.qiwu.com.tts_service.pojo.upload.UploadOneSenData
;
import
ai.qiwu.com.tts_service.service.Initialize
;
import
ai.qiwu.com.tts_service.service.Initialize
;
import
ai.qiwu.com.tts_service.service.LieHuSchedule
;
import
ai.qiwu.com.tts_service.service.TTService
;
import
ai.qiwu.com.tts_service.service.TTService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.exception.ExceptionUtils
;
import
org.apache.commons.lang3.exception.ExceptionUtils
;
...
@@ -35,9 +36,12 @@ public class TTSController {
...
@@ -35,9 +36,12 @@ public class TTSController {
*/
*/
private
final
TTService
ttService
;
private
final
TTService
ttService
;
private
final
LieHuSchedule
lieHuSchedule
;
@Autowired
@Autowired
public
TTSController
(
TTService
ttService
)
{
public
TTSController
(
TTService
ttService
,
LieHuSchedule
lieHuSchedule
)
{
this
.
ttService
=
ttService
;
this
.
ttService
=
ttService
;
this
.
lieHuSchedule
=
lieHuSchedule
;
}
}
/**
/**
...
@@ -219,4 +223,9 @@ public class TTSController {
...
@@ -219,4 +223,9 @@ public class TTSController {
ttService
.
offlineCallback
(
file
,
response
);
ttService
.
offlineCallback
(
file
,
response
);
}
}
@GetMapping
(
"/api/update/Liehu"
)
public
void
updateToken
(
String
secret
)
{
if
(
"miao"
.
equals
(
secret
))
lieHuSchedule
.
scheduleLieHuToken
();
}
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/service/LieHuSchedule.java
View file @
f8b3597c
...
@@ -21,18 +21,29 @@ import java.util.HashMap;
...
@@ -21,18 +21,29 @@ import java.util.HashMap;
public
class
LieHuSchedule
{
public
class
LieHuSchedule
{
private
static
final
HashMap
<
String
,
String
>
LIE_HU_TOKEN_PARAMS
;
private
static
final
HashMap
<
String
,
String
>
LIE_HU_TOKEN_PARAMS
;
// private static final HashMap<String, String> LIE_HU_TOKEN_HEADER;
private
static
String
LIE_HU_TOKEN
;
private
static
String
LIE_HU_TOKEN
;
static
{
static
{
LIE_HU_TOKEN_PARAMS
=
new
HashMap
<>();
LIE_HU_TOKEN_PARAMS
=
new
HashMap
<>();
// LIE_HU_TOKEN_HEADER = new HashMap<>();
LIE_HU_TOKEN_PARAMS
.
put
(
"client_id"
,
TTSConstants
.
LIE_HU
.
CLIENT_ID
);
LIE_HU_TOKEN_PARAMS
.
put
(
"client_id"
,
TTSConstants
.
LIE_HU
.
CLIENT_ID
);
LIE_HU_TOKEN_PARAMS
.
put
(
"client_secret"
,
TTSConstants
.
LIE_HU
.
CLIENT_SECRET
);
LIE_HU_TOKEN_PARAMS
.
put
(
"client_secret"
,
TTSConstants
.
LIE_HU
.
CLIENT_SECRET
);
// LIE_HU_TOKEN_HEADER.put("Access-Control-Allow-Origin", "*");
// LIE_HU_TOKEN_HEADER.put("Content-Length", "215");
// LIE_HU_TOKEN_HEADER.put("Content-Type", "application/json");
}
}
@Scheduled
(
fixedDelay
=
6600000
)
@Scheduled
(
fixedDelay
=
6600000
)
public
void
scheduleLieHuToken
()
{
public
void
scheduleLieHuToken
()
{
new
Thread
(()
->
{
new
Thread
(()
->
{
int
count
=
0
;
boolean
success
=
false
;
do
{
try
{
try
{
// String liehuTokenRes = OkHttp3Utils.doGet(TTSConstants.LIE_HU.TOKEN_URL, LIE_HU_TOKEN_PARAMS,
// LIE_HU_TOKEN_HEADER);
String
liehuTokenRes
=
OkHttp3Utils
.
doGet
(
TTSConstants
.
LIE_HU
.
TOKEN_URL
,
LIE_HU_TOKEN_PARAMS
);
String
liehuTokenRes
=
OkHttp3Utils
.
doGet
(
TTSConstants
.
LIE_HU
.
TOKEN_URL
,
LIE_HU_TOKEN_PARAMS
);
if
(
StringUtils
.
isBlank
(
liehuTokenRes
))
{
if
(
StringUtils
.
isBlank
(
liehuTokenRes
))
{
log
.
error
(
"对猎户Token发起的请求出错"
);
log
.
error
(
"对猎户Token发起的请求出错"
);
...
@@ -40,14 +51,23 @@ public class LieHuSchedule {
...
@@ -40,14 +51,23 @@ public class LieHuSchedule {
}
}
LieHuTokenResponse
response
=
JSON
.
parseObject
(
liehuTokenRes
,
LieHuTokenResponse
.
class
);
LieHuTokenResponse
response
=
JSON
.
parseObject
(
liehuTokenRes
,
LieHuTokenResponse
.
class
);
if
(
"success"
.
equals
(
response
.
getCode
()))
{
if
(
"success"
.
equals
(
response
.
getCode
()))
{
success
=
true
;
LIE_HU_TOKEN
=
response
.
getToken
();
LIE_HU_TOKEN
=
response
.
getToken
();
return
;
//log.info("成功获取到猎户Token:{}", LIE_HU_TOKEN);
//log.info("成功获取到猎户Token:{}", LIE_HU_TOKEN);
}
else
{
}
else
{
log
.
error
(
"请求猎户Token失败:{}"
,
response
.
getError
());
log
.
error
(
"第次{}尝试请求猎户Token失败:{}"
,
count
+
1
,
response
.
getError
());
}
}
catch
(
Exception
e
)
{
log
.
error
(
"第次{}尝试获取猎户Token异常:{},"
,
count
+
1
,
e
.
toString
());
}
}
count
++;
try
{
Thread
.
sleep
(
2
*
count
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"获取猎户Token失败:{}"
,
e
.
toString
());
}
}
}
while
(!
success
&&
count
<
10
);
}).
start
();
}).
start
();
}
}
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/service/Test.java
View file @
f8b3597c
...
@@ -254,13 +254,15 @@ public class Test {
...
@@ -254,13 +254,15 @@ public class Test {
}
}
public
static
void
main
(
String
[]
args
)
throws
IOException
,
ParseException
{
public
static
void
main
(
String
[]
args
)
throws
IOException
,
ParseException
{
Pattern
pattern
=
Pattern
.
compile
(
TTSUtils
.
getAbRegex
());
String
[]
arrr
=
pattern
.
split
(
"回答错误,正确答案为 :风吹草地见牛羊。 当前体力值为 \uD83C\uDD7097\uD83C\uDD71"
);
System
.
out
.
println
(
Arrays
.
toString
(
arrr
));
Date
date
=
new
Date
(
1572522571234L
);
Date
date
=
new
Date
(
1572522571234L
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
System
.
out
.
println
(
format
.
format
(
date
));
List
<
String
>
paths
=
new
ArrayList
<>();
System
.
out
.
println
(
TTSUtils
.
buildMP3Filename
(
"回答错误,正确答案为 :黄河入海流。 当前体力值为"
));
for
(
int
i
=
1
;
i
<
6
;
i
++)
{
System
.
out
.
println
(
TTSUtils
.
buildMP3Filename
(
"98"
));
paths
.
add
(
"/home/yf01/下载/tts/"
+
i
+
".mp3"
);
System
.
out
.
println
(
TTSUtils
.
buildMP3Filename
(
"回答错误,正确答案为 :疑是地上霜。 当前体力值为 "
));
}
System
.
out
.
println
(
URLDecoder
.
decode
(
"http://didi-gz4.jiaoyou365.com:9663/api/tts/get_audio?dirs=%5B39474830%2Crecord%2C%E6%9E%97%E8%80%81%E5%B8%88%5D&filename=2693006153fb900642c931d9304e650a.mp3"
));
}
}
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java
View file @
f8b3597c
...
@@ -107,6 +107,8 @@ public class ThirdPartyService {
...
@@ -107,6 +107,8 @@ public class ThirdPartyService {
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
//headers.put("Content-Type", "application/x-www-form-urlencoded");
//headers.put("Content-Type", "application/x-www-form-urlencoded");
headers
.
put
(
"Authorization"
,
TTSConstants
.
LIE_HU
.
AUTHORIZATION
+
LieHuSchedule
.
getLieHuToken
());
headers
.
put
(
"Authorization"
,
TTSConstants
.
LIE_HU
.
AUTHORIZATION
+
LieHuSchedule
.
getLieHuToken
());
// headers.put("Access-Control-Allow-Origin", "*");
// headers.put("Content-Type", "application/json");
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"tex"
,
text
);
params
.
put
(
"tex"
,
text
);
params
.
put
(
"sn"
,
new
StringBuilder
(
RandomStringUtils
.
randomAlphabetic
(
5
)).
append
(
System
.
currentTimeMillis
()).
toString
());
params
.
put
(
"sn"
,
new
StringBuilder
(
RandomStringUtils
.
randomAlphabetic
(
5
)).
append
(
System
.
currentTimeMillis
()).
toString
());
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java
View file @
f8b3597c
...
@@ -111,6 +111,7 @@ public interface Constants {
...
@@ -111,6 +111,7 @@ public interface Constants {
interface
ErrorMsg
{
interface
ErrorMsg
{
String
SORRY_UNCATCH
=
"不好意思我没听清,请再说一遍吧"
;
String
SORRY_UNCATCH
=
"不好意思我没听清,请再说一遍吧"
;
String
TERMINATE_RETURN_EMPTY
=
"中控返回了空的链接"
;
String
INTERNAL_ERROR
=
"其他DuerOS系统错误"
;
String
INTERNAL_ERROR
=
"其他DuerOS系统错误"
;
String
INVALID_RESPONSE
=
"技能返回了无效的响应,可能技能响应数据量超过24KB,或是技能在request的dialogState为COMPLETED时仍然发送Dialog.Delegate指令等"
;
String
INVALID_RESPONSE
=
"技能返回了无效的响应,可能技能响应数据量超过24KB,或是技能在request的dialogState为COMPLETED时仍然发送Dialog.Delegate指令等"
;
String
DEVICE_COMMUNICATION_ERROR
=
"DuerOS与端通信异常"
;
String
DEVICE_COMMUNICATION_ERROR
=
"DuerOS与端通信异常"
;
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java
View file @
f8b3597c
...
@@ -50,7 +50,7 @@ public class XiaoDuHomeController {
...
@@ -50,7 +50,7 @@ public class XiaoDuHomeController {
try
{
try
{
//log.info("--------------分界线-------------------");
//log.info("--------------分界线-------------------");
DplBotService
service
=
new
DplBotService
(
Utils
.
getHttpServletRequest
());
DplBotService
service
=
new
DplBotService
(
Utils
.
getHttpServletRequest
());
log
.
info
(
"请求信息中的attributes:{}"
,
service
.
getRequest
().
getSession
().
getAttributes
());
//
log.info("请求信息中的attributes:{}", service.getRequest().getSession().getAttributes());
// log.info(service.getStrRequest());
// log.info(service.getStrRequest());
//service.disableVerify();
//service.disableVerify();
service
.
enableVerify
();
service
.
enableVerify
();
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java
View file @
f8b3597c
...
@@ -16,6 +16,8 @@ import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderTB;
...
@@ -16,6 +16,8 @@ import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderTB;
import
ai.qiwu.com.xiaoduhome.pojo.*
;
import
ai.qiwu.com.xiaoduhome.pojo.*
;
import
ai.qiwu.com.xiaoduhome.pojo.dpl.MyDocument
;
import
ai.qiwu.com.xiaoduhome.pojo.dpl.MyDocument
;
import
ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuOrderTbRepository
;
import
ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuOrderTbRepository
;
import
ai.qiwu.com.xiaoduhome.xiaoai.common.XiaoAiConstants
;
import
ai.qiwu.com.xiaoduhome.xiaoai.service.XiaoAiService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.baidu.dueros.bot.BaseBot
;
import
com.baidu.dueros.bot.BaseBot
;
import
com.baidu.dueros.data.request.IntentRequest
;
import
com.baidu.dueros.data.request.IntentRequest
;
...
@@ -44,6 +46,7 @@ import com.baidu.dueros.data.response.directive.pay.Charge;
...
@@ -44,6 +46,7 @@ import com.baidu.dueros.data.response.directive.pay.Charge;
import
com.baidu.dueros.model.Response
;
import
com.baidu.dueros.model.Response
;
import
com.baidu.dueros.nlu.Intent
;
import
com.baidu.dueros.nlu.Intent
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.RandomUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.exception.ExceptionUtils
;
import
org.apache.commons.lang3.exception.ExceptionUtils
;
import
org.springframework.data.domain.Example
;
import
org.springframework.data.domain.Example
;
...
@@ -67,6 +70,8 @@ import static ai.qiwu.com.xiaoduhome.common.Constants.WelcomeWord.ERROR_SEND_FLO
...
@@ -67,6 +70,8 @@ import static ai.qiwu.com.xiaoduhome.common.Constants.WelcomeWord.ERROR_SEND_FLO
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
WelcomeWord
.
FAIL_COLLECT
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
WelcomeWord
.
FAIL_COLLECT
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
XIAOWU_API
.*;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
XIAOWU_API
.*;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
service
.
ScheduleService
.*;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
service
.
ScheduleService
.*;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
xiaoai
.
service
.
XiaoAiService
.
LAST_OUTTIME_MARK
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
xiaoai
.
service
.
XiaoAiService
.
OUTTIME_TYPE_0
;
/**
/**
* @author 苗权威
* @author 苗权威
...
@@ -82,7 +87,6 @@ public class DplBotService extends BaseBot {
...
@@ -82,7 +87,6 @@ public class DplBotService extends BaseBot {
// private static final ThreadLocal<Integer> CACHE_THREAD_INDEX = new ThreadLocal<>();
// private static final ThreadLocal<Integer> CACHE_THREAD_INDEX = new ThreadLocal<>();
// private static final ThreadLocal<>
// 用来处理短时间内的多次请求
// 用来处理短时间内的多次请求
private
static
final
ConcurrentHashMap
<
String
,
List
<
IntentRequest
>>
CACHE_XIAODU_REQUEST
=
new
ConcurrentHashMap
<>();
private
static
final
ConcurrentHashMap
<
String
,
List
<
IntentRequest
>>
CACHE_XIAODU_REQUEST
=
new
ConcurrentHashMap
<>();
...
@@ -100,6 +104,8 @@ public class DplBotService extends BaseBot {
...
@@ -100,6 +104,8 @@ public class DplBotService extends BaseBot {
@Override
@Override
public
Response
onLaunch
(
LaunchRequest
launchRequest
)
{
public
Response
onLaunch
(
LaunchRequest
launchRequest
)
{
if
(
getRequest
().
getContext
().
getScreen
()
==
null
)
{
if
(
getRequest
().
getContext
().
getScreen
()
==
null
)
{
LAST_OUTTIME_MARK
.
remove
(
getDeviceId
());
LAST_OUTTIME_RESULT
.
remove
(
getDeviceId
());
OutputSpeech
outputSpeech
=
new
OutputSpeech
(
OutputSpeech
.
SpeechType
.
PlainText
,
WelcomeWord
.
WELCOME
);
OutputSpeech
outputSpeech
=
new
OutputSpeech
(
OutputSpeech
.
SpeechType
.
PlainText
,
WelcomeWord
.
WELCOME
);
return
new
Response
(
outputSpeech
);
return
new
Response
(
outputSpeech
);
}
}
...
@@ -123,7 +129,16 @@ public class DplBotService extends BaseBot {
...
@@ -123,7 +129,16 @@ public class DplBotService extends BaseBot {
final
String
userId
=
getUserId
();
final
String
userId
=
getUserId
();
if
(
getRequest
().
getContext
().
getScreen
()
==
null
)
{
if
(
getRequest
().
getContext
().
getScreen
()
==
null
)
{
final
String
deviceUserId
=
getDeviceId
();
final
String
deviceUserId
=
getDeviceId
();
OverTimeDetail
lastData
=
LAST_OUTTIME_RESULT
.
remove
(
deviceUserId
);
Byte
overTimeType
;
if
((
overTimeType
=
LAST_OUTTIME_MARK
.
get
(
deviceUserId
))
!=
null
)
{
try
{
//log.info("开始等待");
Thread
.
sleep
(
2000
);
//log.info("等待OVER");
}
catch
(
InterruptedException
e
)
{
log
.
warn
(
"等待中断"
);
}
OverTimeDetail
lastData
=
LAST_OUTTIME_RESULT
.
get
(
deviceUserId
);
if
(
lastData
!=
null
)
{
if
(
lastData
!=
null
)
{
for
(
Directive
directive
:
lastData
.
getDirectives
())
{
for
(
Directive
directive
:
lastData
.
getDirectives
())
{
//log.info("上次超时保存的Directive:{}",directive.getClass().getName());
//log.info("上次超时保存的Directive:{}",directive.getClass().getName());
...
@@ -133,9 +148,17 @@ public class DplBotService extends BaseBot {
...
@@ -133,9 +148,17 @@ public class DplBotService extends BaseBot {
//log.info("上次超时保存的key:{}",key);
//log.info("上次超时保存的key:{}",key);
this
.
setSessionAttribute
(
key
,
lastData
.
getAttributes
().
get
(
key
));
this
.
setSessionAttribute
(
key
,
lastData
.
getAttributes
().
get
(
key
));
}
}
LAST_OUTTIME_MARK
.
remove
(
deviceUserId
);
LAST_OUTTIME_RESULT
.
remove
(
deviceUserId
);
return
lastData
.
getResponse
();
return
lastData
.
getResponse
();
}
}
else
{
if
(
overTimeType
!=
3
)
{
LAST_OUTTIME_MARK
.
put
(
deviceUserId
,
(
byte
)
(
overTimeType
+
1
));
return
buildErrorResponse
((
RandomUtils
.
nextInt
()
&
1
)
==
1
?
XiaoAiConstants
.
TTS
.
WAIT_WORD_1
:
XiaoAiConstants
.
TTS
.
WAIT_WORD_2
);
}
LAST_OUTTIME_MARK
.
remove
(
deviceUserId
);
}
try
{
try
{
Future
future
=
DplbotServiceUtil
.
getPOOL
().
submit
(()
->
dealNoScreenIntent
(
intentRequest
,
deviceUserId
));
Future
future
=
DplbotServiceUtil
.
getPOOL
().
submit
(()
->
dealNoScreenIntent
(
intentRequest
,
deviceUserId
));
future
.
get
(
2500
,
TimeUnit
.
MILLISECONDS
);
future
.
get
(
2500
,
TimeUnit
.
MILLISECONDS
);
...
@@ -144,13 +167,15 @@ public class DplBotService extends BaseBot {
...
@@ -144,13 +167,15 @@ public class DplBotService extends BaseBot {
return
buildErrorResponse
(
SORRY_UNCATCH
);
return
buildErrorResponse
(
SORRY_UNCATCH
);
}
catch
(
TimeoutException
e
)
{
}
catch
(
TimeoutException
e
)
{
log
.
info
(
"超时,让用户再说一遍:{}"
,
e
.
toString
());
log
.
info
(
"超时,让用户再说一遍:{}"
,
e
.
toString
());
LAST_OUTTIME_MARK
.
put
(
deviceUserId
,
OUTTIME_TYPE_0
);
return
buildErrorResponse
(
SORRY_UNCATCH
);
return
buildErrorResponse
(
SORRY_UNCATCH
);
}
catch
(
Exception
all
)
{
}
catch
(
Exception
all
)
{
log
.
error
(
"任务执行发生了错误:{}"
,
ExceptionUtils
.
getStackTrace
(
all
));
log
.
error
(
"任务执行发生了错误:{}"
,
ExceptionUtils
.
getStackTrace
(
all
));
return
buildErrorResponse
(
SORRY_UNCATCH
);
return
buildErrorResponse
(
SORRY_UNCATCH
);
}
}
return
LAST_OUTTIME_RESULT
.
remove
(
deviceUserId
).
getResponse
();
OverTimeDetail
detail
;
}
if
((
detail
=
LAST_OUTTIME_RESULT
.
remove
(
deviceUserId
))
!=
null
)
return
detail
.
getResponse
();
return
new
Response
();
}
}
OverTimeDetail
detail
;
OverTimeDetail
detail
;
if
((
detail
=
LAST_OUTTIME_RESULT
.
remove
(
userId
))
!=
null
)
{
if
((
detail
=
LAST_OUTTIME_RESULT
.
remove
(
userId
))
!=
null
)
{
...
@@ -183,7 +208,9 @@ public class DplBotService extends BaseBot {
...
@@ -183,7 +208,9 @@ public class DplBotService extends BaseBot {
log
.
error
(
"任务执行发生了错误:{}"
,
ExceptionUtils
.
getStackTrace
(
all
));
log
.
error
(
"任务执行发生了错误:{}"
,
ExceptionUtils
.
getStackTrace
(
all
));
return
buildErrorResponse
(
SORRY_UNCATCH
);
return
buildErrorResponse
(
SORRY_UNCATCH
);
}
}
return
LAST_OUTTIME_RESULT
.
remove
(
getUserId
()).
getResponse
();
OverTimeDetail
data
=
LAST_OUTTIME_RESULT
.
remove
(
getUserId
());
if
(
data
==
null
)
return
new
Response
();
return
data
.
getResponse
();
}
}
private
void
dealNoScreenIntent
(
IntentRequest
intentRequest
,
String
userId
)
{
private
void
dealNoScreenIntent
(
IntentRequest
intentRequest
,
String
userId
)
{
...
@@ -224,10 +251,9 @@ public class DplBotService extends BaseBot {
...
@@ -224,10 +251,9 @@ public class DplBotService extends BaseBot {
// log.warn("小度重复现象出现:{},requestId:{}",intentRequest.getQuery().getOriginal(), intentRequest.getRequestId());
// log.warn("小度重复现象出现:{},requestId:{}",intentRequest.getQuery().getOriginal(), intentRequest.getRequestId());
log
.
warn
(
"小度重复现象出现:{},"
,
getStrRequest
());
log
.
warn
(
"小度重复现象出现:{},"
,
getStrRequest
());
synchronized
(
requestList
)
{
synchronized
(
requestList
)
{
requestList
.
wait
(
5
000
);
requestList
.
wait
(
10
000
);
log
.
info
(
"等待线程苏醒"
);
log
.
info
(
"等待线程苏醒"
);
}
}
data
.
setResponse
(
new
Response
());
return
;
return
;
}
}
final
Query
query
=
intentRequest
.
getQuery
();
final
Query
query
=
intentRequest
.
getQuery
();
...
@@ -246,7 +272,11 @@ public class DplBotService extends BaseBot {
...
@@ -246,7 +272,11 @@ public class DplBotService extends BaseBot {
}
else
{
}
else
{
response
=
RequestTerminal
.
requestTerminateDU2
(
userWord
,
getDeviceId
());
response
=
RequestTerminal
.
requestTerminateDU2
(
userWord
,
getDeviceId
());
}
}
log
.
info
(
"小度,小悟返回:{}"
,
response
.
getText
());
log
.
info
(
"小度,小悟返回:{}, audioUrl:{}"
,
response
.
getText
(),
response
.
getAudio
());
if
(
StringUtils
.
isBlank
(
response
.
getAudio
()))
{
data
.
setResponse
(
buildErrorResponse
(
ErrorMsg
.
SORRY_UNCATCH
));
return
;
}
if
(!
ScheduleService
.
getExceptBotAccount
().
contains
(
response
.
getAipioneerUsername
()))
{
if
(!
ScheduleService
.
getExceptBotAccount
().
contains
(
response
.
getAipioneerUsername
()))
{
String
beforeBotAccount
=
getSessionAttribute
(
"botAcc"
);
String
beforeBotAccount
=
getSessionAttribute
(
"botAcc"
);
if
(
StringUtils
.
isBlank
(
beforeBotAccount
)
||
!
beforeBotAccount
.
equals
(
response
.
getAipioneerUsername
()))
{
if
(
StringUtils
.
isBlank
(
beforeBotAccount
)
||
!
beforeBotAccount
.
equals
(
response
.
getAipioneerUsername
()))
{
...
@@ -265,8 +295,8 @@ public class DplBotService extends BaseBot {
...
@@ -265,8 +295,8 @@ public class DplBotService extends BaseBot {
DplbotServiceUtil
.
getPOOL
().
submit
(()
->
WebSocketLog
.
sendInfo
(
new
StringBuilder
(
word
).
append
(
File
.
separator
)
DplbotServiceUtil
.
getPOOL
().
submit
(()
->
WebSocketLog
.
sendInfo
(
new
StringBuilder
(
word
).
append
(
File
.
separator
)
.
append
(
response
.
getText
()).
toString
(),
"du2"
));
.
append
(
response
.
getText
()).
toString
(),
"du2"
));
}
}
data
.
setResponse
(
new
Response
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
warn
(
"中控返回结果为空"
);
data
.
setResponse
(
buildErrorResponse
(
ErrorMsg
.
SORRY_UNCATCH
));
data
.
setResponse
(
buildErrorResponse
(
ErrorMsg
.
SORRY_UNCATCH
));
}
}
finally
{
finally
{
...
@@ -328,7 +358,7 @@ public class DplBotService extends BaseBot {
...
@@ -328,7 +358,7 @@ public class DplBotService extends BaseBot {
String
name
=
ScheduleService
.
PRODUCT_ID_DETAIL
.
get
(
botId
).
getName
();
String
name
=
ScheduleService
.
PRODUCT_ID_DETAIL
.
get
(
botId
).
getName
();
if
(
name
!=
null
)
desc
=
new
StringBuilder
(
"感谢您赏赐给"
).
append
(
name
)
if
(
name
!=
null
)
desc
=
new
StringBuilder
(
"感谢您赏赐给"
).
append
(
name
)
.
append
(
"的"
).
append
(
num
).
append
(
"朵鲜花"
).
toString
();
.
append
(
"的"
).
append
(
num
).
append
(
"朵鲜花"
).
toString
();
Charge
charge
=
new
Charge
(
amount
,
orderId
,
"
鲜花"
,
desc
);
Charge
charge
=
new
Charge
(
amount
,
orderId
,
num
+
"朵
鲜花"
,
desc
);
charge
.
setToken
(
new
StringBuilder
(
botId
).
append
(
File
.
separator
).
append
(
num
).
toString
());
charge
.
setToken
(
new
StringBuilder
(
botId
).
append
(
File
.
separator
).
append
(
num
).
toString
());
addDirective
(
charge
);
addDirective
(
charge
);
data
.
setResponse
(
buildErrorResponse
(
"请到小度APP上完成支付"
));
data
.
setResponse
(
buildErrorResponse
(
"请到小度APP上完成支付"
));
...
@@ -590,9 +620,15 @@ public class DplBotService extends BaseBot {
...
@@ -590,9 +620,15 @@ public class DplBotService extends BaseBot {
case
EXCEEDED_MAX_REPROMPTS:
log
.
info
(
EndMsg
.
CAN_NOT_UNDERSTAND
);
break
;
case
EXCEEDED_MAX_REPROMPTS:
log
.
info
(
EndMsg
.
CAN_NOT_UNDERSTAND
);
break
;
}
}
if
(
getRequest
().
getContext
().
getScreen
()
==
null
)
{
if
(
getRequest
().
getContext
().
getScreen
()
==
null
)
{
LAST_OUTTIME_MARK
.
remove
(
getDeviceId
());
LAST_OUTTIME_RESULT
.
remove
(
getDeviceId
());
OutputSpeech
outputSpeech
=
new
OutputSpeech
(
OutputSpeech
.
SpeechType
.
PlainText
,
EndMsg
.
BYE_BYE
);
OutputSpeech
outputSpeech
=
new
OutputSpeech
(
OutputSpeech
.
SpeechType
.
PlainText
,
EndMsg
.
BYE_BYE
);
try
{
try
{
RequestTerminal
.
requestTerminate
(
"退出"
,
getDeviceId
());
if
(
DU_DEVICE_ID
.
equals
(
getDeviceId
()))
{
RequestTerminal
.
backRequest
(
DU_DEVICE_ID
);
}
else
{
RequestTerminal
.
backRequestDU2
(
getDeviceId
());
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
warn
(
"用户退出向中控发出退出指令出错"
);
log
.
warn
(
"用户退出向中控发出退出指令出错"
);
}
}
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java
View file @
f8b3597c
...
@@ -57,6 +57,15 @@ class RequestTerminal {
...
@@ -57,6 +57,15 @@ class RequestTerminal {
OkHttp3Utils
.
backPostAsync
(
Constants
.
QI_WU_INTERFACE
,
requestJsonStr
);
OkHttp3Utils
.
backPostAsync
(
Constants
.
QI_WU_INTERFACE
,
requestJsonStr
);
}
}
static
void
backRequestDU2
(
String
userId
)
{
QiWuRequest
requestPojo
=
new
QiWuRequest
();
requestPojo
.
setUid
(
userId
);
// requestPojo.setAccess(Constants.SERVICE_NAME);
requestPojo
.
setMsg
(
"退出"
);
String
requestJsonStr
=
JSON
.
toJSONString
(
requestPojo
);
OkHttp3Utils
.
backPostAsync
(
Constants
.
INTERFACE_DI
,
requestJsonStr
);
}
public
static
void
main
(
String
[]
args
)
throws
IOException
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
String
url
=
"http://didi-gz5.jiaoyou365.com:18082/api/works"
;
String
url
=
"http://didi-gz5.jiaoyou365.com:18082/api/works"
;
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/common/XiaoAiConstants.java
View file @
f8b3597c
...
@@ -7,7 +7,7 @@ package ai.qiwu.com.xiaoduhome.xiaoai.common;
...
@@ -7,7 +7,7 @@ package ai.qiwu.com.xiaoduhome.xiaoai.common;
*/
*/
public
interface
XiaoAiConstants
{
public
interface
XiaoAiConstants
{
String
QI_WU_TERMINATE_DIDI
=
"http://didi-gz3.jiaoyou365.com:8070/api/chat2"
;
String
QI_WU_TERMINATE_DIDI
=
"http://didi-gz3.jiaoyou365.com:8070/api/chat2"
;
String
QI_WU_TERMINATE_nx2
=
"http://didi-gz
3
.jiaoyou365.com:8070/api/chat2"
;
String
QI_WU_TERMINATE_nx2
=
"http://didi-gz
4
.jiaoyou365.com:8070/api/chat2"
;
String
DEVICE_NAME
=
"XIAOAI"
;
String
DEVICE_NAME
=
"XIAOAI"
;
String
CONTENT_TYPE
=
"application/json;charset=utf-8"
;
String
CONTENT_TYPE
=
"application/json;charset=utf-8"
;
String
PLAYBACK_NEARLY_FINISHED
=
"mediaplayer.playbacknearlyfinished"
;
String
PLAYBACK_NEARLY_FINISHED
=
"mediaplayer.playbacknearlyfinished"
;
...
@@ -26,5 +26,9 @@ public interface XiaoAiConstants {
...
@@ -26,5 +26,9 @@ public interface XiaoAiConstants {
String
END_WORD
=
"退出"
;
String
END_WORD
=
"退出"
;
String
USER_IDLE
=
"小悟在等你的回复"
;
String
USER_IDLE
=
"小悟在等你的回复"
;
String
ANOTHER_USER_IDLE
=
"再不回复我,那我可退出喽"
;
String
ANOTHER_USER_IDLE
=
"再不回复我,那我可退出喽"
;
String
WAIT_WORD_1
=
"请稍微等下,小悟正在努力的获取您刚才的返回结果,"
;
String
WAIT_WORD_2
=
"由于网络的原因,您可能需要稍稍等等"
;
String
WAIT_WORD_3
=
"由于网络原因小悟正在加倍努力获取结果,不过您现在得快些对我说些什么,要不然您就退出我们的技能了"
;
}
}
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiService.java
View file @
f8b3597c
...
@@ -13,6 +13,7 @@ import ai.qiwu.com.xiaoduhome.xiaoai.model.response.innerResponse.directive.Dire
...
@@ -13,6 +13,7 @@ import ai.qiwu.com.xiaoduhome.xiaoai.model.response.innerResponse.directive.Dire
import
ai.qiwu.com.xiaoduhome.xiaoai.model.response.innerResponse.toSpeak.ToSpeak
;
import
ai.qiwu.com.xiaoduhome.xiaoai.model.response.innerResponse.toSpeak.ToSpeak
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.RandomUtils
;
import
org.apache.commons.lang3.RandomUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.math.NumberUtils
;
import
org.apache.commons.lang3.math.NumberUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -23,6 +24,7 @@ import java.util.Random;
...
@@ -23,6 +24,7 @@ import java.util.Random;
import
java.util.concurrent.*
;
import
java.util.concurrent.*
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
xiaoai
.
common
.
XiaoAiConstants
.
ERROR_MSG
.
SORRY_REPEAT
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
xiaoai
.
common
.
XiaoAiConstants
.
ERROR_MSG
.
SORRY_REPEAT
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
xiaoai
.
common
.
XiaoAiConstants
.
TTS
.
WAIT_WORD_3
;
/**
/**
* @author 苗权威
* @author 苗权威
...
@@ -44,6 +46,10 @@ public class XiaoAiService {
...
@@ -44,6 +46,10 @@ public class XiaoAiService {
* 缓存上次超时的响应结果,下次返回给用户
* 缓存上次超时的响应结果,下次返回给用户
*/
*/
private
static
final
ConcurrentHashMap
<
String
,
XiaoAiResponse
>
LAST_OUTTIME_RESULT
=
new
ConcurrentHashMap
<>();
private
static
final
ConcurrentHashMap
<
String
,
XiaoAiResponse
>
LAST_OUTTIME_RESULT
=
new
ConcurrentHashMap
<>();
public
static
final
ConcurrentHashMap
<
String
,
Byte
>
LAST_OUTTIME_MARK
=
new
ConcurrentHashMap
<>();
public
static
final
Byte
OUTTIME_TYPE_0
=
0
;
public
static
final
Byte
OUTTIME_TYPE_1
=
1
;
public
static
final
String
deviceId
=
"oIOWfYEFbZGFHB5DzoMA=="
;
public
static
final
String
deviceId
=
"oIOWfYEFbZGFHB5DzoMA=="
;
...
@@ -171,6 +177,8 @@ public class XiaoAiService {
...
@@ -171,6 +177,8 @@ public class XiaoAiService {
// deviceId = getUserId(request);
// deviceId = getUserId(request);
// log.info("didi-gz3 deviceId:"+deviceId);
// log.info("didi-gz3 deviceId:"+deviceId);
// }
// }
LAST_OUTTIME_RESULT
.
remove
(
getUserId
(
request
));
LAST_OUTTIME_MARK
.
remove
(
getUserId
(
request
));
return
buildTextResponse
(
XiaoAiConstants
.
TTS
.
WELCOME_WORD
);
return
buildTextResponse
(
XiaoAiConstants
.
TTS
.
WELCOME_WORD
);
}
}
...
@@ -183,23 +191,50 @@ public class XiaoAiService {
...
@@ -183,23 +191,50 @@ public class XiaoAiService {
*/
*/
private
XiaoAiResponse
dealWithIntentRequest
(
XiaoAiRequest
request
,
String
userId
)
{
private
XiaoAiResponse
dealWithIntentRequest
(
XiaoAiRequest
request
,
String
userId
)
{
Boolean
idle
=
request
.
getRequest
().
getNo_response
();
Boolean
idle
=
request
.
getRequest
().
getNo_response
();
Byte
waitType
;
if
((
waitType
=
LAST_OUTTIME_MARK
.
get
(
userId
))
!=
null
)
{
boolean
firstTime
=
waitType
==
0
;
try
{
//log.info("开始等待");
Thread
.
sleep
(
1600
);
//log.info("等待OVER");
}
catch
(
InterruptedException
e
)
{
log
.
warn
(
"等待中断"
);
}
if
(
LAST_OUTTIME_RESULT
.
get
(
userId
)
==
null
)
{
if
(
Boolean
.
TRUE
.
equals
(
idle
))
{
if
(
firstTime
)
{
LAST_OUTTIME_MARK
.
put
(
userId
,
OUTTIME_TYPE_1
);
return
buildTextResponse
((
RandomUtils
.
nextInt
()
&
1
)
==
1
?
XiaoAiConstants
.
TTS
.
WAIT_WORD_1
:
XiaoAiConstants
.
TTS
.
WAIT_WORD_2
);
}
else
{
return
buildTextResponse
(
WAIT_WORD_3
);
}
}
LAST_OUTTIME_MARK
.
put
(
userId
,
OUTTIME_TYPE_0
);
return
buildTextResponse
((
RandomUtils
.
nextInt
()
&
1
)
==
1
?
XiaoAiConstants
.
TTS
.
WAIT_WORD_1
:
XiaoAiConstants
.
TTS
.
WAIT_WORD_2
);
}
LAST_OUTTIME_MARK
.
remove
(
userId
);
return
LAST_OUTTIME_RESULT
.
remove
(
userId
);
}
if
(
idle
!=
null
&&
idle
)
{
if
(
idle
!=
null
&&
idle
)
{
try
{
try
{
//log.info("开始等待");
//log.info("开始等待");
Thread
.
sleep
(
1
8
00
);
Thread
.
sleep
(
1
9
00
);
//log.info("等待OVER");
//log.info("等待OVER");
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
log
.
warn
(
"等待中断"
);
log
.
warn
(
"等待中断"
);
}
}
XiaoAiResponse
response
=
getLastResult
(
userId
);
//
XiaoAiResponse response = getLastResult(userId);
if
(
response
!=
null
)
return
response
;
//
if (response != null) return response;
//log.info("用户没说话");
//log.info("用户没说话");
//return buildTextResponse(".");
//return buildTextResponse(".");
return
buildTextResponse
((
RandomUtils
.
nextInt
()
&
1
)
==
1
?
XiaoAiConstants
.
TTS
.
USER_IDLE
:
return
buildTextResponse
((
RandomUtils
.
nextInt
()
&
1
)
==
1
?
XiaoAiConstants
.
TTS
.
USER_IDLE
:
XiaoAiConstants
.
TTS
.
ANOTHER_USER_IDLE
);
XiaoAiConstants
.
TTS
.
ANOTHER_USER_IDLE
);
}
}
XiaoAiResponse
response
=
getLastResult
(
userId
);
//
XiaoAiResponse response = getLastResult(userId);
if
(
response
!=
null
)
return
response
;
//
if (response != null) return response;
try
{
try
{
Future
future
=
DplbotServiceUtil
.
getPool
().
submit
(
new
Task
(
userId
,
request
.
getQuery
()));
Future
future
=
DplbotServiceUtil
.
getPool
().
submit
(
new
Task
(
userId
,
request
.
getQuery
()));
future
.
get
(
2100
,
TimeUnit
.
MILLISECONDS
);
future
.
get
(
2100
,
TimeUnit
.
MILLISECONDS
);
...
@@ -208,6 +243,7 @@ public class XiaoAiService {
...
@@ -208,6 +243,7 @@ public class XiaoAiService {
return
buildTextResponse
(
SORRY_REPEAT
);
return
buildTextResponse
(
SORRY_REPEAT
);
}
catch
(
TimeoutException
e
)
{
}
catch
(
TimeoutException
e
)
{
log
.
info
(
"超时,让用户再说一遍:{}"
,
e
.
toString
());
log
.
info
(
"超时,让用户再说一遍:{}"
,
e
.
toString
());
LAST_OUTTIME_MARK
.
put
(
userId
,
OUTTIME_TYPE_0
);
return
buildTextResponse
(
XiaoAiConstants
.
ERROR_MSG
.
TIME_OUT
);
return
buildTextResponse
(
XiaoAiConstants
.
ERROR_MSG
.
TIME_OUT
);
}
catch
(
Exception
all
)
{
}
catch
(
Exception
all
)
{
log
.
error
(
"任务执行发生了错误:{}"
,
all
.
toString
());
log
.
error
(
"任务执行发生了错误:{}"
,
all
.
toString
());
...
@@ -229,6 +265,7 @@ public class XiaoAiService {
...
@@ -229,6 +265,7 @@ public class XiaoAiService {
log
.
error
(
"向终端发出的退出请求失败:{}"
,
e
.
toString
());
log
.
error
(
"向终端发出的退出请求失败:{}"
,
e
.
toString
());
}
}
});
});
LAST_OUTTIME_MARK
.
remove
(
userId
);
LAST_OUTTIME_RESULT
.
remove
(
userId
);
LAST_OUTTIME_RESULT
.
remove
(
userId
);
return
buildTextResponse
(
XiaoAiConstants
.
TTS
.
END_BYE
);
return
buildTextResponse
(
XiaoAiConstants
.
TTS
.
END_BYE
);
}
}
...
@@ -280,10 +317,11 @@ public class XiaoAiService {
...
@@ -280,10 +317,11 @@ public class XiaoAiService {
log
.
error
(
"向终端发出的请求信息失败:{}"
,
e
.
toString
());
log
.
error
(
"向终端发出的请求信息失败:{}"
,
e
.
toString
());
throw
new
RequestTerminateFail
(
e
.
toString
());
throw
new
RequestTerminateFail
(
e
.
toString
());
}
}
if
(
response
==
null
)
{
if
(
response
==
null
||
StringUtils
.
isBlank
(
response
.
getAudio
()))
{
log
.
error
(
"中控返回结果或是url链接为空"
);
xiaoAiResponse
=
buildTextResponse
(
SORRY_REPEAT
);
xiaoAiResponse
=
buildTextResponse
(
SORRY_REPEAT
);
}
else
{
}
else
{
log
.
info
(
"小爱,小悟返回:{}
"
,
response
.
getText
());
log
.
info
(
"小爱,小悟返回:{}
, audio:{}"
,
response
.
getText
(),
response
.
getAudio
());
final
String
audioUrl
=
response
.
getAudio
();
final
String
audioUrl
=
response
.
getAudio
();
xiaoAiResponse
=
buildAudioResponse
(
audioUrl
);
xiaoAiResponse
=
buildAudioResponse
(
audioUrl
);
final
String
word
=
userWord
;
final
String
word
=
userWord
;
...
...
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