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
7542ddaf
Commit
7542ddaf
authored
Aug 11, 2020
by
苗权威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8.11
parent
c44f1797
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
719 additions
and
342 deletions
+719
-342
Project_Default.xml
.idea/inspectionProfiles/Project_Default.xml
+33
-0
profiles_settings.xml
.idea/inspectionProfiles/profiles_settings.xml
+14
-0
workspace.xml
.idea/workspace.xml
+269
-271
ApachHttpUtils.java
...n/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java
+65
-24
TTSUtils.java
...rc/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java
+12
-14
DeployController.java
.../ai/qiwu/com/tts_service/controller/DeployController.java
+255
-11
MoveBotAudio.java
...ava/ai/qiwu/com/tts_service/pojo/deploy/MoveBotAudio.java
+15
-0
Result.java
...main/java/ai/qiwu/com/tts_service/pojo/deploy/Result.java
+33
-0
Initialize.java
...main/java/ai/qiwu/com/tts_service/service/Initialize.java
+2
-2
TTService.java
.../main/java/ai/qiwu/com/tts_service/service/TTService.java
+1
-1
TTServiceEdition2.java
...va/ai/qiwu/com/tts_service/service/TTServiceEdition2.java
+20
-19
No files found.
.idea/inspectionProfiles/Project_Default.xml
View file @
7542ddaf
<component
name=
"InspectionProjectProfileManager"
>
<profile
version=
"1.0"
>
<option
name=
"myName"
value=
"Project Default"
/>
<inspection_tool
class=
"AliControlFlowStatementWithoutBraces"
enabled=
"false"
level=
"BLOCKER"
enabled_by_default=
"false"
/>
<inspection_tool
class=
"Duplicates"
enabled=
"false"
level=
"WEAK WARNING"
enabled_by_default=
"false"
/>
<inspection_tool
class=
"JavaDoc"
enabled=
"true"
level=
"WARNING"
enabled_by_default=
"true"
>
<option
name=
"TOP_LEVEL_CLASS_OPTIONS"
>
<value>
<option
name=
"ACCESS_JAVADOC_REQUIRED_FOR"
value=
"none"
/>
<option
name=
"REQUIRED_TAGS"
value=
""
/>
</value>
</option>
<option
name=
"INNER_CLASS_OPTIONS"
>
<value>
<option
name=
"ACCESS_JAVADOC_REQUIRED_FOR"
value=
"none"
/>
<option
name=
"REQUIRED_TAGS"
value=
""
/>
</value>
</option>
<option
name=
"METHOD_OPTIONS"
>
<value>
<option
name=
"ACCESS_JAVADOC_REQUIRED_FOR"
value=
"none"
/>
<option
name=
"REQUIRED_TAGS"
value=
"@return@param@throws or @exception"
/>
</value>
</option>
<option
name=
"FIELD_OPTIONS"
>
<value>
<option
name=
"ACCESS_JAVADOC_REQUIRED_FOR"
value=
"none"
/>
<option
name=
"REQUIRED_TAGS"
value=
""
/>
</value>
</option>
<option
name=
"IGNORE_DEPRECATED"
value=
"false"
/>
<option
name=
"IGNORE_JAVADOC_PERIOD"
value=
"true"
/>
<option
name=
"IGNORE_DUPLICATED_THROWS"
value=
"false"
/>
<option
name=
"IGNORE_POINT_TO_ITSELF"
value=
"false"
/>
<option
name=
"myAdditionalJavadocTags"
value=
"date"
/>
</inspection_tool>
</profile>
</component>
\ No newline at end of file
.idea/inspectionProfiles/profiles_settings.xml
0 → 100644
View file @
7542ddaf
<component
name=
"InspectionProjectProfileManager"
>
<settings>
<list
size=
"7"
>
<item
index=
"0"
class=
"java.lang.String"
itemvalue=
"INFORMATION"
/>
<item
index=
"1"
class=
"java.lang.String"
itemvalue=
"TYPO"
/>
<item
index=
"2"
class=
"java.lang.String"
itemvalue=
"SERVER PROBLEM"
/>
<item
index=
"3"
class=
"java.lang.String"
itemvalue=
"WEAK WARNING"
/>
<item
index=
"4"
class=
"java.lang.String"
itemvalue=
"INFO"
/>
<item
index=
"5"
class=
"java.lang.String"
itemvalue=
"WARNING"
/>
<item
index=
"6"
class=
"java.lang.String"
itemvalue=
"ERROR"
/>
</list>
</settings>
</component>
\ No newline at end of file
.idea/workspace.xml
View file @
7542ddaf
...
...
@@ -5,25 +5,14 @@
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"63e156df-08bf-4b44-b5d3-f7e9200a2cef"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.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/common/TTSUtils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.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/TTService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java"
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/controller/SpiritController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/SpiritController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoAiController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoAiController.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/outside/OutSideCache.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/outside/OutSideCache.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/data/BaseHostData.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/data/BaseHostData.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotServiceBoth.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotServiceBoth.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritRedisService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritRedisService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiServiceRedis.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiServiceRedis.java"
afterDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
<ignored
path=
"$PROJECT_DIR$/spirit/target/"
/>
...
...
@@ -61,114 +50,106 @@
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"450"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
controller/TTSController
.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
service/TTServiceEdition2
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-3953
"
>
<caret
line=
"
71"
column=
"25"
selection-start-line=
"71"
selection-start-column=
"25"
selection-end-line=
"71"
selection-end-column=
"2
5"
/>
<state
relative-caret-position=
"
577
"
>
<caret
line=
"
629"
column=
"35"
selection-start-line=
"629"
selection-start-column=
"35"
selection-end-line=
"629"
selection-end-column=
"3
5"
/>
<folding>
<element
signature=
"
e#10108#10144#0
"
/>
<element
signature=
"
imports"
expanded=
"true
"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
service/TTServiceEdition2
.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
common/TTSUtils
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"198"
>
<caret
line=
"575"
column=
"29"
lean-forward=
"true"
selection-start-line=
"575"
selection-start-column=
"29"
selection-end-line=
"575"
selection-end-column=
"29"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"3842"
>
<caret
line=
"707"
column=
"5"
selection-start-line=
"707"
selection-start-column=
"5"
selection-end-line=
"707"
selection-end-column=
"5"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/co
mmon/TTSUtils
.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/co
ntroller/TTSController
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"182"
>
<caret
line=
"60"
column=
"50"
selection-start-line=
"60"
selection-start-column=
"37"
selection-end-line=
"60"
selection-end-column=
"50"
/>
<state
relative-caret-position=
"454"
>
<caret
line=
"315"
column=
"69"
selection-start-line=
"315"
selection-start-column=
"69"
selection-end-line=
"315"
selection-end-column=
"69"
/>
<folding>
<element
signature=
"e#10108#10144#0"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/
baidu/ThirdParty
Service.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/
TT
Service.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
36
"
>
<caret
line=
"
48"
column=
"15"
lean-forward=
"true"
selection-start-line=
"48"
selection-start-column=
"15"
selection-end-line=
"48"
selection-end-column=
"15
"
/>
<state
relative-caret-position=
"3
8632
"
>
<caret
line=
"
1787"
column=
"30"
selection-start-line=
"1787"
selection-start-column=
"18"
selection-end-line=
"1787"
selection-end-column=
"30
"
/>
<folding>
<element
signature=
"e#5964#5965#0"
expanded=
"true"
/>
<element
signature=
"e#6044#6045#0"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java
"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaodu/src/main/resources/templates/Product.html
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-1220
"
>
<caret
line=
"
75"
column=
"17"
selection-start-line=
"75"
selection-start-column=
"17"
selection-end-line=
"75"
selection-end-column=
"17
"
/>
<state
relative-caret-position=
"
1958
"
>
<caret
line=
"
143"
column=
"5"
selection-start-line=
"143"
selection-start-column=
"5"
selection-end-line=
"143"
selection-end-column=
"5
"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils
.java"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"586"
>
<caret
line=
"679"
column=
"46"
selection-start-line=
"679"
selection-start-column=
"46"
selection-end-line=
"679"
selection-end-column=
"46"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"405"
>
<caret
line=
"194"
column=
"16"
selection-start-line=
"194"
selection-start-column=
"16"
selection-end-line=
"194"
selection-end-column=
"16"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
service/Initialize
.java"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
pojo/upload/UploadOneSenData
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"354"
>
<caret
line=
"179"
column=
"95"
selection-start-line=
"179"
selection-start-column=
"95"
selection-end-line=
"179"
selection-end-column=
"95"
/>
<folding>
<element
signature=
"e#15984#15985#0"
expanded=
"true"
/>
<element
signature=
"e#16017#16018#0"
expanded=
"true"
/>
<element
signature=
"e#16778#16779#0"
expanded=
"true"
/>
<element
signature=
"e#16813#16814#0"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"264"
>
<caret
line=
"16"
column=
"13"
selection-start-line=
"16"
selection-start-column=
"13"
selection-end-line=
"16"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/
TTServic
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"
>
<state
relative-caret-position=
"463"
>
<caret
line=
"52"
column=
"47"
selection-start-line=
"52"
selection-start-column=
"43"
selection-end-line=
"52"
selection-end-column=
"47"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#97885#97919#0"
/>
</folding>
<state
relative-caret-position=
"4246"
>
<caret
line=
"205"
column=
"44"
selection-start-line=
"205"
selection-start-column=
"38"
selection-end-line=
"205"
selection-end-column=
"44"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/co
ntroller/DeployController
.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/co
mmon/ApachHttpUtils
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"418"
>
<caret
line=
"44"
column=
"29"
selection-start-line=
"44"
selection-start-column=
"29"
selection-end-line=
"44"
selection-end-column=
"29"
/>
<state
relative-caret-position=
"10978"
>
<caret
line=
"569"
column=
"43"
selection-start-line=
"569"
selection-start-column=
"25"
selection-end-line=
"569"
selection-end-column=
"43"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/co
mmon/OkHttp3Utils
.java"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/co
ntroller/DeployController
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"9482"
>
<caret
line=
"447"
column=
"36"
selection-start-line=
"447"
selection-start-column=
"36"
selection-end-line=
"447"
selection-end-column=
"36"
/>
<state
relative-caret-position=
"134"
>
<caret
line=
"48"
column=
"43"
selection-start-line=
"48"
selection-start-column=
"43"
selection-end-line=
"48"
selection-end-column=
"43"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
...
...
@@ -185,15 +166,6 @@
</component>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<find>
task
</find>
<find>
dealWithEndRequest
</find>
<find>
path
</find>
<find>
changeAudioUrlTemp
</find>
<find>
token
</find>
<find>
onclick
</find>
<find>
mark file create fail
</find>
<find>
i
</find>
<find>
recordFolder
</find>
<find>
notVariableTextPath
</find>
<find>
THIRD_PARTY_TTS
</find>
<find>
usDir
</find>
...
...
@@ -202,7 +174,6 @@
<find>
variablePathInUsDir
</find>
<find>
text
</find>
<find>
tts_ls
</find>
<find>
genRecordWithChange
</find>
<find>
23
</find>
<find>
SERVER_URL
</find>
<find>
BASE_HOST_URL
</find>
...
...
@@ -211,14 +182,24 @@
<find>
GAME_EDITOR_HOST
</find>
<find>
requestTerminate
</find>
<find>
offlineStr
</find>
<find>
response
</find>
<find>
CHANGE_SOUND
</find>
<find>
filepath
</find>
<find>
POOL
</find>
<find>
generalMP3
</find>
<find>
App.LOGGER
</find>
<find>
auth
</find>
<find>
response
</find>
<find>
type
</find>
<find>
params
</find>
<find>
asyncDelete
</find>
<find>
checkZipFile
</find>
<find>
referenceName
</find>
<find>
genRecordWithChange
</find>
<find>
zipDir
</find>
</findStrings>
<replaceStrings>
<replace>
log
</replace>
<replace>
!CollectionUtils.isEmpty
</replace>
<replace>
log
</replace>
</replaceStrings>
</component>
<component
name=
"Git.Settings"
>
...
...
@@ -227,9 +208,6 @@
<component
name=
"IdeDocumentHistory"
>
<option
name=
"CHANGED_PATHS"
>
<list>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/UpLoadImgController.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TtsLsResponse.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TtsLsAudio.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/resources/application.yml"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/FileUtil.java"
/>
...
...
@@ -269,15 +247,18 @@
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiServiceRedis.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotServiceBoth.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritRedisService.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/common/OkHttp3Utils.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/deploy/SynTargetServer.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/deploy/Result.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/deploy/MoveBotAudio.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.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/TTServiceEdition2.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/baidu/ThirdPartyService.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
/>
</list>
</option>
</component>
...
...
@@ -309,8 +290,8 @@
<option
name=
"skipTests"
value=
"true"
/>
</component>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"
285
"
/>
<option
name=
"y"
value=
"1
0
0"
/>
<option
name=
"x"
value=
"
333
"
/>
<option
name=
"y"
value=
"1
7
0"
/>
<option
name=
"width"
value=
"1400"
/>
<option
name=
"height"
value=
"1003"
/>
</component>
...
...
@@ -332,25 +313,25 @@
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
tts_servic
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
xiaoduhom
e"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
tts_servic
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
xiaoduhom
e"
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_servic
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
xiaoduhom
e"
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_servic
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
xiaoduhom
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
...
...
@@ -358,40 +339,41 @@
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
tts_servic
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
xiaoduhom
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
tts_servic
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
xiaoduhom
e"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
tts_servic
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
xiaoduhom
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
tts_servic
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
common
"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
xiaoduhom
e"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
service
"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
<select
/>
</subPane>
</pane>
<pane
id=
"PackagesPane"
/>
<pane
id=
"Scope"
/>
<pane
id=
"PackagesPane"
/>
</panes>
</component>
<component
name=
"PropertiesComponent"
>
<property
name=
"DefaultHtmlFileTemplate"
value=
"HTML File"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"aspect.path.notification.shown"
value=
"true"
/>
<property
name=
"com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp"
value=
"159
4383427891
"
/>
<property
name=
"com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp"
value=
"159
7151337176
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/../Trading"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"
MavenSettings
"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"
configurable.group.build
"
/>
</component>
<component
name=
"RecentsManager"
>
<key
name=
"CopyClassDialog.RECENTS_KEY"
>
<recent
name=
"ai.qiwu.com.tts_service.pojo.deploy"
/>
<recent
name=
"ai.qiwu.com.xiaoduhome.outside.model"
/>
<recent
name=
"ai.qiwu.com.tts_service.common"
/>
</key>
...
...
@@ -408,7 +390,7 @@
</list>
</option>
</component>
<component
name=
"RunManager"
selected=
"Application.TTS
erviceEdition2
"
>
<component
name=
"RunManager"
selected=
"Application.TTS
Utils
"
>
<configuration
name=
"ApachHttpUtils"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.tts_service.common.ApachHttpUtils"
/>
<module
name=
"tts_service"
/>
...
...
@@ -422,12 +404,12 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"
ScheduleServiceNew
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.
xiaoduhome.service.ScheduleServiceNew
"
/>
<module
name=
"
xiaoduhom
e"
/>
<configuration
name=
"
DeployController
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.
tts_service.controller.DeployController
"
/>
<module
name=
"
tts_servic
e"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.
xiaoduhome.service
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.
tts_service.controller
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -435,12 +417,12 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"
SpiritAudioUpload
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.
tmall.spirit.spirit.SpiritAudioUpload
"
/>
<module
name=
"
spirit
"
/>
<configuration
name=
"
TTSUtils
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.
com.tts_service.common.TTSUtils
"
/>
<module
name=
"
tts_service
"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"ai.qiwu.
tmall.spirit.spirit
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.
com.tts_service.common
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -518,27 +500,30 @@
</configuration>
<list>
<item
itemvalue=
"Application.TTServiceEdition2"
/>
<item
itemvalue=
"Application.SpiritAudioUpload"
/>
<item
itemvalue=
"Application.ScheduleServiceNew"
/>
<item
itemvalue=
"Application.ThirdPartyService"
/>
<item
itemvalue=
"Application.ApachHttpUtils"
/>
<item
itemvalue=
"Application.DeployController"
/>
<item
itemvalue=
"Spring Boot.XiaoaiApplication"
/>
<item
itemvalue=
"Spring Boot.XiaoduhomeApplication"
/>
<item
itemvalue=
"Spring Boot.XiaoduApplication"
/>
<item
itemvalue=
"Spring Boot.DingdongApplication"
/>
<item
itemvalue=
"Spring Boot.TtsServiceApplication"
/>
<item
itemvalue=
"Spring Boot.SpiritApplication"
/>
<item
itemvalue=
"Application.
ApachHttp
Utils"
/>
<item
itemvalue=
"Application.
TTS
Utils"
/>
</list>
<recent_temporary>
<list>
<item
itemvalue=
"Application.TTSUtils"
/>
<item
itemvalue=
"Application.DeployController"
/>
<item
itemvalue=
"Application.TTServiceEdition2"
/>
<item
itemvalue=
"Application.ApachHttpUtils"
/>
<item
itemvalue=
"Application.ThirdPartyService"
/>
<item
itemvalue=
"Application.ScheduleServiceNew"
/>
<item
itemvalue=
"Application.SpiritAudioUpload"
/>
</list>
</recent_temporary>
</component>
<component
name=
"SshConsoleOptionsProvider"
>
<option
name=
"myEncoding"
value=
"UTF-8"
/>
</component>
<component
name=
"SvnConfiguration"
>
<configuration
/>
</component>
...
...
@@ -701,29 +686,42 @@
<workItem
from=
"1594265708457"
duration=
"634000"
/>
<workItem
from=
"1594269989759"
duration=
"5050000"
/>
<workItem
from=
"1594348709906"
duration=
"10956000"
/>
<workItem
from=
"1594373625372"
duration=
"9292000"
/>
<workItem
from=
"1594373625372"
duration=
"10021000"
/>
<workItem
from=
"1594608512826"
duration=
"3447000"
/>
<workItem
from=
"1594691538258"
duration=
"699000"
/>
<workItem
from=
"1594711609648"
duration=
"1212000"
/>
<workItem
from=
"1594891302969"
duration=
"26000"
/>
<workItem
from=
"1594893881803"
duration=
"1708000"
/>
<workItem
from=
"1595408436590"
duration=
"1002000"
/>
<workItem
from=
"1596272172360"
duration=
"6996000"
/>
<workItem
from=
"1596422075916"
duration=
"323000"
/>
<workItem
from=
"1596422458121"
duration=
"19702000"
/>
<workItem
from=
"1596509852655"
duration=
"10831000"
/>
<workItem
from=
"1596593972177"
duration=
"4346000"
/>
<workItem
from=
"1596710049868"
duration=
"6686000"
/>
<workItem
from=
"1596791938435"
duration=
"2628000"
/>
<workItem
from=
"1597036642390"
duration=
"13488000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"
435945
000"
/>
<option
name=
"totallyTimeSpent"
value=
"
509768
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"285"
y=
"100"
width=
"1400"
height=
"1003"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<frame
x=
"333"
y=
"170"
width=
"1400"
height=
"1003"
extended-state=
"0"
/>
<layout>
<window_info
id=
"Designer"
order=
"0"
/>
<window_info
id=
"Web"
order=
"1"
sideWeight=
"0.50236404"
side_tool=
"true"
weight=
"0.2847633"
/>
<window_info
id=
"UI Designer"
order=
"2"
/>
<window_info
id=
"Favorites"
order=
"3"
sideWeight=
"0.501182"
side_tool=
"true"
weight=
"0.17381656"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"4"
sideWeight=
"0.49881798"
weight=
"0.
19674556
"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"4"
sideWeight=
"0.49881798"
weight=
"0.
24926035
"
/>
<window_info
id=
"Structure"
order=
"5"
sideWeight=
"0.49763593"
weight=
"0.28180474"
/>
<window_info
id=
"Image Layers"
order=
"6"
/>
<window_info
id=
"Capture Tool"
order=
"7"
/>
<window_info
id=
"Alibaba Cloud Explorer"
order=
"8"
weight=
"0.32988167"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.80352944"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
weight=
"0.
6576471
"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
weight=
"0.
4435294
"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
...
...
@@ -734,7 +732,7 @@
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"10"
weight=
"0.4917647"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"11"
weight=
"0.87647057"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"12"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Java Enterprise"
order=
"13"
/>
<window_info
anchor=
"bottom"
id=
"Java Enterprise"
order=
"13"
weight=
"0.32941177"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"14"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Database Changes"
order=
"15"
/>
<window_info
anchor=
"bottom"
id=
"Alibaba Cloud View"
order=
"16"
/>
...
...
@@ -746,10 +744,12 @@
<window_info
anchor=
"right"
id=
"Bean Validation"
order=
"5"
weight=
"0.329142"
/>
<window_info
anchor=
"right"
id=
"Palette	"
order=
"6"
/>
<window_info
anchor=
"right"
id=
"Maven Projects"
order=
"7"
weight=
"0.32991362"
/>
<window_info
anchor=
"right"
id=
"Maven"
order=
"8"
weight=
"0.
52071005
"
/>
<window_info
anchor=
"right"
id=
"Maven"
order=
"8"
weight=
"0.
4356509
"
/>
<window_info
anchor=
"right"
id=
"Capture Analysis"
order=
"9"
/>
<window_info
anchor=
"right"
id=
"Theme Preview"
order=
"10"
/>
<window_info
anchor=
"right"
id=
"Alibaba Log Console"
order=
"11"
/>
<window_info
anchor=
"right"
id=
"Alibaba ROS Templates"
order=
"12"
/>
<window_info
anchor=
"right"
id=
"Alibaba Function Compute"
order=
"13"
/>
</layout>
<layout-to-restore>
<window_info
id=
"Designer"
order=
"0"
/>
...
...
@@ -796,102 +796,6 @@
<option
name=
"version"
value=
"1"
/>
</component>
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/spirit/src/main/java/ai/qiwu/tmall/spirit/spirit/PostFileVO.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/pojo/data/BaseHostData.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"154"
>
<caret
line=
"9"
column=
"20"
lean-forward=
"true"
selection-start-line=
"9"
selection-start-column=
"20"
selection-end-line=
"9"
selection-end-column=
"20"
/>
</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=
"359"
>
<caret
line=
"98"
column=
"57"
lean-forward=
"true"
selection-start-line=
"98"
selection-start-column=
"57"
selection-end-line=
"98"
selection-end-column=
"57"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotRedisService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1056"
>
<caret
line=
"79"
column=
"13"
selection-start-line=
"79"
selection-start-column=
"13"
selection-end-line=
"79"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/outside/OutSideCache.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"38"
>
<caret
line=
"37"
lean-forward=
"true"
selection-start-line=
"37"
selection-end-line=
"37"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/SpiritController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1958"
>
<caret
line=
"116"
column=
"47"
selection-start-line=
"116"
selection-start-column=
"47"
selection-end-line=
"116"
selection-end-column=
"47"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/pom.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/chatsLog/LoginData.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"352"
>
<caret
line=
"17"
lean-forward=
"true"
selection-start-line=
"17"
selection-end-line=
"17"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/LoadFailed.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"198"
>
<caret
line=
"9"
column=
"7"
lean-forward=
"true"
selection-start-line=
"9"
selection-start-column=
"7"
selection-end-line=
"9"
selection-end-column=
"7"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/pom.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1650"
>
<caret
line=
"75"
column=
"28"
selection-start-line=
"75"
selection-start-column=
"28"
selection-end-line=
"75"
selection-end-column=
"28"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/Facade.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/home_load.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-1834"
/>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/LoadBaiDu.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/LoadBySMS.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/AboutProductResult.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/LookLogLogin.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-756"
>
<caret
line=
"24"
column=
"14"
lean-forward=
"true"
selection-start-line=
"24"
selection-start-column=
"14"
selection-end-line=
"24"
selection-end-column=
"14"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/QueryProduct.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"880"
>
...
...
@@ -899,13 +803,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/Product.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"5588"
>
<caret
line=
"254"
column=
"61"
selection-start-line=
"254"
selection-start-column=
"54"
selection-end-line=
"254"
selection-end-column=
"61"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/ProductController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3498"
>
...
...
@@ -999,13 +896,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"4202"
>
<caret
line=
"211"
column=
"53"
selection-start-line=
"211"
selection-start-column=
"53"
selection-end-line=
"211"
selection-end-column=
"53"
/>
</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=
"2574"
>
...
...
@@ -1077,17 +967,38 @@
</state>
</provider>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9-sources.jar!/org/apache/commons/lang3/StringUtils.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"332"
>
<caret
line=
"612"
column=
"29"
lean-forward=
"true"
selection-start-line=
"612"
selection-start-column=
"29"
selection-end-line=
"612"
selection-end-column=
"34"
/>
<folding>
<element
signature=
"e#21627#21628#0"
expanded=
"true"
/>
<element
signature=
"e#21676#21677#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/resources/application.yml"
>
<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/CallPython.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"836"
>
<caret
line=
"46"
column=
"5"
selection-start-line=
"46"
selection-start-column=
"5"
selection-end-line=
"46"
selection-end-column=
"5"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/spirit/src/main/java/ai/qiwu/tmall/spirit/spirit/SpiritAudioUpload.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
3914
"
>
<caret
line=
"1
123"
column=
"48"
selection-start-line=
"1123"
selection-start-column=
"48"
selection-end-line=
"1123"
selection-end-column=
"48
"
/>
<state
relative-caret-position=
"2
6488
"
>
<caret
line=
"1
240"
column=
"17"
selection-start-line=
"1240"
selection-start-column=
"17"
selection-end-line=
"1240"
selection-end-column=
"17
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/co
ntroller/DeployController
.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/co
mmon/TTServiceUtil
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
41
8"
>
<caret
line=
"
44"
column=
"29"
selection-start-line=
"44"
selection-start-column=
"29"
selection-end-line=
"44"
selection-end-column=
"29
"
/>
<state
relative-caret-position=
"
525
8"
>
<caret
line=
"
263"
column=
"23"
selection-start-line=
"263"
selection-start-column=
"23"
selection-end-line=
"263"
selection-end-column=
"23
"
/>
</state>
</provider>
</entry>
...
...
@@ -1098,92 +1009,179 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/deploy.java"
/>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/deploy/SynTargetServer.java"
/>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/deploy/Result.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"616"
>
<caret
line=
"28"
column=
"27"
selection-start-line=
"28"
selection-start-column=
"27"
selection-end-line=
"28"
selection-end-column=
"27"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/String.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-1220
"
>
<caret
line=
"
75"
column=
"17"
selection-start-line=
"75"
selection-start-column=
"17"
selection-end-line=
"75"
selection-end-column=
"17
"
/>
<state
relative-caret-position=
"
274
"
>
<caret
line=
"
975"
column=
"19"
selection-start-line=
"975"
selection-start-column=
"19"
selection-end-line=
"975"
selection-end-column=
"19
"
/>
</state>
</provider>
</entry>
<entry
file=
"
file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtil
s.java"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/nio/file/File
s.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"586"
>
<caret
line=
"679"
column=
"46"
selection-start-line=
"679"
selection-start-column=
"46"
selection-end-line=
"679"
selection-end-column=
"46"
/>
<state
relative-caret-position=
"274"
>
<caret
line=
"1163"
column=
"26"
selection-start-line=
"1163"
selection-start-column=
"26"
selection-end-line=
"1163"
selection-end-column=
"26"
/>
</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=
"528"
>
<caret
line=
"42"
column=
"26"
selection-start-line=
"42"
selection-start-column=
"26"
selection-end-line=
"42"
selection-end-column=
"26"
/>
</state>
</provider>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/nio/file/Path.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"670"
>
<caret
line=
"357"
column=
"9"
selection-start-line=
"357"
selection-start-column=
"9"
selection-end-line=
"357"
selection-end-column=
"9"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/deploy/MoveBotAudio.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"330"
>
<caret
line=
"15"
lean-forward=
"true"
selection-start-line=
"15"
selection-end-line=
"15"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"
file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController
.java"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Override
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-3953"
>
<caret
line=
"71"
column=
"25"
selection-start-line=
"71"
selection-start-column=
"25"
selection-end-line=
"71"
selection-end-column=
"25"
/>
<folding>
<element
signature=
"e#10108#10144#0"
/>
</folding>
<state
relative-caret-position=
"594"
>
<caret
line=
"50"
column=
"18"
selection-start-line=
"50"
selection-start-column=
"18"
selection-end-line=
"50"
selection-end-column=
"18"
/>
</state>
</provider>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/
commons/commons-lang3/3.9/commons-lang3-3.9-sources.jar!/org/apache/commons/lang3/StringUtils
.java"
>
<entry
file=
"jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/
httpcomponents/httpclient/4.5.12/httpclient-4.5.12-sources.jar!/org/apache/http/conn/ConnectionKeepAliveStrategy
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"332"
>
<caret
line=
"612"
column=
"29"
lean-forward=
"true"
selection-start-line=
"612"
selection-start-column=
"29"
selection-end-line=
"612"
selection-end-column=
"34"
/>
<state
relative-caret-position=
"625"
>
<caret
line=
"63"
column=
"9"
selection-start-line=
"63"
selection-start-column=
"9"
selection-end-line=
"63"
selection-end-column=
"9"
/>
</state>
</provider>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/httpcomponents/httpclient/4.5.12/httpclient-4.5.12-sources.jar!/org/apache/http/impl/client/DefaultConnectionKeepAliveStrategy.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"274"
>
<caret
line=
"49"
column=
"13"
selection-start-line=
"49"
selection-start-column=
"13"
selection-end-line=
"49"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/FileUtil.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"10"
>
<caret
line=
"132"
column=
"25"
selection-start-line=
"132"
selection-start-column=
"25"
selection-end-line=
"132"
selection-end-column=
"25"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/pom.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"924"
>
<caret
line=
"42"
selection-start-line=
"42"
selection-end-line=
"42"
/>
</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=
"242"
>
<caret
line=
"11"
column=
"7"
selection-start-line=
"11"
selection-start-column=
"7"
selection-end-line=
"11"
selection-end-column=
"7"
/>
</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=
"38632"
>
<caret
line=
"1787"
column=
"30"
selection-start-line=
"1787"
selection-start-column=
"18"
selection-end-line=
"1787"
selection-end-column=
"30"
/>
<folding>
<element
signature=
"e#21627#21628#0"
expanded=
"true"
/>
<element
signature=
"e#21676#21677#0"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
common/TTSUtils
.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
pojo/upload/UploadOneSenData
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
182
"
>
<caret
line=
"
60"
column=
"50"
selection-start-line=
"60"
selection-start-column=
"37"
selection-end-line=
"60"
selection-end-column=
"50
"
/>
<state
relative-caret-position=
"
264
"
>
<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$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
>
<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=
"4246"
>
<caret
line=
"205"
column=
"44"
selection-start-line=
"205"
selection-start-column=
"38"
selection-end-line=
"205"
selection-end-column=
"44"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
463
"
>
<caret
line=
"5
2"
column=
"47"
selection-start-line=
"52"
selection-start-column=
"43"
selection-end-line=
"52"
selection-end-column=
"47
"
/>
<state
relative-caret-position=
"
10978
"
>
<caret
line=
"5
69"
column=
"43"
selection-start-line=
"569"
selection-start-column=
"25"
selection-end-line=
"569"
selection-end-column=
"43
"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#97885#97919#0"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/Product.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1958"
>
<caret
line=
"143"
column=
"5"
selection-start-line=
"143"
selection-start-column=
"5"
selection-end-line=
"143"
selection-end-column=
"5"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"405"
>
<caret
line=
"194"
column=
"16"
selection-start-line=
"194"
selection-start-column=
"16"
selection-end-line=
"194"
selection-end-column=
"16"
/>
</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=
"
336
"
>
<caret
line=
"
48"
column=
"15"
lean-forward=
"true"
selection-start-line=
"48"
selection-start-column=
"15"
selection-end-line=
"48"
selection-end-column=
"15
"
/>
<state
relative-caret-position=
"
454
"
>
<caret
line=
"
315"
column=
"69"
selection-start-line=
"315"
selection-start-column=
"69"
selection-end-line=
"315"
selection-end-column=
"69
"
/>
<folding>
<element
signature=
"e#5964#5965#0"
expanded=
"true"
/>
<element
signature=
"e#6044#6045#0"
expanded=
"true"
/>
<element
signature=
"e#10108#10144#0"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
198
"
>
<caret
line=
"
575"
column=
"29"
lean-forward=
"true"
selection-start-line=
"575"
selection-start-column=
"29"
selection-end-line=
"575"
selection-end-column=
"29
"
/>
<state
relative-caret-position=
"
577
"
>
<caret
line=
"
629"
column=
"35"
selection-start-line=
"629"
selection-start-column=
"35"
selection-end-line=
"629"
selection-end-column=
"35
"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
service/Initialize
.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
common/TTSUtils
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"354"
>
<caret
line=
"179"
column=
"95"
selection-start-line=
"179"
selection-start-column=
"95"
selection-end-line=
"179"
selection-end-column=
"95"
/>
<state
relative-caret-position=
"3842"
>
<caret
line=
"707"
column=
"5"
selection-start-line=
"707"
selection-start-column=
"5"
selection-end-line=
"707"
selection-end-column=
"5"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"134"
>
<caret
line=
"48"
column=
"43"
selection-start-line=
"48"
selection-start-column=
"43"
selection-end-line=
"48"
selection-end-column=
"43"
/>
<folding>
<element
signature=
"e#15984#15985#0"
expanded=
"true"
/>
<element
signature=
"e#16017#16018#0"
expanded=
"true"
/>
<element
signature=
"e#16778#16779#0"
expanded=
"true"
/>
<element
signature=
"e#16813#16814#0"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/common/ApachHttpUtils.java
View file @
7542ddaf
...
...
@@ -80,38 +80,39 @@ public class ApachHttpUtils {
connManager
.
setMaxTotal
(
1000
);
//最大连接数设置
connManager
.
setDefaultMaxPerRoute
(
800
);
//per route最大连接数设置
// ConnectionKeepAliveStrategy myStrategy = (response, context) -> {
// HeaderElementIterator it = new BasicHeaderElementIterator(
// response.headerIterator(HTTP.CONN_KEEP_ALIVE));
// while (it.hasNext()) {
// HeaderElement he = it.nextElement();
ConnectionKeepAliveStrategy
myStrategy
=
(
response
,
context
)
->
{
HeaderElementIterator
it
=
new
BasicHeaderElementIterator
(
response
.
headerIterator
(
HTTP
.
CONN_KEEP_ALIVE
));
while
(
it
.
hasNext
())
{
HeaderElement
he
=
it
.
nextElement
();
String
param
=
he
.
getName
();
String
value
=
he
.
getValue
();
// log.info("CONN_KEEP_ALIVE:{}:{}",param,value);
if
(
"timeout"
.
equalsIgnoreCase
(
param
))
{
try
{
return
Long
.
parseLong
(
value
)
*
1000
;
}
catch
(
NumberFormatException
ignore
)
{
}
break
;
}
}
// HeaderElementIterator connectionClose = new BasicHeaderElementIterator(
// response.headerIterator(HTTP.CONN_DIRECTIVE));
// while (connectionClose.hasNext()) {
// HeaderElement he = connectionClose.nextElement();
// String param = he.getName();
// String value = he.getValue();
// log.info("CONN_KEEP_ALIVE:{}:{}",param,value);
// if (value != null && param.equalsIgnoreCase("timeout")) {
// try {
// return Long.parseLong(value) * 1000;
// } catch(NumberFormatException ignore) {
// }
// }
// log.info("CONN_DIRECTIVE:{}:{}",param,value);
// }
//
//// HeaderElementIterator connectionClose = new BasicHeaderElementIterator(
//// response.headerIterator(HTTP.CONN_DIRECTIVE));
//// while (connectionClose.hasNext()) {
//// HeaderElement he = connectionClose.nextElement();
//// String param = he.getName();
//// String value = he.getValue();
//// log.info("CONN_DIRECTIVE:{}:{}",param,value);
//// }
// return 1;
// };
return
0
;
};
httpClient
=
HttpClients
.
custom
()
.
setConnectionManager
(
connManager
)
.
setRetryHandler
(
new
CustomRetry
())
.
setDefaultRequestConfig
(
requestConfig
)
.
setKeepAliveStrategy
(
new
DefaultConnectionKeepAliveStrategy
()
)
.
setKeepAliveStrategy
(
myStrategy
)
.
evictIdleConnections
(
5
,
TimeUnit
.
SECONDS
)
.
build
();
...
...
@@ -526,6 +527,46 @@ public class ApachHttpUtils {
return
null
;
}
public
static
String
delete
(
String
url
,
Map
<
String
,
String
>
headers
,
Map
<
String
,
String
>
params
)
{
try
{
URIBuilder
builder
=
new
URIBuilder
(
url
,
StandardCharsets
.
UTF_8
);
if
(!
CollectionUtils
.
isEmpty
(
params
))
{
List
<
NameValuePair
>
list
=
new
ArrayList
<>();
BasicNameValuePair
param
;
for
(
Map
.
Entry
<
String
,
String
>
entry:
params
.
entrySet
())
{
param
=
new
BasicNameValuePair
(
entry
.
getKey
(),
entry
.
getValue
());
list
.
add
(
param
);
}
builder
.
setParameters
(
list
);
}
HttpDelete
httpDelete
=
new
HttpDelete
(
builder
.
build
());
if
(!
CollectionUtils
.
isEmpty
(
headers
))
{
for
(
Map
.
Entry
<
String
,
String
>
entry:
headers
.
entrySet
())
{
httpDelete
.
setHeader
(
entry
.
getKey
(),
entry
.
getValue
());
}
}
RequestConfig
requestConfig
=
RequestConfig
.
custom
()
.
setConnectionRequestTimeout
(
3000
)
.
setSocketTimeout
(
20000
)
.
setConnectTimeout
(
10000
).
build
();
httpDelete
.
setConfig
(
requestConfig
);
try
(
CloseableHttpResponse
response
=
getHttpClient
().
execute
(
httpDelete
)){
int
status
=
response
.
getStatusLine
().
getStatusCode
();
//获取返回状态值
if
(
status
==
200
)
{
HttpEntity
httpEntity
=
response
.
getEntity
();
if
(
httpEntity
!=
null
){
String
result
=
EntityUtils
.
toString
(
httpEntity
,
"UTF-8"
);
EntityUtils
.
consume
(
httpEntity
);
//关闭资源
return
result
;
}
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
ExceptionUtils
.
getStackTrace
(
e
));
}
return
null
;
}
public
static
String
requestByPostParts
(
Map
<
String
,
Object
>
map
,
String
url
,
Charset
charset
,
Map
<
String
,
String
>
headers
)
{
try
{
HttpPost
post
=
new
HttpPost
(
url
);
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java
View file @
7542ddaf
...
...
@@ -693,19 +693,17 @@ public class TTSUtils {
}
public
static
void
main
(
String
[]
args
)
throws
IOException
,
UnsupportedAudioFileException
{
// UploadCallbackUnzip("/home/yf01/下载/tts/testzip","/home/yf01/下载/testUnzip.zip");
// Files.copy(Paths.get("/home/yf01/下载/d46f2708a6a79f5bcc4623b1030b8aca.mp3"), Paths.get("/home/yf01/下载/d46Test.mp3"));
// System.out.println(buildMP3Filename("你是八星团的杜磊吧!我等你很久了,我叫周笑笑"));
// System.out.println(buildMP3Filename("先进来坐坐吧"));
// System.out.println(buildMP3Filename(" 先进来坐坐吧"));
// System.out.println(buildMP3Filename("周笑笑把门打开,露出了女性特有的粉色公主房,坐在软绵绵的坐垫上,12岁的小女孩有点手足无措"));
// System.out.println(buildMP3Filename("你要喝些什么吗?我这里有果汁和可乐"));
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
"12345"
);
list
.
add
(
"abcdg"
);
list
.
add
(
"w35252"
);
System
.
out
.
println
(
Arrays
.
toString
(
list
.
toArray
()));
// System.out.println(pythonlistToStr(list));
// List<String> filePathList = new ArrayList<>();
// filePathList.add("/home/yf01/下载/audioConcate/1.wav");
// filePathList.add("/home/yf01/下载/audioConcate/2.wav");
// List<String> str = filePathList.stream().map(s -> "-i "+s).collect(Collectors.toList());
// StringBuilder builder = new StringBuilder("ffmpeg ").append(StringUtils.join(str, " ")).append(" -filter_complex ");
// for (int i = 0; i < filePathList.size(); i++) {
// builder.append("[").append(i).append(":a:0]");
// }
// builder.append("concat=n=").append(filePathList.size()).append(":v=0:a=1[a] -map [a] ").append("/home/yf01/下载/audioConcate/result.wav");
// System.out.println(builder.toString());
// System.out.println(buildMP3Filename("苹果"));
// System.out.println(buildMP3Filename("没有了哦,换其他的水果"));
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java
View file @
7542ddaf
...
...
@@ -2,30 +2,35 @@ package ai.qiwu.com.tts_service.controller;
import
ai.qiwu.com.tts_service.common.ApachHttpUtils
;
import
ai.qiwu.com.tts_service.common.FileUtil
;
import
ai.qiwu.com.tts_service.common.TTSUtils
;
import
ai.qiwu.com.tts_service.pojo.deploy.MoveBotAudio
;
import
ai.qiwu.com.tts_service.pojo.deploy.Result
;
import
ai.qiwu.com.tts_service.service.Initialize
;
import
ai.qiwu.com.tts_service.service.TTService
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.catalina.connector.ClientAbortException
;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestHeader
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.RandomAccessFile
;
import
java.nio.channels.Channels
;
import
java.nio.channels.FileChannel
;
import
java.nio.channels.WritableByteChannel
;
import
java.nio.file.Files
;
import
java.nio.file.Path
;
import
java.nio.file.Paths
;
import
java.
util.HashMap
;
import
java.util.
Map
;
import
java.
nio.file.StandardCopyOption
;
import
java.util.
*
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.Semaphore
;
import
java.util.stream.Collectors
;
/**
* painter
...
...
@@ -39,7 +44,8 @@ public class DeployController {
@GetMapping
(
"/syn/download"
)
public
String
synSysImgTargetServerDownInThread
(
Long
length
,
String
path
,
String
sourceServer
,
String
zipDir
,
String
targetDir
,
String
type
,
@RequestHeader
(
"Authorization"
)
String
auth
)
{
String
targetDir
,
String
type
,
@RequestParam
(
required
=
false
)
String
gameServer
,
@RequestHeader
(
"Authorization"
)
String
auth
)
{
if
(
StringUtils
.
startsWith
(
zipDir
,
"."
))
{
log
.
warn
(
"zipDir start with ."
);
return
"failure"
;
...
...
@@ -60,13 +66,13 @@ public class DeployController {
return
"failure"
;
}
TTService
.
POOL
.
submit
(()
->
synSysImgTargetServerDown
(
length
,
path
,
sourceServer
,
zipDir
,
targetDir
,
auth
,
botAccount
,
type
));
targetDir
,
auth
,
botAccount
,
type
,
gameServer
));
return
"success"
;
}
private
void
synSysImgTargetServerDown
(
Long
length
,
String
path
,
String
sourceServer
,
String
zipDir
,
String
targetDir
,
String
auth
,
String
botAccount
,
String
type
)
{
log
.
info
(
"/upload/syn/download 开始:"
+
path
);
String
auth
,
String
botAccount
,
String
type
,
String
gameServer
)
{
log
.
warn
(
"/upload/syn/download 开始:"
+
path
);
long
startTime
=
System
.
currentTimeMillis
();
int
sliceSize
=
6
*
1024
*
1024
;
long
start
=
0
,
end
=
sliceSize
-
1
;
...
...
@@ -116,6 +122,7 @@ public class DeployController {
log
.
error
(
"180s仍未获取到响应信息"
);
deleteSlice
(
zipDir
,
prefix
,
botAccount
);
params
.
put
(
"result"
,
"failure"
);
params
.
put
(
"gameServer"
,
gameServer
);
ApachHttpUtils
.
asyncDelete
(
sourceServer
,
params
,
headers
);
return
;
}
...
...
@@ -134,6 +141,7 @@ public class DeployController {
}
while
(!
success
&&
count
<
10
);
if
(!
success
)
{
params
.
put
(
"result"
,
"failure"
);
params
.
put
(
"gameServer"
,
gameServer
);
ApachHttpUtils
.
asyncDelete
(
sourceServer
,
params
,
headers
);
return
;
}
...
...
@@ -148,10 +156,12 @@ public class DeployController {
FileUtil
.
decompress
(
tempSliceName
+
".zip"
,
targetDir
);
deleteSlice
(
zipDir
,
prefix
,
botAccount
);
params
.
put
(
"result"
,
"success"
);
params
.
put
(
"gameServer"
,
gameServer
);
ApachHttpUtils
.
asyncDelete
(
sourceServer
,
params
,
headers
);
}
catch
(
IOException
e
)
{
deleteSlice
(
zipDir
,
prefix
,
botAccount
);
params
.
put
(
"result"
,
"failure"
);
params
.
put
(
"gameServer"
,
gameServer
);
ApachHttpUtils
.
asyncDelete
(
sourceServer
,
params
,
headers
);
log
.
error
(
"分段下载出错:"
+
e
);
}
...
...
@@ -174,4 +184,238 @@ public class DeployController {
log
.
error
(
"分片文件删除出错ss:{},prefix:{},botAccount:{}"
,
e
,
prefix
,
botAccount
);
}
}
/**
*
* @param path 被压缩文件路径
* @param sourceDir 压缩包文件目录
* @param targetName 压缩包名
* @param targetServer 下载服务器地址
* @param zipDir 下载服务器存放分片数据及合成后的压缩包的目录
* @param targetDir 下载服务器解压目录
* @return
*/
@GetMapping
(
"/syn"
)
public
String
synSysFile
(
String
path
,
String
sourceDir
,
String
targetName
,
String
targetServer
,
String
zipDir
,
String
targetDir
,
String
type
,
String
gameServer
,
@RequestHeader
(
"Authorization"
)
String
auth
)
{
// 将文件压缩好,将大小,路径发给目标服务器
try
{
String
zipPath
;
Path
pt
=
Paths
.
get
((
zipPath
=
sourceDir
+
File
.
separator
+
targetName
+
".zip"
));
boolean
zipFileExist
=
true
;
synchronized
(
DeployController
.
class
)
{
if
(!
Files
.
exists
(
pt
))
{
log
.
info
(
"开始压缩:"
+
targetName
+
","
+
targetServer
);
zipFileExist
=
FileUtil
.
compress
(
path
,
sourceDir
,
targetName
)
!=
null
;
}
}
if
(
zipFileExist
)
{
Map
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"Authorization"
,
auth
);
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"length"
,
String
.
valueOf
(
Files
.
size
(
pt
)));
params
.
put
(
"path"
,
zipPath
);
params
.
put
(
"sourceServer"
,
Initialize
.
SERVER_URL
);
params
.
put
(
"gameServer"
,
gameServer
);
params
.
put
(
"zipDir"
,
zipDir
);
params
.
put
(
"targetDir"
,
targetDir
);
params
.
put
(
"type"
,
type
);
return
ApachHttpUtils
.
get
(
targetServer
+
"/upload/syn/download"
,
headers
,
params
);
}
}
catch
(
IOException
e
)
{
log
.
error
(
"synSysFile:"
+
e
);
}
return
"fail"
;
}
@DeleteMapping
(
"/range/download"
)
public
Result
delete
(
String
path
,
String
pass
,
String
serverName
,
String
gameServer
,
@RequestParam
(
required
=
false
)
String
result
,
@RequestHeader
(
"Authorization"
)
String
auth
)
{
if
(
StringUtils
.
isNotBlank
(
pass
)
&&
StringUtils
.
startsWith
(
pass
,
"mqw"
)
&&
pass
.
length
()
==
6
)
{
try
{
Path
pt
=
Paths
.
get
(
path
);
if
(
Files
.
exists
(
pt
))
{
Map
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"Authorization"
,
auth
);
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"path"
,
path
);
params
.
put
(
"pass"
,
pass
);
params
.
put
(
"serverName"
,
serverName
);
params
.
put
(
"result"
,
result
);
if
(
StringUtils
.
startsWith
(
path
,
"/var/www/html/Editor/upload/img/zip"
))
{
String
deleteResponse
=
ApachHttpUtils
.
delete
(
gameServer
+
"/upload/range/download/tts"
,
headers
,
params
);
if
(!
"success"
.
equals
(
deleteResponse
))
{
log
.
error
(
"图片同步出现同时同步到多个服务器的情况"
);
}
else
{
Files
.
list
(
pt
.
getParent
()).
forEach
(
path1
->
{
try
{
Files
.
deleteIfExists
(
path1
);
}
catch
(
IOException
e
)
{
log
.
error
(
"删除图片服务器同步目录下的文件出错:"
+
e
);
}
});
}
}
else
{
String
deleteResponse
=
ApachHttpUtils
.
delete
(
gameServer
+
"/upload/range/download/tts"
,
headers
,
params
);
String
botAccount
=
path
.
substring
(
path
.
lastIndexOf
(
File
.
separator
)+
1
,
path
.
lastIndexOf
(
"."
));
if
(!
"success"
.
equals
(
deleteResponse
))
{
log
.
error
(
"音频/图片同步出现同时同步到多个服务器的情况:"
+
botAccount
);
}
else
{
Files
.
list
(
pt
.
getParent
()).
filter
(
path1
->
{
String
str
=
path1
.
getFileName
().
toString
();
return
StringUtils
.
startsWith
(
str
,
botAccount
);
}).
forEach
(
path1
->
{
try
{
if
(
Files
.
isDirectory
(
path1
))
{
FileUtil
.
deleteFile
(
path1
.
toAbsolutePath
().
toFile
());
}
else
{
Files
.
deleteIfExists
(
path1
);
}
}
catch
(
IOException
e
)
{
log
.
error
(
"删除音频/图片同步目录下的文件出错:"
+
e
+
","
+
path1
);
}
});
}
}
}
else
{
log
.
error
(
"删除同步目录下的文件不存在:"
+
path
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"异步删除压缩包出错:"
+
e
);
}
}
return
Result
.
success
();
}
@GetMapping
(
"/range/download"
)
public
void
downloadSliceFile
(
String
path
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
File
downloadFile
=
new
File
(
path
);
long
fileLength
=
downloadFile
.
length
();
// 记录文件大小
long
pastLength
=
0
;
// 记录已下载文件大小
int
rangeSwitch
=
0
;
// 0:从头开始的全文下载;1:从某字节开始的下载(bytes=27000-);2:从某字节开始到某字节结束的下载(bytes=27000-39000)
long
toLength
;
// 记录客户端需要下载的字节段的最后一个字节偏移量(比如bytes=27000-39000,则这个值是为39000)
long
contentLength
;
// 客户端请求的字节总量
String
rangeBytes
;
// 记录客户端传来的形如“bytes=27000-”或者“bytes=27000-39000”的内容
// int bsize = 1024;// 缓冲区大小
// byte[] b = new byte[bsize];// 暂存容器
String
range
=
request
.
getHeader
(
"Range"
);
// log.error("/upload/range/download:"+range);
int
responseStatus
=
HttpServletResponse
.
SC_OK
;
if
(
StringUtils
.
isNotBlank
(
range
))
{
responseStatus
=
HttpServletResponse
.
SC_PARTIAL_CONTENT
;
rangeBytes
=
range
.
replaceAll
(
"bytes="
,
""
);
if
(
rangeBytes
.
endsWith
(
"-"
))
{
// bytes=969998336-
rangeSwitch
=
1
;
rangeBytes
=
rangeBytes
.
substring
(
0
,
rangeBytes
.
indexOf
(
'-'
));
pastLength
=
Long
.
parseLong
(
rangeBytes
.
trim
());
contentLength
=
fileLength
-
pastLength
;
// 客户端请求的是969998336之后的字节(包括bytes下标索引为969998336的字节)
}
else
{
// bytes=1275856879-1275877358
rangeSwitch
=
2
;
String
temp0
=
rangeBytes
.
substring
(
0
,
rangeBytes
.
indexOf
(
'-'
)).
trim
();
String
temp2
=
rangeBytes
.
substring
(
rangeBytes
.
indexOf
(
'-'
)
+
1
).
trim
();
// bytes=1275856879-1275877358,从第1275856879个字节开始下载
pastLength
=
Long
.
parseLong
(
temp0
);
toLength
=
Long
.
parseLong
(
temp2
);
// bytes=1275856879-1275877358,到第1275877358 个字节结束
contentLength
=
toLength
-
pastLength
+
1
;
}
}
else
{
// 从开始进行下载
contentLength
=
fileLength
;
// 客户端要求全文下载
}
response
.
reset
();
// 告诉客户端允许断点续传多线程连接下载,响应的格式是:Accept-Ranges: bytes
response
.
setHeader
(
"Accept-Ranges"
,
"bytes"
);
response
.
setHeader
(
"Content-Length"
,
String
.
valueOf
(
contentLength
));
response
.
setContentType
(
"application/octet-stream"
);
response
.
setStatus
(
responseStatus
);
switch
(
rangeSwitch
)
{
case
0
:
{
// 是从开始下载
String
contentRange
=
new
StringBuilder
(
"bytes "
).
append
(
"0-"
)
.
append
(
fileLength
-
1
).
append
(
"/"
).
append
(
fileLength
)
.
toString
();
response
.
setHeader
(
"Content-Range"
,
contentRange
);
}
case
1
:
{
// 针对 bytes=27000- 的请求
String
contentRange
=
new
StringBuilder
(
"bytes "
).
append
(
pastLength
).
append
(
"-"
)
.
append
(
fileLength
-
1
).
append
(
"/"
).
append
(
fileLength
).
toString
();
response
.
setHeader
(
"Content-Range"
,
contentRange
);
break
;
}
case
2
:
{
// 针对 bytes=27000-39000 的请求
String
contentRange
=
range
.
replace
(
"="
,
" "
)
+
"/"
+
fileLength
;
response
.
setHeader
(
"Content-Range"
,
contentRange
);
break
;
}
}
try
(
WritableByteChannel
outChannel
=
Channels
.
newChannel
(
response
.
getOutputStream
());
FileChannel
fileChannel
=
new
RandomAccessFile
(
downloadFile
,
"r"
).
getChannel
()){
fileChannel
.
transferTo
(
pastLength
,
contentLength
,
outChannel
);
}
catch
(
ClientAbortException
ce
)
{
//在写数据的时候, 对于 ClientAbortException 之类的异常,是因为客户端取消了下载,
// 而服务器端继续向浏览器写入数据时, 抛出这个异常,这个是正常的
log
.
error
(
"ClientAbortException:"
+
ce
);
}
catch
(
IOException
e
)
{
log
.
error
(
"downloadSliceFile error:"
+
e
);
}
}
@PostMapping
(
"/audio/move"
)
public
String
moveBotAudio
(
@RequestBody
MoveBotAudio
moveBotAudio
)
{
try
{
FileUtil
.
deleteFile
(
new
File
(
Initialize
.
AUDIO_DIR
+
"/"
+
moveBotAudio
.
getDestBotAccount
()));
moveAudio
(
moveBotAudio
.
getSrcBotAccount
(),
moveBotAudio
.
getDestBotAccount
());
return
"success"
;
}
catch
(
Exception
e
)
{
log
.
error
(
"导入人工语音项目移动音频出错:"
+
e
);
}
return
"fail"
;
}
private
void
moveAudio
(
String
srcBotAccount
,
String
targetBotAccount
)
throws
IOException
{
Path
pt
=
Paths
.
get
(
Initialize
.
AUDIO_DIR
+
"/"
+
srcBotAccount
);
if
(
Files
.
exists
(
pt
))
{
List
<
String
>
needDir
=
Files
.
list
(
pt
).
filter
(
path
->
path
.
endsWith
(
"record"
)
||
path
.
endsWith
(
"Liehu1"
)
||
path
.
getFileName
().
toString
().
contains
(
"Baidu"
)).
map
(
path
->
path
.
toAbsolutePath
().
toString
()).
collect
(
Collectors
.
toList
());
for
(
String
dir
:
needDir
)
{
copyDir
(
dir
,
dir
.
replace
(
srcBotAccount
,
targetBotAccount
));
}
}
}
private
void
getRecursion
(
Path
path
,
final
List
<
Path
>
result
)
{
if
(
Files
.
isDirectory
(
path
))
{
try
{
Files
.
list
(
path
).
forEach
(
path1
->
getRecursion
(
path1
,
result
));
}
catch
(
Exception
e
)
{
log
.
error
(
"递归获取音频路径出错:"
+
e
);
}
}
else
{
result
.
add
(
path
);
}
}
private
void
copyDir
(
final
String
source
,
final
String
target
)
{
Path
sourcePath
=
Paths
.
get
(
source
);
if
(!
Files
.
exists
(
sourcePath
))
{
return
;
}
List
<
Path
>
allSourceFilePath
=
new
ArrayList
<>();
getRecursion
(
sourcePath
,
allSourceFilePath
);
allSourceFilePath
.
forEach
(
path
->
{
try
{
Path
dest
=
Paths
.
get
(
path
.
toAbsolutePath
().
toString
().
replace
(
source
,
target
));
Files
.
createDirectories
(
dest
.
getParent
());
Files
.
copy
(
path
,
dest
,
StandardCopyOption
.
REPLACE_EXISTING
);
}
catch
(
Exception
e
)
{
log
.
error
(
"FileUtil#copyDir 复制出错:"
+
e
);
}
});
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
TTSUtils
.
buildMP3Filename
(
"这是一段测试文本,请听下音效,选择你认为合适的一套声音"
));
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/deploy/MoveBotAudio.java
0 → 100644
View file @
7542ddaf
package
ai
.
qiwu
.
com
.
tts_service
.
pojo
.
deploy
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* painter
* 20-8-3 上午10:35
*/
@Getter
@Setter
public
class
MoveBotAudio
{
private
String
srcBotAccount
;
private
String
destBotAccount
;
}
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/deploy/Result.java
0 → 100644
View file @
7542ddaf
package
ai
.
qiwu
.
com
.
tts_service
.
pojo
.
deploy
;
import
lombok.Getter
;
import
lombok.Setter
;
import
java.io.Serializable
;
@Getter
@Setter
public
class
Result
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3948389268046368059L
;
private
Integer
code
;
private
String
msg
;
private
Object
data
;
public
static
Result
success
()
{
Result
result
=
new
Result
();
result
.
setCode
(
1
);
return
result
;
}
public
static
Result
failure
(
String
msg
)
{
Result
result
=
new
Result
();
result
.
setCode
(
500
);
result
.
setMsg
(
msg
);
return
result
;
}
}
\ No newline at end of file
tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java
View file @
7542ddaf
...
...
@@ -96,13 +96,13 @@ public class Initialize implements InitializingBean {
/**
* 程序部署地址
*/
p
rivate
static
final
String
SERVER_URL
;
p
ublic
static
final
String
SERVER_URL
;
private
static
final
String
SERVER_URL_CDN
;
/**
* 音频文件目录
*/
p
rivate
static
final
String
AUDIO_DIR
;
p
ublic
static
final
String
AUDIO_DIR
;
/**
* 压缩包上传目录
*/
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java
View file @
7542ddaf
...
...
@@ -122,7 +122,7 @@ public class TTService {
final
AtomicInteger
hasRecord
=
new
AtomicInteger
();
// 过滤掉record目录
File
[]
needDelete
=
deleteBotDir
.
listFiles
((
dir
,
name
)
->
{
if
(
name
.
equals
(
Initialize
.
getUploadedDir
()
))
{
if
(
StringUtils
.
equalsAny
(
name
,
Initialize
.
getUploadedDir
(),
"Liehu1"
)
||
name
.
startsWith
(
"Baidu"
))
{
hasRecord
.
set
(
1
);
return
false
;
}
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java
View file @
7542ddaf
...
...
@@ -555,30 +555,31 @@ public class TTServiceEdition2 {
.
append
((
filename
=
TTSUtils
.
buildMP3Filename
(
notVariableText
))).
toString
();
//log.info("notVariableTextPath:{}",notVariableTextPath);
if
(!
TTSUtils
.
doesFileExist
(
notVariableTextPath
))
{
if
(
Initialize
.
getThirdPartyTts
().
contains
(
data
.
getPerson
())
&&
!
"Liehu1"
.
equals
(
data
.
getPerson
()))
{
String
thirdPath
=
new
StringBuilder
(
usDir
).
append
(
File
.
separator
).
append
(
filename
).
toString
();
if
(!
TTSUtils
.
doesFileExist
(
thirdPath
))
{
if
(
notVariableTextArray
.
length
==
1
)
{
if
(
"Liehu1"
.
equals
(
data
.
getPerson
()))
return
false
;
String
thirdPath
=
new
StringBuilder
(
usDir
).
append
(
File
.
separator
).
append
(
filename
).
toString
();
if
(!
TTSUtils
.
doesFileExist
(
thirdPath
))
{
if
(
notVariableTextArray
.
length
==
1
)
{
GeneralMP3Data
variableData
=
new
GeneralMP3Data
(
data
.
getServer
(),
notVariableText
,
data
.
getPerson
(),
data
.
getTone
(),
data
.
getBotname
(),
data
.
getCache
(),
data
.
getVolume
(),
data
.
getSpeed
(),
data
.
getPitch
());
ResponseCodeWithData
response
=
generalMP3
(
url
,
variableData
,
thirdPath
,
requestMethod
,
getOnline
);
if
(
response
==
null
||
response
.
getCode
()
!=
200
)
return
false
;
}
else
{
if
(
asynResultList
==
null
)
asynResultList
=
new
ArrayList
<>(
notVariableTextArray
.
length
);
Future
<
String
>
result
=
POOL
.
submit
(()
->
{
GeneralMP3Data
variableData
=
new
GeneralMP3Data
(
data
.
getServer
(),
notVariableText
,
data
.
getPerson
(),
data
.
getTone
(),
data
.
getBotname
(),
data
.
getCache
(),
data
.
getVolume
(),
data
.
getSpeed
(),
data
.
getPitch
());
ResponseCodeWithData
response
=
generalMP3
(
url
,
variableData
,
thirdPath
,
requestMethod
,
getOnline
);
if
(
response
==
null
||
response
.
getCode
()
!=
200
)
return
false
;
}
else
{
if
(
asynResultList
==
null
)
asynResultList
=
new
ArrayList
<>(
notVariableTextArray
.
length
);
Future
<
String
>
result
=
POOL
.
submit
(()
->
{
GeneralMP3Data
variableData
=
new
GeneralMP3Data
(
data
.
getServer
(),
notVariableText
,
data
.
getPerson
(),
data
.
getTone
(),
data
.
getBotname
(),
data
.
getCache
(),
data
.
getVolume
(),
data
.
getSpeed
(),
data
.
getPitch
());
ResponseCodeWithData
response
=
generalMP3
(
url
,
variableData
,
thirdPath
,
requestMethod
,
getOnline
);
if
(
response
==
null
||
response
.
getCode
()
!=
200
)
return
"0"
;
return
"1"
;
});
asynResultList
.
add
(
result
);
}
if
(
response
==
null
||
response
.
getCode
()
!=
200
)
return
"0"
;
return
"1"
;
});
asynResultList
.
add
(
result
);
}
notVariableTextPath
=
thirdPath
;
}
else
{
return
false
;
}
notVariableTextPath
=
thirdPath
;
// if (Initialize.getThirdPartyTts().contains(data.getPerson())) {
// } else {
// return false;
// }
}
combineMp3Text2FilePath
.
put
(
notVariableText
,
notVariableTextPath
);
}
...
...
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