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
544164f3
Commit
544164f3
authored
Sep 09, 2020
by
苗权威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
09.09
parent
e1299aaa
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
1186 additions
and
475 deletions
+1186
-475
workspace.xml
.idea/workspace.xml
+319
-373
CallPython.java
.../main/java/ai/qiwu/com/tts_service/common/CallPython.java
+38
-0
ResponseCode.java
...ain/java/ai/qiwu/com/tts_service/common/ResponseCode.java
+39
-0
ServerResponse.java
...n/java/ai/qiwu/com/tts_service/common/ServerResponse.java
+101
-0
TTSUtils.java
...rc/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java
+16
-2
DeployController.java
.../ai/qiwu/com/tts_service/controller/DeployController.java
+189
-4
TTSController.java
...ava/ai/qiwu/com/tts_service/controller/TTSController.java
+115
-11
AudioConfigInfo.java
.../ai/qiwu/com/tts_service/pojo/upload/AudioConfigInfo.java
+18
-0
UploadOneSenData.java
...ai/qiwu/com/tts_service/pojo/upload/UploadOneSenData.java
+2
-0
UploadPlotImgResponse.java
...wu/com/tts_service/pojo/upload/UploadPlotImgResponse.java
+15
-0
Initialize.java
...main/java/ai/qiwu/com/tts_service/service/Initialize.java
+11
-8
TTService.java
.../main/java/ai/qiwu/com/tts_service/service/TTService.java
+128
-6
TTServiceEdition2.java
...va/ai/qiwu/com/tts_service/service/TTServiceEdition2.java
+1
-1
Oauth2Controller.java
...a/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java
+4
-1
Dpl2Service.java
...rc/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.java
+143
-46
ProjectDetailData.java
.../ai/qiwu/com/xiaoduhome/dpl2/model/ProjectDetailData.java
+2
-0
DplbotServiceUtil.java
...ava/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java
+8
-6
LoadBySMS.java
...c/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java
+10
-5
ScheduleServiceNew.java
...va/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java
+1
-1
XiaoAiServiceRedis.java
...iwu/com/xiaoduhome/xiaoai/service/XiaoAiServiceRedis.java
+5
-4
collectHistory.json
...duhome/src/main/resources/static/dpl2/collectHistory.json
+2
-1
play.json
xiaoduhome/src/main/resources/static/dpl2/play.json
+8
-1
productDetail.json
xiaoduhome/src/main/resources/static/dpl2/productDetail.json
+7
-2
productList.json
xiaoduhome/src/main/resources/static/dpl2/productList.json
+2
-2
recommand.json
xiaoduhome/src/main/resources/static/dpl2/recommand.json
+2
-1
No files found.
.idea/workspace.xml
View file @
544164f3
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"BookmarkManager"
>
<component
name=
"BookmarkManager"
>
<bookmark
url=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
line=
"2
571
"
/>
<bookmark
url=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
line=
"2
687
"
/>
</component>
</component>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"63e156df-08bf-4b44-b5d3-f7e9200a2cef"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"63e156df-08bf-4b44-b5d3-f7e9200a2cef"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_websocket_2_3_0_RELEASE.xml"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_messaging_5_2_6_RELEASE.xml"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_websocket_5_2_6_RELEASE.xml"
beforeDir=
"false"
/>
<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$/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/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/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/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/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/pojo/upload/UploadOneSenData.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadOneSenData.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/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$/xiaoduhome/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/pom.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Config.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Config.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.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/dpl2/model/ProjectDetailData.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/ProjectDetailData.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/common/Test.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Utils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Utils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/DataSourceConfig.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/DataSourceConfig.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/RedisConfig.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/RedisConfig.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/WebSocketConfig.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/WebSocketConfig.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/play/PlayUtils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/play/PlayUtils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoUtils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoUtils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.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/GameProjectTb.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/OnProductDetail.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/ProjectLabel.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuCollectTB.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuCollectTB.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryTB.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryTB.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/ActorWithWord.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/ActorWithWord.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/data/ProjectData.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/data/ProjectData.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AllOnProductInfoRepository.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/GameProjectTbRepository.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/ProjectLabelRepository.java"
beforeDir=
"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/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/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/LoadBySMS.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.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"
/>
<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/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/InitialData.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/InitialData.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/spirit/SpiritService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritService.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/XiaoAiServiceRedis.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiServiceRedis.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"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiTestService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiTestService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/collectHistory.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/collectHistory.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/firstPage.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/firstPage.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/play.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/play.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Oauth2_load_temp2.html"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Oauth2_load_temp2.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/productDetail.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/productDetail.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/productList.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/productList.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/recommand.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/recommand.json"
afterDir=
"false"
/>
</list>
</list>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
<ignored
path=
"$PROJECT_DIR$/spirit/target/"
/>
<ignored
path=
"$PROJECT_DIR$/spirit/target/"
/>
...
@@ -93,8 +65,8 @@
...
@@ -93,8 +65,8 @@
<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/dpl2/Dpl2Service.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-504
"
>
<state
relative-caret-position=
"
320
"
>
<caret
line=
"
559"
column=
"37"
selection-start-line=
"559"
selection-start-column=
"37"
selection-end-line=
"559"
selection-end-column=
"37
"
/>
<caret
line=
"
330"
column=
"44"
lean-forward=
"true"
selection-start-line=
"330"
selection-start-column=
"44"
selection-end-line=
"330"
selection-end-column=
"44
"
/>
<folding>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -103,83 +75,60 @@
...
@@ -103,83 +75,60 @@
</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/RequestTerminal.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=
"501"
>
<caret
line=
"134"
column=
"23"
selection-start-line=
"134"
selection-start-column=
"23"
selection-end-line=
"134"
selection-end-column=
"23"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"504"
>
<caret
line=
"188"
column=
"62"
selection-start-line=
"188"
selection-start-column=
"62"
selection-end-line=
"188"
selection-end-column=
"62"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-30
"
>
<state
relative-caret-position=
"
601
"
>
<caret
line=
"
119"
column=
"48"
selection-start-line=
"119"
selection-start-column=
"48"
selection-end-line=
"119"
selection-end-column=
"48
"
/>
<caret
line=
"
474"
column=
"24"
selection-start-line=
"474"
selection-start-column=
"24"
selection-end-line=
"474"
selection-end-column=
"24
"
/>
<folding>
<folding>
<element
signature=
"e#12305#12306#0"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#12350#12351#0"
expanded=
"true"
/>
<element
signature=
"e#12634#12635#0"
expanded=
"true"
/>
<element
signature=
"e#12661#12662#0"
expanded=
"true"
/>
</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/
service/DplbotServiceUtil
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
common/Constants
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"961"
>
<state
relative-caret-position=
"301"
>
<caret
line=
"196"
column=
"55"
selection-start-line=
"196"
selection-start-column=
"55"
selection-end-line=
"196"
selection-end-column=
"55"
/>
<caret
line=
"45"
column=
"28"
selection-start-line=
"45"
selection-start-column=
"15"
selection-end-line=
"45"
selection-end-column=
"28"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#12661#12662#0"
expanded=
"true"
/>
<element
signature=
"e#44410#44411#0"
expanded=
"true"
/>
<element
signature=
"e#46096#46097#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/
resources/static/dpl2/productDetail.json
"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
754
"
>
<state
relative-caret-position=
"
1092
"
>
<caret
line=
"
94"
column=
"31"
selection-start-line=
"94"
selection-start-column=
"31"
selection-end-line=
"94"
selection-end-column=
"31
"
/>
<caret
line=
"
170"
column=
"40"
selection-start-line=
"170"
selection-start-column=
"40"
selection-end-line=
"170"
selection-end-column=
"40
"
/>
</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$/
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java
"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/dpl2/productDetail.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
640
"
>
<state
relative-caret-position=
"
334
"
>
<caret
line=
"
264"
column=
"48"
selection-start-line=
"264"
selection-start-column=
"48"
selection-end-line=
"264"
selection-end-column=
"48
"
/>
<caret
line=
"
53"
column=
"14"
selection-start-line=
"53"
selection-start-column=
"14"
selection-end-line=
"53"
selection-end-column=
"14
"
/>
</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$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java
"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/dpl2/productList.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-56
"
>
<state
relative-caret-position=
"
204
"
>
<caret
line=
"
138"
column=
"113"
selection-start-line=
"138"
selection-start-column=
"105"
selection-end-line=
"138"
selection-end-column=
"113
"
/>
<caret
line=
"
240"
column=
"19"
selection-start-line=
"240"
selection-start-column=
"19"
selection-end-line=
"240"
selection-end-column=
"19
"
/>
</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$/
tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java
"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/dpl2/recommand.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
115
"
>
<state
relative-caret-position=
"
648
"
>
<caret
line=
"
271"
column=
"30"
selection-start-line=
"271"
selection-start-column=
"17"
selection-end-line=
"271
"
selection-end-column=
"30"
/>
<caret
line=
"
45"
column=
"30"
selection-start-line=
"45"
selection-start-column=
"30"
selection-end-line=
"45
"
selection-end-column=
"30"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -196,36 +145,36 @@
...
@@ -196,36 +145,36 @@
</component>
</component>
<component
name=
"FindInProjectRecents"
>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<findStrings>
<find>
direct
</find>
<find>
isNoScreenRequest
</find>
<find>
SendPart
</find>
<find>
numStr
</find>
<find>
userId
</find>
<find>
lunchHistory
</find>
<find>
workName
</find>
<find>
getAllProjects
</find>
<find>
writerWithDefaultPrettyPrinter
</find>
<find>
outTime
</find>
<find>
url
</find>
<find>
<
%=
</find>
<find>
rank
</find>
<find>
dealNoScreenIntentTemp
</find>
<find>
backTrigger
</find>
<find>
botAccount
</find>
<find>
flower
</find>
<find>
linkAccountSucceededEvent
</find>
<find>
{
</find>
<find>
centerCrop
</find>
<find>
fitXY
</find>
<find>
fitXY
</find>
<find>
dealDefaultIntent
</find>
<find>
HOST_UTL
</find>
<find>
HOST_UTL
</find>
<find>
JIAOYOUTIANXIA
</find>
<find>
JIAOYOUTIANXIA
</find>
<find>
xiaodu-speaker-api-test
</find>
<find>
xiaodu-speaker-api-test
</find>
<find>
generalMP3
</find>
<find>
xiaodu-speaker-api-pro
</find>
<find>
xiaodu-speaker-api-pro
</find>
<find>
ASIDE_IMG
</find>
<find>
ASIDE_IMG
</find>
<find>
dealCollectOrUnCollectIntent
</find>
<find>
dealCollectOrUnCollectIntent
</find>
<find>
end recommend
</find>
<find>
end
</find>
<find>
audioEvent
</find>
<find>
botAccount2Project
</find>
<find>
botAccount2Project
</find>
<find>
updateTheUserHistory
</find>
<find>
accessToken
</find>
<find>
dealDefaultIntent
</find>
<find>
/api/upload/record/one_sen
</find>
<find>
usFile
</find>
<find>
indexOf
</find>
<find>
getOneSenAudioConfig
</find>
<find>
getOnline
</find>
<find>
backTrigger
</find>
<find>
ExecuteCommands
</find>
<find>
generalMP3
</find>
<find>
data
</find>
<find>
botAccount
</find>
<find>
BEARER
</find>
<find>
SendEvent
</find>
<find>
categoryName
</find>
<find>
"
category
"
</find>
<find>
productName
</find>
<find>
userId
</find>
</findStrings>
</findStrings>
<replaceStrings>
<replaceStrings>
<replace>
!CollectionUtils.isEmpty
</replace>
<replace>
!CollectionUtils.isEmpty
</replace>
...
@@ -244,27 +193,13 @@
...
@@ -244,27 +193,13 @@
<component
name=
"IdeDocumentHistory"
>
<component
name=
"IdeDocumentHistory"
>
<option
name=
"CHANGED_PATHS"
>
<option
name=
"CHANGED_PATHS"
>
<list>
<list>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/GameProjectTbRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/ProjectLabelRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/GameProjectTb.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/ProjectLabel.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/common/config/WebSocketConfig.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/DataSourceConfig.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiTestService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/ProjectClickData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/ProjectClickData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/CoHiPageData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/CoHiPageData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/pom.xml"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/pom.xml"
/>
<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/xiaoai/service/XiaoAiService.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/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/service/RequestTerminal.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/signIn.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/signIn.json"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/CoHiOnePageData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/CoHiOnePageData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/ActorWithWord.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/ActorWithWord.java"
/>
...
@@ -272,7 +207,6 @@
...
@@ -272,7 +207,6 @@
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/InitialData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/InitialData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritRedisService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritRedisService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/ProjectDetailData.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/dpl2/model/HomePageData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/HomePageData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Utils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Utils.java"
/>
...
@@ -282,18 +216,33 @@
...
@@ -282,18 +216,33 @@
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.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/service/DplBotServiceBoth.java"
/>
<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/common/Constants.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/productList.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/recommand.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/category.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/category.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/collectHistory.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/home.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/home.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/play.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/firstPage.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/firstPage.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/productDetail.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/data/ProjectData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/data/ProjectData.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadOneSenData.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ServerResponse.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/pojo/upload/AudioConfigInfo.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoAiController.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiServiceRedis.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/pojo/upload/UploadPlotImgResponse.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/controller/DeployController.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/TTService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/ProjectDetailData.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/collectHistory.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/productDetail.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/play.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/recommand.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/productList.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.java"
/>
</list>
</list>
</option>
</option>
...
@@ -326,8 +275,8 @@
...
@@ -326,8 +275,8 @@
<option
name=
"skipTests"
value=
"true"
/>
<option
name=
"skipTests"
value=
"true"
/>
</component>
</component>
<component
name=
"ProjectFrameBounds"
>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"
349
"
/>
<option
name=
"x"
value=
"
426
"
/>
<option
name=
"y"
value=
"
39
"
/>
<option
name=
"y"
value=
"
77
"
/>
<option
name=
"width"
value=
"1395"
/>
<option
name=
"width"
value=
"1395"
/>
<option
name=
"height"
value=
"1003"
/>
<option
name=
"height"
value=
"1003"
/>
</component>
</component>
...
@@ -339,7 +288,7 @@
...
@@ -339,7 +288,7 @@
<foldersAlwaysOnTop
value=
"true"
/>
<foldersAlwaysOnTop
value=
"true"
/>
</navigator>
</navigator>
<panes>
<panes>
<pane
id=
"
PackagesPan
e"
/>
<pane
id=
"
Scop
e"
/>
<pane
id=
"ProjectPane"
>
<pane
id=
"ProjectPane"
>
<subPane>
<subPane>
<expand>
<expand>
...
@@ -392,11 +341,48 @@
...
@@ -392,11 +341,48 @@
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"controller"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"controller"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"dpl2"
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=
"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=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"resources"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"static"
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=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"resources"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"static"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"dpl2"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
</expand>
<select
/>
<select
/>
</subPane>
</subPane>
</pane>
</pane>
<pane
id=
"
Scop
e"
/>
<pane
id=
"
PackagesPan
e"
/>
</panes>
</panes>
</component>
</component>
<component
name=
"PropertiesComponent"
>
<component
name=
"PropertiesComponent"
>
...
@@ -407,7 +393,7 @@
...
@@ -407,7 +393,7 @@
<property
name=
"RequestMappingsPanelWidth1"
value=
"75"
/>
<property
name=
"RequestMappingsPanelWidth1"
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=
"159
8962152851
"
/>
<property
name=
"com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp"
value=
"159
9651129354
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/../Trading"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/../Trading"
/>
<property
name=
"nodejs_package_manager_path"
value=
"npm"
/>
<property
name=
"nodejs_package_manager_path"
value=
"npm"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"configurable.group.build"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"configurable.group.build"
/>
...
@@ -419,6 +405,7 @@
...
@@ -419,6 +405,7 @@
<recent
name=
"ai.qiwu.com.tts_service.common"
/>
<recent
name=
"ai.qiwu.com.tts_service.common"
/>
</key>
</key>
<key
name=
"CopyFile.RECENT_KEYS"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<recent
name=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common"
/>
<recent
name=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2"
/>
<recent
name=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2"
/>
</key>
</key>
</component>
</component>
...
@@ -434,7 +421,7 @@
...
@@ -434,7 +421,7 @@
</list>
</list>
</option>
</option>
</component>
</component>
<component
name=
"RunManager"
selected=
"Application.
DplbotServiceUtil
"
>
<component
name=
"RunManager"
selected=
"Application.
LoadBySMS
"
>
<configuration
name=
"Dpl2Service"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"Dpl2Service"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.xiaoduhome.dpl2.Dpl2Service"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.xiaoduhome.dpl2.Dpl2Service"
/>
<module
name=
"xiaoduhome"
/>
<module
name=
"xiaoduhome"
/>
...
@@ -461,12 +448,12 @@
...
@@ -461,12 +448,12 @@
<option
name=
"Make"
enabled=
"true"
/>
<option
name=
"Make"
enabled=
"true"
/>
</method>
</method>
</configuration>
</configuration>
<configuration
name=
"
TTSUtils
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"
LoadBySMS
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.
tts_service.common.TTSUtils
"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.
xiaoduhome.service.LoadBySMS
"
/>
<module
name=
"
tts_servic
e"
/>
<module
name=
"
xiaoduhom
e"
/>
<extension
name=
"coverage"
>
<extension
name=
"coverage"
>
<pattern>
<pattern>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.
tts_service.common
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.
xiaoduhome.service
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</pattern>
</extension>
</extension>
...
@@ -474,12 +461,12 @@
...
@@ -474,12 +461,12 @@
<option
name=
"Make"
enabled=
"true"
/>
<option
name=
"Make"
enabled=
"true"
/>
</method>
</method>
</configuration>
</configuration>
<configuration
name=
"TTS
erviceEdition2
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"TTS
Controller
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.tts_service.
service.TTServiceEdition2
"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.tts_service.
controller.TTSController
"
/>
<module
name=
"tts_service"
/>
<module
name=
"tts_service"
/>
<extension
name=
"coverage"
>
<extension
name=
"coverage"
>
<pattern>
<pattern>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.tts_service.
service
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.tts_service.
controller
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</pattern>
</extension>
</extension>
...
@@ -543,25 +530,25 @@
...
@@ -543,25 +530,25 @@
</method>
</method>
</configuration>
</configuration>
<list>
<list>
<item
itemvalue=
"Application.TTServiceEdition2"
/>
<item
itemvalue=
"Application.TTSUtils"
/>
<item
itemvalue=
"Application.Dpl2Service"
/>
<item
itemvalue=
"Application.Dpl2Service"
/>
<item
itemvalue=
"Application.XiaoDuHomeController"
/>
<item
itemvalue=
"Application.XiaoDuHomeController"
/>
<item
itemvalue=
"Application.DplbotServiceUtil"
/>
<item
itemvalue=
"Application.DplbotServiceUtil"
/>
<item
itemvalue=
"Application.TTSController"
/>
<item
itemvalue=
"Spring Boot.XiaoaiApplication"
/>
<item
itemvalue=
"Spring Boot.XiaoaiApplication"
/>
<item
itemvalue=
"Spring Boot.XiaoduhomeApplication"
/>
<item
itemvalue=
"Spring Boot.XiaoduhomeApplication"
/>
<item
itemvalue=
"Spring Boot.XiaoduApplication"
/>
<item
itemvalue=
"Spring Boot.XiaoduApplication"
/>
<item
itemvalue=
"Spring Boot.DingdongApplication"
/>
<item
itemvalue=
"Spring Boot.DingdongApplication"
/>
<item
itemvalue=
"Spring Boot.TtsServiceApplication"
/>
<item
itemvalue=
"Spring Boot.TtsServiceApplication"
/>
<item
itemvalue=
"Spring Boot.SpiritApplication"
/>
<item
itemvalue=
"Spring Boot.SpiritApplication"
/>
<item
itemvalue=
"Application.LoadBySMS"
/>
</list>
</list>
<recent_temporary>
<recent_temporary>
<list>
<list>
<item
itemvalue=
"Application.LoadBySMS"
/>
<item
itemvalue=
"Application.TTSController"
/>
<item
itemvalue=
"Application.DplbotServiceUtil"
/>
<item
itemvalue=
"Application.DplbotServiceUtil"
/>
<item
itemvalue=
"Application.XiaoDuHomeController"
/>
<item
itemvalue=
"Application.XiaoDuHomeController"
/>
<item
itemvalue=
"Application.Dpl2Service"
/>
<item
itemvalue=
"Application.Dpl2Service"
/>
<item
itemvalue=
"Application.TTServiceEdition2"
/>
<item
itemvalue=
"Application.TTSUtils"
/>
</list>
</list>
</recent_temporary>
</recent_temporary>
</component>
</component>
...
@@ -762,29 +749,35 @@
...
@@ -762,29 +749,35 @@
<workItem
from=
"1598581174923"
duration=
"31547000"
/>
<workItem
from=
"1598581174923"
duration=
"31547000"
/>
<workItem
from=
"1598665723744"
duration=
"28904000"
/>
<workItem
from=
"1598665723744"
duration=
"28904000"
/>
<workItem
from=
"1598839458624"
duration=
"31441000"
/>
<workItem
from=
"1598839458624"
duration=
"31441000"
/>
<workItem
from=
"1598927331327"
duration=
"18877000"
/>
<workItem
from=
"1598927331327"
duration=
"22484000"
/>
<workItem
from=
"1599032943744"
duration=
"15426000"
/>
<workItem
from=
"1599132773204"
duration=
"3538000"
/>
<workItem
from=
"1599185649341"
duration=
"12654000"
/>
<workItem
from=
"1599444485866"
duration=
"19631000"
/>
<workItem
from=
"1599532110238"
duration=
"19444000"
/>
<workItem
from=
"1599618339654"
duration=
"17136000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"
773779
000"
/>
<option
name=
"totallyTimeSpent"
value=
"
865215
000"
/>
</component>
</component>
<component
name=
"ToolWindowManager"
>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
349"
y=
"39
"
width=
"1395"
height=
"1003"
extended-state=
"0"
/>
<frame
x=
"
426"
y=
"77
"
width=
"1395"
height=
"1003"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<editor
active=
"true"
/>
<layout>
<layout>
<window_info
id=
"Designer"
order=
"0"
/>
<window_info
id=
"Designer"
order=
"0"
/>
<window_info
id=
"Web"
order=
"1"
sideWeight=
"0.50236404"
side_tool=
"true"
weight=
"0.2847633"
/>
<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=
"UI Designer"
order=
"2"
/>
<window_info
id=
"Favorites"
order=
"3"
sideWeight=
"0.501182"
side_tool=
"true"
weight=
"0.17381656"
/>
<window_info
id=
"Favorites"
order=
"3"
sideWeight=
"0.501182"
side_tool=
"true"
weight=
"0.17381656"
/>
<window_info
id=
"Structure"
order=
"4"
sideWeight=
"0.49763593"
weight=
"0.19
896065
"
/>
<window_info
id=
"Structure"
order=
"4"
sideWeight=
"0.49763593"
weight=
"0.19
424461
"
/>
<window_info
id=
"Image Layers"
order=
"5"
/>
<window_info
id=
"Image Layers"
order=
"5"
/>
<window_info
id=
"Capture Tool"
order=
"6"
/>
<window_info
id=
"Capture Tool"
order=
"6"
/>
<window_info
id=
"Alibaba Cloud Explorer"
order=
"7"
weight=
"0.32988167"
/>
<window_info
id=
"Alibaba Cloud Explorer"
order=
"7"
weight=
"0.32988167"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"8"
sideWeight=
"0.49881798"
weight=
"0.
25538233
"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"8"
sideWeight=
"0.49881798"
weight=
"0.
34743875
"
/>
<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.34
235293
"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.34
15682
"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
weight=
"0.
3552941
"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
weight=
"0.
5835294
"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.4"
/>
<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=
"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"
/>
...
@@ -793,7 +786,7 @@
...
@@ -793,7 +786,7 @@
<window_info
anchor=
"bottom"
id=
"Run Dashboard"
order=
"8"
weight=
"0.32876712"
/>
<window_info
anchor=
"bottom"
id=
"Run Dashboard"
order=
"8"
weight=
"0.32876712"
/>
<window_info
anchor=
"bottom"
id=
"Spring"
order=
"9"
/>
<window_info
anchor=
"bottom"
id=
"Spring"
order=
"9"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"10"
weight=
"0.49058825"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"10"
weight=
"0.49058825"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"11"
weight=
"0.874
41313
"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"11"
weight=
"0.874
1177
"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"12"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"12"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Java Enterprise"
order=
"13"
weight=
"0.32941177"
/>
<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=
"Docker"
order=
"14"
show_stripe_button=
"false"
/>
...
@@ -804,7 +797,7 @@
...
@@ -804,7 +797,7 @@
<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=
"Palette"
order=
"3"
/>
<window_info
anchor=
"right"
id=
"Palette"
order=
"3"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"4"
weight=
"0.329142"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"4"
weight=
"0.329142"
/>
<window_info
anchor=
"right"
id=
"Maven"
order=
"5"
weight=
"0.
33333334
"
/>
<window_info
anchor=
"right"
id=
"Maven"
order=
"5"
weight=
"0.
7453601
"
/>
<window_info
anchor=
"right"
id=
"Bean Validation"
order=
"6"
weight=
"0.329142"
/>
<window_info
anchor=
"right"
id=
"Bean Validation"
order=
"6"
weight=
"0.329142"
/>
<window_info
anchor=
"right"
id=
"Palette	"
order=
"7"
/>
<window_info
anchor=
"right"
id=
"Palette	"
order=
"7"
/>
<window_info
anchor=
"right"
id=
"Maven Projects"
order=
"8"
weight=
"0.32991362"
/>
<window_info
anchor=
"right"
id=
"Maven Projects"
order=
"8"
weight=
"0.32991362"
/>
...
@@ -814,429 +807,382 @@
...
@@ -814,429 +807,382 @@
<window_info
anchor=
"right"
id=
"Alibaba ROS Templates"
order=
"12"
weight=
"0.32988167"
/>
<window_info
anchor=
"right"
id=
"Alibaba ROS Templates"
order=
"12"
weight=
"0.32988167"
/>
<window_info
anchor=
"right"
id=
"Alibaba Function Compute"
order=
"13"
weight=
"0.32988167"
/>
<window_info
anchor=
"right"
id=
"Alibaba Function Compute"
order=
"13"
weight=
"0.32988167"
/>
</layout>
</layout>
<layout-to-restore>
<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
id=
"Structure"
order=
"4"
sideWeight=
"0.49763593"
weight=
"0.28032544"
/>
<window_info
id=
"Image Layers"
order=
"5"
/>
<window_info
id=
"Capture Tool"
order=
"6"
/>
<window_info
id=
"Alibaba Cloud Explorer"
order=
"7"
weight=
"0.32988167"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"8"
sideWeight=
"0.49881798"
visible=
"true"
weight=
"0.2514793"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.43882352"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
weight=
"0.5364706"
/>
<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"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
/>
<window_info
anchor=
"bottom"
id=
"Run Dashboard"
order=
"8"
weight=
"0.32876712"
/>
<window_info
anchor=
"bottom"
id=
"Spring"
order=
"9"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"10"
weight=
"0.49087003"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"11"
weight=
"0.87441313"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"12"
side_tool=
"true"
/>
<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"
/>
<window_info
anchor=
"right"
id=
"Commander"
order=
"0"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Ant Build"
order=
"1"
weight=
"0.25"
/>
<window_info
anchor=
"right"
content_ui=
"combo"
id=
"Hierarchy"
order=
"2"
weight=
"0.25"
/>
<window_info
anchor=
"right"
id=
"Palette"
order=
"3"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"4"
weight=
"0.32982844"
/>
<window_info
anchor=
"right"
id=
"Maven"
order=
"5"
weight=
"0.53476334"
/>
<window_info
anchor=
"right"
id=
"Bean Validation"
order=
"6"
weight=
"0.329142"
/>
<window_info
anchor=
"right"
id=
"Palette	"
order=
"7"
/>
<window_info
anchor=
"right"
id=
"Maven Projects"
order=
"8"
weight=
"0.32991362"
/>
<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-to-restore>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<option
name=
"version"
value=
"1"
/>
<option
name=
"version"
value=
"1"
/>
</component>
</component>
<component
name=
"editorHistoryManager"
>
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
common/temple/play/PlayUtils
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
entity/primary/AppFavoriteTB
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-169
"
>
<state
relative-caret-position=
"
418
"
>
<caret
line=
"
43"
column=
"28"
selection-start-line=
"43"
selection-start-column=
"28"
selection-end-line=
"43"
selection-end-column=
"28
"
/>
<caret
line=
"
29"
column=
"25"
lean-forward=
"true"
selection-start-line=
"29"
selection-start-column=
"25"
selection-end-line=
"29"
selection-end-column=
"25
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/String.java
"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Oauth2_load_temp2.html
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
301
"
>
<state
relative-caret-position=
"
2507
"
>
<caret
line=
"
1957"
column=
"18"
selection-start-line=
"1957"
selection-start-column=
"18"
selection-end-line=
"1957"
selection-end-column=
"18
"
/>
<caret
line=
"
208"
column=
"69"
selection-start-line=
"208"
selection-start-column=
"69"
selection-end-line=
"208"
selection-end-column=
"69
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritTerminateReques
t.java"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0-sources.jar!/com/baidu/dueros/data/request/events/LinkAccountSucceededEven
t.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
242
"
>
<state
relative-caret-position=
"
80
"
>
<caret
line=
"
13"
column=
"13"
selection-start-line=
"13"
selection-start-column=
"13"
selection-end-line=
"13
"
selection-end-column=
"13"
/>
<caret
line=
"
29"
column=
"13"
selection-start-line=
"29"
selection-start-column=
"13"
selection-end-line=
"29
"
selection-end-column=
"13"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/s
pirit/SpiritTerminateResponse
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/s
ervice/DplBotServiceBoth
.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=
"
181
"
>
<caret
line=
"
17"
column=
"13"
selection-start-line=
"17"
selection-start-column=
"13"
selection-end-line=
"17"
selection-end-column=
"13
"
/>
<caret
line=
"
73"
column=
"71"
lean-forward=
"true"
selection-start-line=
"73"
selection-start-column=
"71"
selection-end-line=
"73"
selection-end-column=
"71
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritService
.java"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/ChangeSound
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
374
"
>
<state
relative-caret-position=
"
-308
"
>
<caret
line=
"
49"
column=
"27"
selection-start-line=
"49"
selection-start-column=
"27"
selection-end-line=
"49"
selection-end-column=
"27
"
/>
<caret
line=
"
15"
column=
"6"
selection-start-line=
"15"
selection-start-column=
"6"
selection-end-line=
"15"
selection-end-column=
"6
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritRedisService
.java"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/sound/AudioConverter
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"255"
>
<state
relative-caret-position=
"-1078"
>
<caret
line=
"67"
column=
"20"
selection-start-line=
"67"
selection-start-column=
"20"
selection-end-line=
"67"
selection-end-column=
"20"
/>
<caret
line=
"10"
column=
"13"
selection-start-line=
"10"
selection-start-column=
"13"
selection-end-line=
"10"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/SpiritControll
er.java"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/sound/SampleRateConvert
er.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-1320
"
>
<state
relative-caret-position=
"
506
"
>
<caret
line=
"
48"
column=
"31"
selection-start-line=
"48"
selection-start-column=
"31"
selection-end-line=
"48"
selection-end-column=
"31
"
/>
<caret
line=
"
207"
column=
"43"
lean-forward=
"true"
selection-start-line=
"207"
selection-start-column=
"43"
selection-end-line=
"207"
selection-end-column=
"43
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
common/OkHttp3Utils
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
spirit/InitialData
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"28
3
"
>
<state
relative-caret-position=
"28
6
"
>
<caret
line=
"
70"
column=
"25"
selection-start-line=
"70"
selection-start-column=
"25"
selection-end-line=
"70"
selection-end-column=
"25
"
/>
<caret
line=
"
33"
column=
"31"
selection-start-line=
"33"
selection-start-column=
"31"
selection-end-line=
"33"
selection-end-column=
"31
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
dpl2/model/ProjectDetail
Data.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
pojo/data/Project
Data.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"528"
>
<state
relative-caret-position=
"308"
>
<caret
line=
"24"
column=
"25"
selection-start-line=
"24"
selection-start-column=
"25"
selection-end-line=
"24"
selection-end-column=
"25"
/>
<caret
line=
"20"
column=
"33"
selection-start-line=
"20"
selection-start-column=
"19"
selection-end-line=
"20"
selection-end-column=
"33"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
dpl2/model/HomePageData
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
pojo/data/ProjectDataResult
.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=
"242"
>
<caret
line=
"12"
column=
"30"
selection-start-line=
"12"
selection-start-column=
"30"
selection-end-line=
"12"
selection-end-column=
"30"
/>
<caret
line=
"13"
column=
"13"
selection-start-line=
"13"
selection-start-column=
"13"
selection-end-line=
"13"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</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/BaseBot.class
"
>
<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=
"
-16
28"
>
<state
relative-caret-position=
"
27
28"
>
<caret
line=
"
74"
column=
"13"
selection-start-line=
"74"
selection-start-column=
"13"
selection-end-line=
"74"
selection-end-column=
"1
3"
/>
<caret
line=
"
134"
column=
"23"
selection-start-line=
"134"
selection-start-column=
"23"
selection-end-line=
"134"
selection-end-column=
"2
3"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0-sources.jar!/com/baidu/dueros/data/request/pay/event/Payload
.java"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
176
"
>
<state
relative-caret-position=
"
2508
"
>
<caret
line=
"
23"
lean-forward=
"true"
selection-start-line=
"23"
selection-end-line=
"2
3"
/>
<caret
line=
"
138"
column=
"113"
selection-start-line=
"138"
selection-start-column=
"105"
selection-end-line=
"138"
selection-end-column=
"11
3"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0-sources.jar!/com/baidu/dueros/data/response/directive/dpl/event/Payload
.java"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
396
"
>
<state
relative-caret-position=
"
72
"
>
<caret
line=
"
32"
column=
"15"
lean-forward=
"true"
selection-start-line=
"32"
selection-start-column=
"15"
selection-end-line=
"32"
selection-end-column=
"15
"
/>
<caret
line=
"
21"
column=
"28"
lean-forward=
"true"
selection-start-line=
"21"
selection-start-column=
"28"
selection-end-line=
"21"
selection-end-column=
"28
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../
maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0-sources.jar!/com/baidu/dueros/data/response/directive/dpl/event/Source
.java"
>
<entry
file=
"jar://$PROJECT_DIR$/../../../../
java/jdk1.8.0_211/src.zip!/java/nio/file/Files
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
274
"
>
<state
relative-caret-position=
"
301
"
>
<caret
line=
"
28"
column=
"13"
selection-start-line=
"28"
selection-start-column=
"13"
selection-end-line=
"28"
selection-end-column=
"1
3"
/>
<caret
line=
"
1267"
column=
"23"
selection-start-line=
"1267"
selection-start-column=
"23"
selection-end-line=
"1267"
selection-end-column=
"2
3"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0-sources.jar!/com/baidu/dueros/data/request/buy/event/Payload
.java"
>
<entry
file=
"
file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ResponseCode
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
110
"
>
<state
relative-caret-position=
"
66
"
>
<caret
line=
"6"
column=
"1
3"
selection-start-line=
"6"
selection-start-column=
"13"
selection-end-line=
"6"
selection-end-column=
"13
"
/>
<caret
line=
"6"
column=
"1
2"
selection-start-line=
"6"
selection-start-column=
"12"
selection-end-line=
"6"
selection-end-column=
"12
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0-sources.jar!/com/baidu/dueros/bot/BaseBot
.java"
>
<entry
file=
"
file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/AudioConfigInfo
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"274"
>
<state
relative-caret-position=
"220"
>
<caret
line=
"486"
column=
"21"
selection-start-line=
"486"
selection-start-column=
"21"
selection-end-line=
"486"
selection-end-column=
"21"
/>
<caret
line=
"11"
column=
"28"
selection-start-line=
"11"
selection-start-column=
"13"
selection-end-line=
"11"
selection-end-column=
"28"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
entity/secondary/XiaoDuHistoryTB
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
xiaoai/common/Utils
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
2
86"
>
<state
relative-caret-position=
"
1
86"
>
<caret
line=
"
23"
selection-start-line=
"23"
selection-end-line=
"23"
selection-end-column=
"14
"
/>
<caret
line=
"
100"
column=
"19"
selection-start-line=
"100"
selection-start-column=
"19"
selection-end-line=
"100"
selection-end-column=
"19
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
entity/secondary/XiaoDuCollectTB
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
controller/XiaoDuHomeController
.java"
>
<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=
"-22"
>
<caret
line=
"17"
column=
"14"
selection-start-line=
"17"
selection-start-column=
"14"
selection-end-line=
"17"
selection-end-column=
"14"
/>
<caret
line=
"44"
column=
"48"
selection-start-line=
"44"
selection-start-column=
"34"
selection-end-line=
"44"
selection-end-column=
"48"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryBotIdTime
.java"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
26
4"
>
<state
relative-caret-position=
"
125
4"
>
<caret
line=
"
17"
column=
"13"
selection-start-line=
"17"
selection-start-column=
"13"
selection-end-line=
"17"
selection-end-column=
"13
"
/>
<caret
line=
"
65"
column=
"25"
selection-start-line=
"65"
selection-start-column=
"25"
selection-end-line=
"65"
selection-end-column=
"25
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB
.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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
286
"
>
<state
relative-caret-position=
"
14212
"
>
<caret
line=
"
22"
column=
"14"
selection-start-line=
"22"
selection-start-column=
"14"
selection-end-line=
"22"
selection-end-column=
"14
"
/>
<caret
line=
"
682"
column=
"49"
selection-start-line=
"682"
selection-start-column=
"49"
selection-end-line=
"682"
selection-end-column=
"49
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
entity/secondary/XiaoDuOrderIdTB
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
controller/XiaoAiController
.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=
"
1386
"
>
<caret
line=
"
17"
column=
"13"
selection-start-line=
"17"
selection-start-column=
"13"
selection-end-line=
"17"
selection-end-column=
"13
"
/>
<caret
line=
"
93"
column=
"41"
selection-start-line=
"93"
selection-start-column=
"41"
selection-end-line=
"93"
selection-end-column=
"41
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
entity/primary/AppFavoriteTB
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
xiaoai/service/XiaoAiServiceRedis
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
41
8"
>
<state
relative-caret-position=
"
943
8"
>
<caret
line=
"
29"
column=
"25"
lean-forward=
"true"
selection-start-line=
"29"
selection-start-column=
"25"
selection-end-line=
"29"
selection-end-column=
"25
"
/>
<caret
line=
"
466"
column=
"39"
selection-start-line=
"466"
selection-start-column=
"39"
selection-end-line=
"466"
selection-end-column=
"39
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/templates/Oauth2_load_temp2.html
"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/ServerResponse.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
2507
"
>
<state
relative-caret-position=
"
332
"
>
<caret
line=
"
208"
column=
"69"
selection-start-line=
"208"
selection-start-column=
"69"
selection-end-line=
"208"
selection-end-column=
"69
"
/>
<caret
line=
"
81"
column=
"40"
selection-start-line=
"81"
selection-start-column=
"40"
selection-end-line=
"81"
selection-end-column=
"40
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0-sources.jar!/com/baidu/dueros/data/request/events/LinkAccountSucceededEvent
.java"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
80
"
>
<state
relative-caret-position=
"
242
"
>
<caret
line=
"
29"
column=
"13"
selection-start-line=
"29"
selection-start-column=
"13"
selection-end-line=
"29
"
selection-end-column=
"13"
/>
<caret
line=
"
13"
column=
"13"
selection-start-line=
"13"
selection-start-column=
"13"
selection-end-line=
"13
"
selection-end-column=
"13"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotServiceBoth
.java"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadPlotImgResponse
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"181"
>
<state
relative-caret-position=
"220"
>
<caret
line=
"73"
column=
"71"
lean-forward=
"true"
selection-start-line=
"73"
selection-start-column=
"71"
selection-end-line=
"73"
selection-end-column=
"71"
/>
<caret
line=
"10"
column=
"7"
lean-forward=
"true"
selection-start-line=
"10"
selection-start-column=
"7"
selection-end-line=
"10"
selection-end-column=
"7"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Utils
.java"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-2971
"
>
<state
relative-caret-position=
"
550
"
>
<caret
line=
"
110"
column=
"5"
selection-start-line=
"106"
selection-start-column=
"4"
selection-end-line=
"110"
selection-end-column=
"5
"
/>
<caret
line=
"
63"
column=
"9"
selection-start-line=
"63"
selection-start-column=
"9"
selection-end-line=
"63"
selection-end-column=
"9
"
/>
</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$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/FileUtil
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
73
"
>
<state
relative-caret-position=
"1
804
"
>
<caret
line=
"1
45"
column=
"31"
selection-start-line=
"145"
selection-start-column=
"25"
selection-end-line=
"145"
selection-end-column=
"31
"
/>
<caret
line=
"1
01"
column=
"23"
selection-start-line=
"101"
selection-start-column=
"23"
selection-end-line=
"101"
selection-end-column=
"23
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/dpl2/recommand.json
"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
186
"
>
<state
relative-caret-position=
"
9218
"
>
<caret
line=
"
75"
column=
"47"
selection-start-line=
"75"
selection-start-column=
"47"
selection-end-line=
"75"
selection-end-column=
"47
"
/>
<caret
line=
"
489"
column=
"25"
selection-start-line=
"489"
selection-start-column=
"25"
selection-end-line=
"489"
selection-end-column=
"25
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/dpl2/category.json
"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"186"
>
<state
relative-caret-position=
"3696"
>
<caret
line=
"312"
column=
"51"
selection-start-line=
"312"
selection-start-column=
"51"
selection-end-line=
"312"
selection-end-column=
"51"
/>
<caret
line=
"180"
column=
"51"
selection-start-line=
"180"
selection-start-column=
"51"
selection-end-line=
"180"
selection-end-column=
"51"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/dpl2/collectHistory.json
"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
246
"
>
<state
relative-caret-position=
"
3894
"
>
<caret
line=
"
101"
column=
"47"
selection-start-line=
"101"
selection-start-column=
"47"
selection-end-line=
"101"
selection-end-column=
"47
"
/>
<caret
line=
"
209"
column=
"28"
selection-start-line=
"209"
selection-start-column=
"28"
selection-end-line=
"209"
selection-end-column=
"28
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/dpl2/home.json
"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
46
"
>
<state
relative-caret-position=
"2
64
"
>
<caret
line=
"
279"
column=
"46"
selection-start-line=
"279"
selection-start-column=
"46"
selection-end-line=
"279"
selection-end-column=
"46
"
/>
<caret
line=
"
16"
column=
"13"
selection-start-line=
"16"
selection-start-column=
"13"
selection-end-line=
"16"
selection-end-column=
"13
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/dpl2/play.json
"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
8
6"
>
<state
relative-caret-position=
"1
47
6"
>
<caret
line=
"
86"
column=
"51"
selection-start-line=
"86"
selection-start-column=
"51"
selection-end-line=
"86"
selection-end-column=
"51
"
/>
<caret
line=
"
1547"
column=
"48"
lean-forward=
"true"
selection-start-line=
"1547"
selection-start-column=
"48"
selection-end-line=
"1547"
selection-end-column=
"48
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/dpl2/firstPage.json
"
>
<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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
45
"
>
<state
relative-caret-position=
"3
62
"
>
<caret
line=
"1
8"
column=
"30"
lean-forward=
"true"
selection-start-line=
"18"
selection-start-column=
"30"
selection-end-line=
"18"
selection-end-column=
"30
"
/>
<caret
line=
"1
99"
column=
"42"
selection-start-line=
"199"
selection-start-column=
"42"
selection-end-line=
"199"
selection-end-column=
"42
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
resources/static/dpl2/productList.json
"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
java/ai/qiwu/com/xiaoduhome/dpl2/model/ProjectDetailData.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
3
"
>
<state
relative-caret-position=
"
242
"
>
<caret
line=
"1
12"
column=
"27"
selection-start-line=
"112"
selection-start-column=
"27"
selection-end-line=
"112"
selection-end-column=
"27
"
/>
<caret
line=
"1
3"
column=
"30"
selection-start-line=
"13"
selection-start-column=
"13"
selection-end-line=
"13"
selection-end-column=
"30
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
resources/static/dpl2/productDetail.json
"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
754
"
>
<state
relative-caret-position=
"
266
"
>
<caret
line=
"
94"
column=
"31"
selection-start-line=
"94"
selection-start-column=
"31"
selection-end-line=
"94"
selection-end-column=
"31
"
/>
<caret
line=
"
282"
column=
"30"
selection-start-line=
"282"
selection-start-column=
"30"
selection-end-line=
"282"
selection-end-column=
"30
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/ChangeSound
.java"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-308
"
>
<state
relative-caret-position=
"
264
"
>
<caret
line=
"15"
column=
"
6"
selection-start-line=
"15"
selection-start-column=
"6"
selection-end-line=
"15"
selection-end-column=
"6
"
/>
<caret
line=
"15"
column=
"
13"
selection-start-line=
"15"
selection-start-column=
"13"
selection-end-line=
"15"
selection-end-column=
"13
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/sound/AudioConverter
.java"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils
.java"
>
<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=
"
266
"
>
<caret
line=
"
10"
column=
"13"
selection-start-line=
"10"
selection-start-column=
"13"
selection-end-line=
"10"
selection-end-column=
"13
"
/>
<caret
line=
"
93"
column=
"25"
selection-start-line=
"93"
selection-start-column=
"25"
selection-end-line=
"93"
selection-end-column=
"25
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/sound/SampleRateConverter
.java"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Utils
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
506
"
>
<state
relative-caret-position=
"
274
"
>
<caret
line=
"
207"
column=
"43"
lean-forward=
"true"
selection-start-line=
"207"
selection-start-column=
"43"
selection-end-line=
"207"
selection-end-column=
"43
"
/>
<caret
line=
"
106"
column=
"25"
selection-start-line=
"106"
selection-start-column=
"25"
selection-end-line=
"106"
selection-end-column=
"25
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil
.java"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-5
6"
>
<state
relative-caret-position=
"
26
6"
>
<caret
line=
"1
38"
column=
"113"
selection-start-line=
"138"
selection-start-column=
"105"
selection-end-line=
"138"
selection-end-column=
"113
"
/>
<caret
line=
"1
86"
column=
"32"
selection-start-line=
"186"
selection-start-column=
"32"
selection-end-line=
"186"
selection-end-column=
"32
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTS
Controller.java"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2
Controller.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
15
"
>
<state
relative-caret-position=
"1
092
"
>
<caret
line=
"
271"
column=
"30"
selection-start-line=
"271"
selection-start-column=
"17"
selection-end-line=
"271"
selection-end-column=
"3
0"
/>
<caret
line=
"
170"
column=
"40"
selection-start-line=
"170"
selection-start-column=
"40"
selection-end-line=
"170"
selection-end-column=
"4
0"
/>
</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/
resources/static/dpl2/category.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"616"
>
<state
relative-caret-position=
"1322"
>
<caret
line=
"94"
column=
"64"
selection-start-line=
"94"
selection-start-column=
"64"
selection-end-line=
"94"
selection-end-column=
"64"
/>
<caret
line=
"70"
column=
"41"
selection-start-line=
"70"
selection-start-column=
"41"
selection-end-line=
"70"
selection-end-column=
"41"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java
"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/dpl2/collectHistory.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
6
40"
>
<state
relative-caret-position=
"
4
40"
>
<caret
line=
"
264"
column=
"48"
selection-start-line=
"264"
selection-start-column=
"48"
selection-end-line=
"264"
selection-end-column=
"48
"
/>
<caret
line=
"
47"
column=
"14"
selection-start-line=
"47"
selection-start-column=
"14"
selection-end-line=
"47"
selection-end-column=
"14
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java
"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
resources/static/dpl2/firstPage.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
504
"
>
<state
relative-caret-position=
"
345
"
>
<caret
line=
"18
8"
column=
"62"
selection-start-line=
"188"
selection-start-column=
"62"
selection-end-line=
"188"
selection-end-column=
"62
"
/>
<caret
line=
"18
"
column=
"30"
selection-start-line=
"18"
selection-start-column=
"30"
selection-end-line=
"18"
selection-end-column=
"30
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
java/ai/qiwu/com/xiaoduhome/spirit/InitialData.java
"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
resources/static/dpl2/home.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
286
"
>
<state
relative-caret-position=
"
1038
"
>
<caret
line=
"
33"
column=
"31"
selection-start-line=
"33"
selection-start-column=
"31"
selection-end-line=
"33"
selection-end-column=
"31
"
/>
<caret
line=
"
279"
column=
"46"
selection-start-line=
"279"
selection-start-column=
"46"
selection-end-line=
"279"
selection-end-column=
"46
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java
"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
resources/static/dpl2/play.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
189
2"
>
<state
relative-caret-position=
"
55
2"
>
<caret
line=
"
121"
column=
"31"
lean-forward=
"true"
selection-start-line=
"121"
selection-start-column=
"31"
selection-end-line=
"121"
selection-end-column=
"31
"
/>
<caret
line=
"
43"
column=
"29"
selection-start-line=
"43"
selection-start-column=
"29"
selection-end-line=
"43"
selection-end-column=
"29
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
java/ai/qiwu/com/xiaoduhome/pojo/data/ProjectData.java
"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
resources/static/dpl2/productDetail.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
08
"
>
<state
relative-caret-position=
"3
34
"
>
<caret
line=
"
20"
column=
"33"
selection-start-line=
"20"
selection-start-column=
"19"
selection-end-line=
"20"
selection-end-column=
"33
"
/>
<caret
line=
"
53"
column=
"14"
selection-start-line=
"53"
selection-start-column=
"14"
selection-end-line=
"53"
selection-end-column=
"14
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
java/ai/qiwu/com/xiaoduhome/pojo/data/ProjectDataResult.java
"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
resources/static/dpl2/recommand.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
242
"
>
<state
relative-caret-position=
"
648
"
>
<caret
line=
"
13"
column=
"13"
selection-start-line=
"13"
selection-start-column=
"13"
selection-end-line=
"13"
selection-end-column=
"13
"
/>
<caret
line=
"
45"
column=
"30"
selection-start-line=
"45"
selection-start-column=
"30"
selection-end-line=
"45"
selection-end-column=
"30
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
service/ScheduleServiceNew
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
common/Constants
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-30"
>
<state
relative-caret-position=
"301"
>
<caret
line=
"119"
column=
"48"
selection-start-line=
"119"
selection-start-column=
"48"
selection-end-line=
"119"
selection-end-column=
"48"
/>
<caret
line=
"45"
column=
"28"
selection-start-line=
"45"
selection-start-column=
"15"
selection-end-line=
"45"
selection-end-column=
"28"
/>
<folding>
</state>
<element
signature=
"e#12305#12306#0"
expanded=
"true"
/>
</provider>
<element
signature=
"e#12350#12351#0"
expanded=
"true"
/>
</entry>
</folding>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/dpl2/productList.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"204"
>
<caret
line=
"240"
column=
"19"
selection-start-line=
"240"
selection-start-column=
"19"
selection-end-line=
"240"
selection-end-column=
"19"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
96
1"
>
<state
relative-caret-position=
"
60
1"
>
<caret
line=
"
196"
column=
"55"
selection-start-line=
"196"
selection-start-column=
"55"
selection-end-line=
"196"
selection-end-column=
"55
"
/>
<caret
line=
"
474"
column=
"24"
selection-start-line=
"474"
selection-start-column=
"24"
selection-end-line=
"474"
selection-end-column=
"24
"
/>
<folding>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#12634#12635#0"
expanded=
"true"
/>
<element
signature=
"e#12661#12662#0"
expanded=
"true"
/>
<element
signature=
"e#12661#12662#0"
expanded=
"true"
/>
<element
signature=
"e#44410#44411#0"
expanded=
"true"
/>
<element
signature=
"e#46096#46097#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</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=
"501"
>
<caret
line=
"134"
column=
"23"
selection-start-line=
"134"
selection-start-column=
"23"
selection-end-line=
"134"
selection-end-column=
"23"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-504
"
>
<state
relative-caret-position=
"
320
"
>
<caret
line=
"
559"
column=
"37"
selection-start-line=
"559"
selection-start-column=
"37"
selection-end-line=
"559"
selection-end-column=
"37
"
/>
<caret
line=
"
330"
column=
"44"
lean-forward=
"true"
selection-start-line=
"330"
selection-start-column=
"44"
selection-end-line=
"330"
selection-end-column=
"44
"
/>
<folding>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</folding>
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java
View file @
544164f3
...
@@ -167,7 +167,45 @@ public class CallPython {
...
@@ -167,7 +167,45 @@ public class CallPython {
return
"1"
;
return
"1"
;
}
}
public
static
String
soxiGetAudioConfig
(
String
arg
)
{
ProcessBuilder
processBuilder
=
new
ProcessBuilder
(
arg
.
split
(
" "
));
processBuilder
.
redirectErrorStream
(
true
);
//错误输出流合并到标准输出流中
StringBuilder
builder
=
new
StringBuilder
();
Process
process
=
null
;
try
{
//long startTime = System.currentTimeMillis();
process
=
processBuilder
.
start
();
process
.
waitFor
();
BufferedReader
reader
=
new
BufferedReader
(
new
InputStreamReader
(
process
.
getInputStream
()));
String
line
;
if
(
process
.
exitValue
()
!=
0
)
{
while
((
line
=
reader
.
readLine
())
!=
null
)
{
builder
.
append
(
line
);
}
if
(
builder
.
length
()
>
0
)
{
log
.
error
(
"soxiGetAudioConfig 执行出错:{}"
,
builder
.
toString
());
return
null
;
}
}
else
{
while
((
line
=
reader
.
readLine
())
!=
null
)
{
builder
.
append
(
line
);
}
if
(
builder
.
length
()
!=
0
){
return
builder
.
toString
();
}
}
//log.info(Thread.currentThread().getName()+"耗时:"+(System.currentTimeMillis()-startTime));
}
catch
(
IOException
|
InterruptedException
e
)
{
log
.
info
(
"Error while running soxiGetAudioConfig. {}"
,
e
.
getMessage
());
return
null
;
}
finally
{
if
(
process
!=
null
)
process
.
destroy
();
}
return
null
;
}
static
String
ffmpegExecute
(
String
arg
)
{
static
String
ffmpegExecute
(
String
arg
)
{
// log.warn("ffmpegExecute: "+arg);
ProcessBuilder
processBuilder
=
new
ProcessBuilder
(
arg
.
split
(
" "
));
ProcessBuilder
processBuilder
=
new
ProcessBuilder
(
arg
.
split
(
" "
));
processBuilder
.
redirectErrorStream
(
true
);
//错误输出流合并到标准输出流中
processBuilder
.
redirectErrorStream
(
true
);
//错误输出流合并到标准输出流中
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/common/ResponseCode.java
0 → 100644
View file @
544164f3
package
ai
.
qiwu
.
com
.
tts_service
.
common
;
/**
* painter
* 20-8-4 下午5:37
*/
public
enum
ResponseCode
{
SUCCESS
(
1
,
"成功"
),
ERROR
(
500
,
"服务器出错"
),
SERVER_IS_EXCEPTION
(
500
,
"服务器异常"
),
PARAM_IS_FAULT
(
10005
,
"字段错误"
),
USER_NOT_EXIST
(
20004
,
"用户不存在"
),
USER_AUTHENTICATION_FAIL
(
20007
,
"用户认证失败!"
),
PASSWORD_WRONG
(
20008
,
"密码错误"
),
EMAIL_WRONG
(
20009
,
"用户名或邮箱地址错误"
),
USER_LOGIN_OUT_TIME
(
20010
,
"超时请重新登录"
),
DATA_IS_WRONG
(
50002
,
"数据有误"
),
PERMISSION_NO_ACCESS
(
70001
,
"无访问权限"
),
;
private
final
Integer
code
;
private
final
String
desc
;
ResponseCode
(
Integer
code
,
String
desc
)
{
this
.
code
=
code
;
this
.
desc
=
desc
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getDesc
()
{
return
desc
;
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/common/ServerResponse.java
0 → 100644
View file @
544164f3
package
ai
.
qiwu
.
com
.
tts_service
.
common
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
lombok.ToString
;
import
java.io.Serializable
;
/**
* painter
* 20-8-4 下午5:31
*/
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@ToString
public
class
ServerResponse
<
T
>
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3948389268046368059L
;
private
Integer
code
;
private
String
msg
;
private
T
data
;
public
ServerResponse
(){}
private
ServerResponse
(
Integer
code
){
this
.
code
=
code
;
}
private
ServerResponse
(
Integer
code
,
T
data
){
this
.
code
=
code
;
this
.
data
=
data
;
}
private
ServerResponse
(
Integer
code
,
String
msg
,
T
data
){
this
.
code
=
code
;
this
.
msg
=
msg
;
this
.
data
=
data
;
}
private
ServerResponse
(
Integer
code
,
String
msg
){
this
.
code
=
code
;
this
.
msg
=
msg
;
}
@JsonIgnore
//使之不再json序列化结果当中
public
boolean
isSuccess
(){
return
this
.
code
.
equals
(
ResponseCode
.
SUCCESS
.
getCode
());
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getMsg
()
{
return
msg
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
public
T
getData
()
{
return
data
;
}
public
static
<
T
>
ServerResponse
<
T
>
createBySuccess
(){
return
new
ServerResponse
<>(
ResponseCode
.
SUCCESS
.
getCode
(),
ResponseCode
.
SUCCESS
.
getDesc
(),
null
);
}
public
static
<
T
>
ServerResponse
<
T
>
createBySuccessMessage
(
String
msg
){
return
new
ServerResponse
<>(
ResponseCode
.
SUCCESS
.
getCode
(),
msg
);
}
public
static
<
T
>
ServerResponse
<
T
>
createBySuccess
(
T
data
){
return
new
ServerResponse
<>(
ResponseCode
.
SUCCESS
.
getCode
(),
data
);
}
public
static
<
T
>
ServerResponse
<
T
>
createBySuccess
(
String
msg
,
T
data
){
return
new
ServerResponse
<>(
ResponseCode
.
SUCCESS
.
getCode
(),
msg
,
data
);
}
public
static
<
T
>
ServerResponse
<
T
>
createByError
(){
return
new
ServerResponse
<>(
ResponseCode
.
ERROR
.
getCode
(),
ResponseCode
.
ERROR
.
getDesc
());
}
public
static
<
T
>
ServerResponse
<
T
>
createByErrorMessage
(
String
msg
){
return
new
ServerResponse
<>(
ResponseCode
.
ERROR
.
getCode
(),
msg
);
}
public
static
<
T
>
ServerResponse
<
T
>
createByErrorCodeMessage
(
int
errorCode
,
String
errorMessage
){
return
new
ServerResponse
<>(
errorCode
,
errorMessage
);
}
public
static
<
T
>
ServerResponse
<
T
>
createByErrorEnum
(
ResponseCode
code
){
return
new
ServerResponse
<>(
code
.
getCode
(),
code
.
getDesc
());
}
public
static
<
T
>
ServerResponse
<
T
>
createByErrorEnumAndMsg
(
ResponseCode
code
,
String
msg
){
return
new
ServerResponse
<>(
code
.
getCode
(),
msg
);
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java
View file @
544164f3
...
@@ -554,6 +554,20 @@ public class TTSUtils {
...
@@ -554,6 +554,20 @@ public class TTSUtils {
return
filename
;
return
filename
;
}
}
public
static
Boolean
changeAudioConfig
(
Integer
sampleRate
,
String
bitRate
,
String
targetPath
)
{
try
{
String
temp
=
targetPath
.
substring
(
0
,
targetPath
.
lastIndexOf
(
"."
))+
"_.mp3"
;
if
(
"1"
.
equals
(
CallPython
.
ffmpegExecute
(
new
StringBuilder
(
"ffmpeg -i "
).
append
(
targetPath
).
append
(
" -b:a "
)
.
append
(
bitRate
).
append
(
" -ar "
).
append
(
sampleRate
).
append
(
" -y "
).
append
(
temp
).
toString
())))
{
Files
.
move
(
new
File
(
temp
).
toPath
(),
new
File
(
targetPath
).
toPath
(),
StandardCopyOption
.
REPLACE_EXISTING
);
return
true
;
}
}
catch
(
Exception
e
)
{
log
.
error
(
"changeAudioConfig 修改音频数据出错:sampleRate:{}, bitRate:{}, targetPath:{}, {}"
,
sampleRate
,
bitRate
,
targetPath
,
e
);
}
return
false
;
}
/**
/**
* 合并mp3文件
* 合并mp3文件
* @param filePathList 待合并mp3文件列表
* @param filePathList 待合并mp3文件列表
...
@@ -665,14 +679,14 @@ public class TTSUtils {
...
@@ -665,14 +679,14 @@ public class TTSUtils {
return
;
return
;
}
}
}
}
long
temp
;
//
long temp;
// log.warn("sox 切除静音耗时:"+((temp=System.currentTimeMillis())-startMark));
// log.warn("sox 切除静音耗时:"+((temp=System.currentTimeMillis())-startMark));
List
<
String
>
str
=
cutedPaths
.
stream
().
map
(
s
->
"-i "
+
s
).
collect
(
Collectors
.
toList
());
List
<
String
>
str
=
cutedPaths
.
stream
().
map
(
s
->
"-i "
+
s
).
collect
(
Collectors
.
toList
());
StringBuilder
builder
=
new
StringBuilder
(
"ffmpeg "
).
append
(
StringUtils
.
join
(
str
,
" "
)).
append
(
" -filter_complex "
);
StringBuilder
builder
=
new
StringBuilder
(
"ffmpeg "
).
append
(
StringUtils
.
join
(
str
,
" "
)).
append
(
" -filter_complex "
);
for
(
int
k
=
0
;
k
<
filePathList
.
size
();
k
++)
{
for
(
int
k
=
0
;
k
<
filePathList
.
size
();
k
++)
{
builder
.
append
(
"["
).
append
(
k
).
append
(
":a:0]"
);
builder
.
append
(
"["
).
append
(
k
).
append
(
":a:0]"
);
}
}
builder
.
append
(
"concat=n="
).
append
(
filePathList
.
size
()).
append
(
":v=0:a=1[a] -map [a] "
).
append
(
targetFilepath
);
builder
.
append
(
"concat=n="
).
append
(
filePathList
.
size
()).
append
(
":v=0:a=1[a] -map [a]
-b:a 64k -y
"
).
append
(
targetFilepath
);
CallPython
.
ffmpegExecute
(
builder
.
toString
());
CallPython
.
ffmpegExecute
(
builder
.
toString
());
// log.warn("ffmpeg 拼接耗时:"+(System.currentTimeMillis()-temp));
// log.warn("ffmpeg 拼接耗时:"+(System.currentTimeMillis()-temp));
POOL
.
submit
(()
->
{
POOL
.
submit
(()
->
{
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/controller/DeployController.java
View file @
544164f3
package
ai
.
qiwu
.
com
.
tts_service
.
controller
;
package
ai
.
qiwu
.
com
.
tts_service
.
controller
;
import
ai.qiwu.com.tts_service.common.ApachHttpUtils
;
import
ai.qiwu.com.tts_service.common.*
;
import
ai.qiwu.com.tts_service.common.FileUtil
;
import
ai.qiwu.com.tts_service.pojo.TTSResponse
;
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.MoveBotAudio
;
import
ai.qiwu.com.tts_service.pojo.deploy.Result
;
import
ai.qiwu.com.tts_service.pojo.deploy.Result
;
import
ai.qiwu.com.tts_service.pojo.upload.UploadOneSenData
;
import
ai.qiwu.com.tts_service.pojo.upload.UploadPlotImgResponse
;
import
ai.qiwu.com.tts_service.service.Initialize
;
import
ai.qiwu.com.tts_service.service.Initialize
;
import
ai.qiwu.com.tts_service.service.TTService
;
import
ai.qiwu.com.tts_service.service.TTService
;
import
com.alibaba.fastjson.JSON
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.catalina.connector.ClientAbortException
;
import
org.apache.catalina.connector.ClientAbortException
;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.exception.ExceptionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartHttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.RandomAccessFile
;
import
java.io.RandomAccessFile
;
import
java.net.InetAddress
;
import
java.net.UnknownHostException
;
import
java.nio.channels.Channels
;
import
java.nio.channels.Channels
;
import
java.nio.channels.FileChannel
;
import
java.nio.channels.FileChannel
;
import
java.nio.channels.WritableByteChannel
;
import
java.nio.channels.WritableByteChannel
;
...
@@ -42,6 +50,109 @@ import java.util.stream.Collectors;
...
@@ -42,6 +50,109 @@ import java.util.stream.Collectors;
@RequiredArgsConstructor
(
onConstructor_
=
{
@Autowired
})
@RequiredArgsConstructor
(
onConstructor_
=
{
@Autowired
})
public
class
DeployController
{
public
class
DeployController
{
@DeleteMapping
(
"/background/audio"
)
public
ServerResponse
delAudio
(
String
path
)
{
Path
pt
=
Paths
.
get
(
Initialize
.
AUDIO_DIR
+
path
);
if
(
Files
.
exists
(
pt
)
&&
!
Files
.
isDirectory
(
pt
)
&&
StringUtils
.
endsWith
(
path
,
".mp3"
)
&&
StringUtils
.
contains
(
path
,
"/background/"
))
{
try
{
Files
.
deleteIfExists
(
pt
);
return
ServerResponse
.
createBySuccess
();
}
catch
(
Exception
e
)
{
log
.
error
(
"delAudio error:"
+
e
);
}
}
return
ServerResponse
.
createByError
();
}
@GetMapping
(
"/background/audio"
)
public
ServerResponse
moveTempToCertain
(
String
path
,
@RequestParam
(
required
=
false
)
String
oldPath
)
{
Path
pt
=
Paths
.
get
(
Initialize
.
AUDIO_DIR
+
path
);
if
(
Files
.
exists
(
pt
)
&&
!
Files
.
isDirectory
(
pt
)
&&
StringUtils
.
endsWith
(
path
,
".mp3"
)
&&
StringUtils
.
contains
(
path
,
"/background/tmp/"
))
{
String
certain
=
path
.
replace
(
"tmp/"
,
""
);
try
{
Files
.
move
(
pt
,
Paths
.
get
(
Initialize
.
AUDIO_DIR
+
certain
),
StandardCopyOption
.
REPLACE_EXISTING
);
FileUtil
.
deleteFile
(
new
File
(
Initialize
.
AUDIO_DIR
+
path
.
substring
(
0
,
path
.
indexOf
(
"/tmp/"
)+
4
)));
if
(
StringUtils
.
isNotBlank
(
oldPath
))
{
delAudio
(
oldPath
);
}
return
ServerResponse
.
createBySuccess
();
}
catch
(
Exception
e
)
{
log
.
error
(
"moveTempToCertain error:"
+
e
);
}
}
return
ServerResponse
.
createByError
();
}
@PostMapping
(
"/background/audio"
)
public
ServerResponse
uploadBackgroundAudio
(
HttpServletRequest
request
,
@RequestHeader
(
"Authorization"
)
String
auth
,
@RequestHeader
(
"botAccount"
)
String
botAccount
,
@RequestHeader
(
"groupId"
)
Long
groupId
)
{
MultipartHttpServletRequest
mulRequest
=
(
MultipartHttpServletRequest
)
request
;
MultipartFile
file
=
mulRequest
.
getFile
(
"file"
);
String
type
=
mulRequest
.
getParameter
(
"type"
);
// default, category, plot
String
sampleRatStr
=
mulRequest
.
getParameter
(
"sampleRate"
);
// default, category, plot
String
bitRateStr
=
mulRequest
.
getParameter
(
"bitRate"
);
// default, category, plot
if
(
file
==
null
||
file
.
isEmpty
()
||
StringUtils
.
isAnyBlank
(
type
,
auth
,
botAccount
)
||
groupId
==
null
)
{
return
ServerResponse
.
createByErrorEnum
(
ResponseCode
.
DATA_IS_WRONG
);
}
// 校验
try
{
Map
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"Authorization"
,
auth
);
headers
.
put
(
"botAccount"
,
botAccount
);
headers
.
put
(
"groupId"
,
String
.
valueOf
(
groupId
));
String
result
=
ApachHttpUtils
.
get
(
Initialize
.
ZUUL_HOST
+
"/audio/auth"
,
headers
,
null
);
ServerResponse
response
=
JSON
.
parseObject
(
result
,
ServerResponse
.
class
);
if
(
ResponseCode
.
SUCCESS
.
getCode
().
equals
(
response
.
getCode
()))
{
String
path
=
File
.
separator
+
botAccount
+
"/background/tmp/"
;
switch
(
type
)
{
case
"category"
:
path
+=
"category/"
+
RandomStringUtils
.
randomAlphabetic
(
5
)+
System
.
currentTimeMillis
()+
".mp3"
;
break
;
case
"plot"
:
path
+=
"plot/"
+
RandomStringUtils
.
randomAlphabetic
(
5
)+
System
.
currentTimeMillis
()+
".mp3"
;
break
;
default
:
path
+=
"default.mp3"
;
}
Path
pt
;
Files
.
createDirectories
((
pt
=
Paths
.
get
(
Initialize
.
AUDIO_DIR
+
path
)).
getParent
());
file
.
transferTo
(
pt
);
int
sampleRate
=
StringUtils
.
isBlank
(
sampleRatStr
)
?
44100
:
Integer
.
parseInt
(
sampleRatStr
);
String
bitRate
=
StringUtils
.
isBlank
(
bitRateStr
)
?
"64k"
:
bitRateStr
;
switch
(
bitRate
)
{
case
"32k"
:
bitRate
=
"32k"
;
break
;
case
"64k"
:
bitRate
=
"64k"
;
break
;
case
"128k"
:
bitRate
=
"128k"
;
break
;
case
"256k"
:
bitRate
=
"256k"
;
break
;
case
"320k"
:
bitRate
=
"320k"
;
break
;
default
:
bitRate
=
"64k"
;
}
switch
(
sampleRate
)
{
case
8000
:
sampleRate
=
8000
;
break
;
case
11025
:
sampleRate
=
11025
;
break
;
case
22050
:
sampleRate
=
22050
;
break
;
case
32000
:
sampleRate
=
32000
;
break
;
case
44100
:
sampleRate
=
44100
;
break
;
case
47250
:
sampleRate
=
47250
;
break
;
case
48000
:
sampleRate
=
48000
;
break
;
case
50000
:
sampleRate
=
50000
;
break
;
case
88200
:
sampleRate
=
88200
;
break
;
case
96000
:
sampleRate
=
96000
;
break
;
default
:
sampleRate
=
44100
;
}
if
(!
TTSUtils
.
changeAudioConfig
(
sampleRate
,
bitRate
,
Initialize
.
AUDIO_DIR
+
path
))
{
return
ServerResponse
.
createByErrorCodeMessage
(
HttpServletResponse
.
SC_INTERNAL_SERVER_ERROR
,
"修改音频采样率/比特率数据失败"
);
}
return
ServerResponse
.
createBySuccess
(
Initialize
.
SERVER_URL
+
"/api/audio/tts?filename="
+
path
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"uploadBackgroundAudio error:"
+
ExceptionUtils
.
getStackTrace
(
e
));
}
return
ServerResponse
.
createByErrorEnum
(
ResponseCode
.
ERROR
);
}
@GetMapping
(
"/syn/download"
)
@GetMapping
(
"/syn/download"
)
public
String
synSysImgTargetServerDownInThread
(
Long
length
,
String
path
,
String
sourceServer
,
String
zipDir
,
public
String
synSysImgTargetServerDownInThread
(
Long
length
,
String
path
,
String
sourceServer
,
String
zipDir
,
String
targetDir
,
String
type
,
@RequestParam
(
required
=
false
)
String
gameServer
,
String
targetDir
,
String
type
,
@RequestParam
(
required
=
false
)
String
gameServer
,
...
@@ -363,6 +474,42 @@ public class DeployController {
...
@@ -363,6 +474,42 @@ public class DeployController {
}
}
}
}
@PostMapping
(
"/audio/move/background"
)
public
String
moveBotBackgroundAudio
(
@RequestBody
MoveBotAudio
moveBotAudio
)
{
try
{
Path
pt
=
Paths
.
get
(
Initialize
.
AUDIO_DIR
+
File
.
separator
+
moveBotAudio
.
getSrcBotAccount
()+
"/background"
);
if
(
Files
.
exists
(
pt
))
{
List
<
Path
>
backDirPath
=
Files
.
list
(
pt
)
.
filter
(
path
->
!
path
.
endsWith
(
"tmp"
)).
collect
(
Collectors
.
toList
());
List
<
Path
>
srcBackPaths
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
backDirPath
))
{
for
(
Path
ppt:
backDirPath
)
{
if
(
Files
.
isDirectory
(
ppt
))
{
srcBackPaths
.
addAll
(
Files
.
list
(
ppt
).
collect
(
Collectors
.
toList
()));
}
else
{
srcBackPaths
.
add
(
ppt
);
}
}
}
srcBackPaths
.
forEach
(
path
->
{
try
{
Path
dest
=
Paths
.
get
(
path
.
toAbsolutePath
().
toString
().
replace
(
moveBotAudio
.
getSrcBotAccount
(),
moveBotAudio
.
getDestBotAccount
()));
Files
.
createDirectories
(
dest
.
getParent
());
Files
.
copy
(
path
,
dest
,
StandardCopyOption
.
REPLACE_EXISTING
);
}
catch
(
IOException
e
)
{
log
.
error
(
"moveBotBackgroundAudio error:"
+
path
.
toAbsolutePath
().
toString
());
}
});
log
.
warn
(
"复制移动背景音成功:"
+
moveBotAudio
);
}
return
"success"
;
}
catch
(
Exception
e
)
{
log
.
error
(
"复制移动背景音出错:{}->{}"
,
e
,
moveBotAudio
);
}
return
"fail"
;
}
@PostMapping
(
"/audio/move"
)
@PostMapping
(
"/audio/move"
)
public
String
moveBotAudio
(
@RequestBody
MoveBotAudio
moveBotAudio
)
{
public
String
moveBotAudio
(
@RequestBody
MoveBotAudio
moveBotAudio
)
{
try
{
try
{
...
@@ -379,7 +526,7 @@ public class DeployController {
...
@@ -379,7 +526,7 @@ public class DeployController {
private
void
moveAudio
(
String
srcBotAccount
,
String
targetBotAccount
)
throws
IOException
{
private
void
moveAudio
(
String
srcBotAccount
,
String
targetBotAccount
)
throws
IOException
{
Path
pt
=
Paths
.
get
(
Initialize
.
AUDIO_DIR
+
"/"
+
srcBotAccount
);
Path
pt
=
Paths
.
get
(
Initialize
.
AUDIO_DIR
+
"/"
+
srcBotAccount
);
if
(
Files
.
exists
(
pt
))
{
if
(
Files
.
exists
(
pt
))
{
List
<
String
>
needDir
=
Files
.
list
(
pt
).
filter
(
path
->
path
.
endsWith
(
"record"
)
||
path
.
endsWith
(
"Liehu1"
)
||
List
<
String
>
needDir
=
Files
.
list
(
pt
).
filter
(
path
->
path
.
endsWith
(
"record"
)
||
path
.
endsWith
(
"Liehu1"
)
||
path
.
endsWith
(
"background"
)
||
path
.
getFileName
().
toString
().
contains
(
"Baidu"
)).
map
(
path
->
path
.
toAbsolutePath
().
toString
()).
collect
(
Collectors
.
toList
());
path
.
getFileName
().
toString
().
contains
(
"Baidu"
)).
map
(
path
->
path
.
toAbsolutePath
().
toString
()).
collect
(
Collectors
.
toList
());
for
(
String
dir
:
needDir
)
{
for
(
String
dir
:
needDir
)
{
copyDir
(
dir
,
dir
.
replace
(
srcBotAccount
,
targetBotAccount
));
copyDir
(
dir
,
dir
.
replace
(
srcBotAccount
,
targetBotAccount
));
...
@@ -417,6 +564,44 @@ public class DeployController {
...
@@ -417,6 +564,44 @@ public class DeployController {
});
});
}
}
private
String
getRequestIp
(
HttpServletRequest
request
)
{
String
ipAddress
=
null
;
try
{
ipAddress
=
request
.
getHeader
(
"x-forwarded-for"
);
if
(
StringUtils
.
isBlank
(
ipAddress
)
||
"unknown"
.
equalsIgnoreCase
(
ipAddress
))
{
ipAddress
=
request
.
getHeader
(
"Proxy-Client-IP"
);
}
if
(
StringUtils
.
isBlank
(
ipAddress
)
||
"unknown"
.
equalsIgnoreCase
(
ipAddress
))
{
ipAddress
=
request
.
getHeader
(
"WL-Proxy-Client-IP"
);
}
if
(
StringUtils
.
isBlank
(
ipAddress
)
||
"unknown"
.
equalsIgnoreCase
(
ipAddress
))
{
ipAddress
=
request
.
getRemoteAddr
();
if
(
"127.0.0.1"
.
equals
(
ipAddress
))
{
// 根据网卡取本机配置的IP
InetAddress
inet
=
null
;
try
{
inet
=
InetAddress
.
getLocalHost
();
}
catch
(
UnknownHostException
e
)
{
e
.
printStackTrace
();
}
ipAddress
=
inet
.
getHostAddress
();
}
}
// 对于通过多个代理的情况,第一个IP为客户端真实IP,多个IP按照','分割
if
(
ipAddress
!=
null
&&
ipAddress
.
length
()
>
15
)
{
// "***.***.***.***".length()
// = 15
if
(
ipAddress
.
indexOf
(
","
)
>
0
)
{
ipAddress
=
ipAddress
.
substring
(
0
,
ipAddress
.
indexOf
(
","
));
}
}
}
catch
(
Exception
e
)
{
ipAddress
=
""
;
}
// ipAddress = this.getRequest().getRemoteAddr();
return
ipAddress
;
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
TTSUtils
.
buildMP3Filename
(
"这是一段测试文本,请听下音效,选择你认为合适的一套声音"
));
System
.
out
.
println
(
TTSUtils
.
buildMP3Filename
(
"这是一段测试文本,请听下音效,选择你认为合适的一套声音"
));
}
}
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java
View file @
544164f3
package
ai
.
qiwu
.
com
.
tts_service
.
controller
;
package
ai
.
qiwu
.
com
.
tts_service
.
controller
;
import
ai.qiwu.com.tts_service.common.FileUtil
;
import
ai.qiwu.com.tts_service.common.ServerResponse
;
import
ai.qiwu.com.tts_service.common.TTSUtils
;
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.*
;
import
ai.qiwu.com.tts_service.service.*
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.csv.CSVFormat
;
import
org.apache.commons.csv.CSVPrinter
;
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.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartHttpServletRequest
;
import
org.springframework.web.multipart.MultipartHttpServletRequest
;
...
@@ -16,16 +21,18 @@ import org.springframework.web.multipart.MultipartHttpServletRequest;
...
@@ -16,16 +21,18 @@ import org.springframework.web.multipart.MultipartHttpServletRequest;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.io.*
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.net.URLDecoder
;
import
java.net.URLDecoder
;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.nio.charset.Charset
;
import
java.nio.file.Files
;
import
java.nio.file.Files
;
import
java.nio.file.Path
;
import
java.nio.file.Paths
;
import
java.nio.file.Paths
;
import
java.nio.file.StandardCopyOption
;
import
java.nio.file.StandardCopyOption
;
import
java.util.*
;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -194,11 +201,103 @@ public class TTSController {
...
@@ -194,11 +201,103 @@ public class TTSController {
String
npcName
=
mulRequest
.
getParameter
(
"npcName"
);
String
npcName
=
mulRequest
.
getParameter
(
"npcName"
);
String
text
=
mulRequest
.
getParameter
(
"text"
);
String
text
=
mulRequest
.
getParameter
(
"text"
);
String
tid
=
mulRequest
.
getParameter
(
"tid"
);
String
tid
=
mulRequest
.
getParameter
(
"tid"
);
String
sampleRate
=
mulRequest
.
getParameter
(
"sampleRate"
);
String
bitRate
=
mulRequest
.
getParameter
(
"bitRate"
);
UploadOneSenData
data
=
new
UploadOneSenData
(
Integer
.
valueOf
(
tid
),
botName
,
npcName
,
text
,
file
);
UploadOneSenData
data
=
new
UploadOneSenData
(
Integer
.
valueOf
(
tid
),
botName
,
npcName
,
text
,
file
);
data
.
setBitRate
(
bitRate
);
data
.
setSampleRate
(
StringUtils
.
isBlank
(
sampleRate
)
?
44100
:
Integer
.
parseInt
(
sampleRate
));
ttService
.
uploadOneSen
(
data
,
response
,
request
.
getHeader
(
"Authorization"
));
ttService
.
uploadOneSen
(
data
,
response
,
request
.
getHeader
(
"Authorization"
));
}
}
@PutMapping
(
"/api/upload/record/one_sen"
)
public
ServerResponse
updateAudioConfig
(
@RequestBody
UploadOneSenData
data
)
{
return
ttService
.
changeOneSenAudioConfig
(
data
);
}
@GetMapping
(
"/api/upload/record/one_sen"
)
public
ServerResponse
getAudioConfig
(
String
botName
,
String
npcName
,
String
text
)
{
return
ttService
.
getOneSenAudioConfig
(
botName
,
npcName
,
text
);
}
// @GetMapping("/api/del/all/up")
public
ServerResponse
delAllUpAudio
()
throws
IOException
{
Set
<
String
>
onlinedNames
=
Initialize
.
getPersonInfoOnline
().
keySet
().
stream
().
filter
(
s
->
s
.
length
()
==
3
).
collect
(
Collectors
.
toSet
());
Files
.
list
(
Paths
.
get
(
"/root/TTS-service/audio"
)).
forEach
(
pt
->
{
try
{
Files
.
list
(
pt
).
filter
(
path
->
onlinedNames
.
contains
(
path
.
getFileName
().
toString
())).
forEach
(
path
->
FileUtil
.
deleteFile
(
path
.
toFile
()));
}
catch
(
IOException
e
)
{
log
.
error
(
ExceptionUtils
.
getStackTrace
(
e
));
}
});
return
ServerResponse
.
createBySuccess
();
}
// @GetMapping("/api/del/fragment")
public
ServerResponse
delAllFragment
()
throws
IOException
{
List
<
Path
>
botAccountPathList
=
Files
.
list
(
Paths
.
get
(
"/root/TTS-service/audio"
))
.
filter
(
path
->
!
StringUtils
.
startsWithAny
(
path
.
getFileName
().
toString
(),
"miao"
,
"mqw"
,
"test"
,
"tmp"
))
.
collect
(
Collectors
.
toList
());
for
(
Path
bpt:
botAccountPathList
)
{
List
<
Path
>
personPathList
=
Files
.
list
(
bpt
).
filter
(
path
->
!
StringUtils
.
equalsAny
(
path
.
getFileName
().
toString
(),
"xiaoai"
,
"record"
))
.
collect
(
Collectors
.
toList
());
for
(
Path
ppt:
personPathList
)
{
List
<
Path
>
moodPathList
=
Files
.
list
(
ppt
).
filter
(
path
->
{
boolean
result
=
Files
.
isDirectory
(
path
);
if
(!
result
)
{
try
{
Files
.
deleteIfExists
(
path
);
}
catch
(
IOException
e
)
{
log
.
error
(
"error:"
+
e
);
}
}
return
result
;
}).
collect
(
Collectors
.
toList
());
for
(
Path
mpt:
moodPathList
)
{
List
<
Path
>
mp3WavPathList
=
Files
.
list
(
mpt
).
filter
(
path
->
!
Files
.
isDirectory
(
path
)
&&
StringUtils
.
endsWithAny
(
path
.
getFileName
().
toString
(),
".wav"
,
".mp3"
))
.
collect
(
Collectors
.
toList
());
Map
<
String
,
Path
>
map
=
new
HashMap
<>();
String
filename
;
for
(
Path
mwpt:
mp3WavPathList
)
{
filename
=
mwpt
.
getFileName
().
toString
();
filename
=
filename
.
substring
(
0
,
filename
.
indexOf
(
"."
));
if
(
map
.
remove
(
filename
)
==
null
)
{
map
.
put
(
filename
,
mwpt
);
}
}
List
<
String
>
fragmentList
=
map
.
values
().
stream
().
map
(
path
->
path
.
toAbsolutePath
().
toString
()).
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
fragmentList
))
{
map
.
values
().
forEach
(
path
->
{
try
{
Files
.
deleteIfExists
(
path
);
}
catch
(
IOException
e
)
{
log
.
error
(
"del fragment path:"
+
e
);
}
});
buildFragmentCSV
(
fragmentList
);
}
}
}
}
log
.
warn
(
"delAllFragment end"
);
return
ServerResponse
.
createBySuccess
();
}
private
void
buildFragmentCSV
(
List
<
String
>
fragmentList
)
{
CSVFormat
format
;
if
(
Files
.
exists
(
Paths
.
get
(
"/root/TTS-service/fragment_del.csv"
)))
format
=
CSVFormat
.
DEFAULT
;
else
format
=
CSVFormat
.
DEFAULT
.
withHeader
(
"path"
);
try
(
CSVPrinter
csvPrinter
=
new
CSVPrinter
(
new
OutputStreamWriter
(
new
FileOutputStream
(
"/root/TTS-service/fragment_del.csv"
,
true
),
Charset
.
forName
(
"UTF-8"
)),
format
)){
for
(
String
s:
fragmentList
)
{
csvPrinter
.
printRecord
(
s
);
}
}
catch
(
IOException
e
)
{
log
.
error
(
"buildFragmentCSV error:"
+
e
);
}
}
// @PostMapping("/api/upload/record/one_npc")
// @PostMapping("/api/upload/record/one_npc")
// public void uploadOneNpc(MultipartFile file, String botName, String npcName,
// public void uploadOneNpc(MultipartFile file, String botName, String npcName,
// HttpServletResponse response) {
// HttpServletResponse response) {
...
@@ -217,7 +316,11 @@ public class TTSController {
...
@@ -217,7 +316,11 @@ public class TTSController {
MultipartFile
file
=
mulRequest
.
getFile
(
"file"
);
MultipartFile
file
=
mulRequest
.
getFile
(
"file"
);
String
botName
=
mulRequest
.
getParameter
(
"botName"
);
String
botName
=
mulRequest
.
getParameter
(
"botName"
);
String
npcName
=
mulRequest
.
getParameter
(
"npcName"
);
String
npcName
=
mulRequest
.
getParameter
(
"npcName"
);
String
sampleRate
=
mulRequest
.
getParameter
(
"sampleRate"
);
String
bitRate
=
mulRequest
.
getParameter
(
"bitRate"
);
UploadOneSenData
data
=
new
UploadOneSenData
(
botName
,
npcName
,
file
);
UploadOneSenData
data
=
new
UploadOneSenData
(
botName
,
npcName
,
file
);
data
.
setSampleRate
(
StringUtils
.
isBlank
(
sampleRate
)
?
44100
:
Integer
.
parseInt
(
sampleRate
));
data
.
setBitRate
(
bitRate
);
final
String
result
=
ttService
.
uploadOneNpc
(
data
,
response
,
request
.
getHeader
(
"Authorization"
));
final
String
result
=
ttService
.
uploadOneNpc
(
data
,
response
,
request
.
getHeader
(
"Authorization"
));
if
(
result
!=
null
)
{
if
(
result
!=
null
)
{
TTService
.
getPOOL
().
submit
(()
->
TTSUtils
.
deleteFile
(
new
File
(
result
)));
TTService
.
getPOOL
().
submit
(()
->
TTSUtils
.
deleteFile
(
new
File
(
result
)));
...
@@ -311,14 +414,15 @@ public class TTSController {
...
@@ -311,14 +414,15 @@ public class TTSController {
// }
// }
public
static
void
main
(
String
[]
args
)
throws
IOException
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
String
path
=
"/home/yf01/下载/yace/data/datum_"
;
String
text
=
"今天是第"
;
String
targetPath
=
"/home/yf01/data601_900/datum_"
;
String
text2
=
"6"
;
Files
.
createDirectories
(
Paths
.
get
(
"/home/yf01/data601_900"
));
String
text3
=
"天,知道吗?,"
;
String
s
;
String
text4
=
"知道"
;
for
(
int
i
=
1
;
i
<=
300
;
i
++)
{
s
=
path
+(
600
+
i
)+
".csv"
;
System
.
out
.
println
(
TTSUtils
.
buildMP3Filename
(
text
));
Files
.
copy
(
Paths
.
get
(
s
),
Paths
.
get
(
targetPath
+
i
+
".csv"
),
StandardCopyOption
.
REPLACE_EXISTING
);
System
.
out
.
println
(
TTSUtils
.
buildMP3Filename
(
text2
));
}
System
.
out
.
println
(
TTSUtils
.
buildMP3Filename
(
text3
));
System
.
out
.
println
(
TTSUtils
.
buildMP3Filename
(
text4
));
}
}
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/AudioConfigInfo.java
0 → 100644
View file @
544164f3
package
ai
.
qiwu
.
com
.
tts_service
.
pojo
.
upload
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* painter
* 20-9-2 下午7:48
*/
@Getter
@Setter
public
class
AudioConfigInfo
{
private
String
channel
;
private
String
sampleRate
;
private
String
duration
;
private
String
fileSize
;
private
String
bitRate
;
}
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadOneSenData.java
View file @
544164f3
...
@@ -19,6 +19,8 @@ public class UploadOneSenData {
...
@@ -19,6 +19,8 @@ public class UploadOneSenData {
private
String
botName
;
private
String
botName
;
private
String
npcName
;
private
String
npcName
;
private
String
text
;
private
String
text
;
private
Integer
sampleRate
=
44100
;
private
String
bitRate
=
"64K"
;
private
MultipartFile
file
;
private
MultipartFile
file
;
public
UploadOneSenData
()
{
public
UploadOneSenData
()
{
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadPlotImgResponse.java
0 → 100644
View file @
544164f3
package
ai
.
qiwu
.
com
.
tts_service
.
pojo
.
upload
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* painter
* 20-9-8 上午11:32
*/
@Getter
@Setter
public
class
UploadPlotImgResponse
{
private
String
absolutePath
;
private
String
relativePath
;
}
tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java
View file @
544164f3
...
@@ -114,9 +114,9 @@ public class Initialize implements InitializingBean {
...
@@ -114,9 +114,9 @@ public class Initialize implements InitializingBean {
/**
/**
* 线下服务地址,用于删除线下服务器上的缓存还有响应线下mp3文件的请求
* 线下服务地址,用于删除线下服务器上的缓存还有响应线下mp3文件的请求
*/
*/
public
static
final
String
OFFLINE_SERVER
;
static
final
String
OFFLINE_SERVER
;
public
static
final
String
ONLINE_CACHE_URL
;
static
final
String
ONLINE_CACHE_URL
;
/**
/**
* 第三方请求的标识,出现在tts_ls请求返回的.b64文件名列表和.b64文件数据中
* 第三方请求的标识,出现在tts_ls请求返回的.b64文件名列表和.b64文件数据中
*/
*/
...
@@ -146,11 +146,13 @@ public class Initialize implements InitializingBean {
...
@@ -146,11 +146,13 @@ public class Initialize implements InitializingBean {
static
final
String
AUDIO_GENERATE_SERVER
;
static
final
String
AUDIO_GENERATE_SERVER
;
public
static
final
int
XIAODU_TEXT_SIZE_LIMI
T
;
public
static
final
String
ZUUL_HOS
T
;
public
static
final
int
LIEH
U_TEXT_SIZE_LIMIT
;
// private static final int XIAOD
U_TEXT_SIZE_LIMIT;
public
static
final
int
US_TEXT_SIZE_LIMIT
;
// private static final int LIEHU_TEXT_SIZE_LIMIT;
// private static final int US_TEXT_SIZE_LIMIT;
/**
/**
* 静态代码块
* 静态代码块
...
@@ -176,10 +178,11 @@ public class Initialize implements InitializingBean {
...
@@ -176,10 +178,11 @@ public class Initialize implements InitializingBean {
delRecordCallbackUrl
=
Config
.
getProperty
(
"del_record_callback_url"
);
delRecordCallbackUrl
=
Config
.
getProperty
(
"del_record_callback_url"
);
record_callback_url
=
Config
.
getProperty
(
"record_callback_url"
);
record_callback_url
=
Config
.
getProperty
(
"record_callback_url"
);
AUDIO_GENERATE_SERVER
=
Config
.
getProperty
(
"audio_generate_server"
);
AUDIO_GENERATE_SERVER
=
Config
.
getProperty
(
"audio_generate_server"
);
ZUUL_HOST
=
Config
.
getProperty
(
"zuulHost"
);
XIAODU_TEXT_SIZE_LIMIT
=
Integer
.
parseInt
(
Config
.
getProperty
(
"xiaodu_text_size_limit"
,
"2040"
));
//
XIAODU_TEXT_SIZE_LIMIT = Integer.parseInt(Config.getProperty("xiaodu_text_size_limit", "2040"));
LIEHU_TEXT_SIZE_LIMIT
=
Integer
.
parseInt
(
Config
.
getProperty
(
"xiaoai_text_size_limit"
,
"1500"
));
//
LIEHU_TEXT_SIZE_LIMIT = Integer.parseInt(Config.getProperty("xiaoai_text_size_limit", "1500"));
US_TEXT_SIZE_LIMIT
=
Integer
.
parseInt
(
Config
.
getProperty
(
"us_text_size_limit"
,
"495"
));
//
US_TEXT_SIZE_LIMIT = Integer.parseInt(Config.getProperty("us_text_size_limit", "495"));
// 根据数据库表中get_online字段的值来抉择不同的服务器
// 根据数据库表中get_online字段的值来抉择不同的服务器
String
[]
online_sever_list
=
Config
.
getProperty
(
"online_sever"
).
split
(
","
);
String
[]
online_sever_list
=
Config
.
getProperty
(
"online_sever"
).
split
(
","
);
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java
View file @
544164f3
...
@@ -2,6 +2,7 @@ package ai.qiwu.com.tts_service.service;
...
@@ -2,6 +2,7 @@ package ai.qiwu.com.tts_service.service;
import
ai.qiwu.com.tts_service.common.*
;
import
ai.qiwu.com.tts_service.common.*
;
import
ai.qiwu.com.tts_service.pojo.*
;
import
ai.qiwu.com.tts_service.pojo.*
;
import
ai.qiwu.com.tts_service.pojo.upload.AudioConfigInfo
;
import
ai.qiwu.com.tts_service.pojo.upload.UploadCallbackResponse
;
import
ai.qiwu.com.tts_service.pojo.upload.UploadCallbackResponse
;
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.baidu.ThirdPartyService
;
import
ai.qiwu.com.tts_service.service.baidu.ThirdPartyService
;
...
@@ -1490,6 +1491,74 @@ public class TTService {
...
@@ -1490,6 +1491,74 @@ public class TTService {
initialize
.
updateCache
();
initialize
.
updateCache
();
}
}
public
ServerResponse
getOneSenAudioConfig
(
String
botName
,
String
npcName
,
String
text
)
{
if
(
StringUtils
.
isAnyBlank
(
botName
,
npcName
,
text
))
{
return
ServerResponse
.
createByErrorEnum
(
ResponseCode
.
DATA_IS_WRONG
);
}
String
path
=
StringUtils
.
join
(
new
String
[]{
Initialize
.
getAudioDir
(),
botName
,
Initialize
.
getUploadedDir
(),
npcName
,
TTSUtils
.
buildMP3Filename
(
text
)},
File
.
separator
);
if
(!
Files
.
exists
(
Paths
.
get
(
path
)))
{
return
ServerResponse
.
createByErrorMessage
(
"没有找到文本的人工语音文件,请确定您已上传过该文件"
);
}
String
command
=
"soxi "
+
path
;
String
response
=
CallPython
.
soxiGetAudioConfig
(
command
);
if
(
StringUtils
.
isNotBlank
(
response
))
{
int
channelsI
=
response
.
indexOf
(
"Channels"
);
int
sampleRateI
=
response
.
indexOf
(
"Sample Rate"
,
channelsI
);
String
channel
=
response
.
substring
(
response
.
indexOf
(
":"
,
channelsI
)+
1
,
sampleRateI
).
trim
();
String
sampleRate
=
response
.
substring
(
response
.
indexOf
(
":"
,
sampleRateI
)+
1
,
response
.
indexOf
(
"Precision"
)).
trim
();
int
durationI
=
response
.
indexOf
(
"Duration"
,
sampleRateI
);
String
duration
=
response
.
substring
(
response
.
indexOf
(
":"
,
durationI
)+
1
,
response
.
indexOf
(
"="
,
durationI
)).
trim
();
int
fileSizeI
=
response
.
indexOf
(
"File Size"
,
durationI
);
int
bitRateI
=
response
.
indexOf
(
"Bit Rate"
,
fileSizeI
);
String
fileSize
=
response
.
substring
(
response
.
indexOf
(
":"
,
fileSizeI
)+
1
,
bitRateI
).
trim
();
String
bitRate
=
response
.
substring
(
response
.
indexOf
(
":"
,
bitRateI
)+
1
,
response
.
indexOf
(
"Sample Encoding"
,
bitRateI
)).
trim
();
AudioConfigInfo
config
=
new
AudioConfigInfo
();
config
.
setBitRate
(
bitRate
);
config
.
setChannel
(
channel
);
config
.
setDuration
(
duration
);
config
.
setFileSize
(
fileSize
);
config
.
setSampleRate
(
sampleRate
);
return
ServerResponse
.
createBySuccess
(
config
);
}
return
ServerResponse
.
createBySuccess
(
response
);
}
public
ServerResponse
changeOneSenAudioConfig
(
UploadOneSenData
data
)
{
if
(
StringUtils
.
isAnyBlank
(
data
.
getBotName
(),
data
.
getNpcName
(),
data
.
getText
()))
{
return
ServerResponse
.
createByErrorEnum
(
ResponseCode
.
DATA_IS_WRONG
);
}
String
path
=
StringUtils
.
join
(
new
String
[]{
Initialize
.
getAudioDir
(),
data
.
getBotName
(),
Initialize
.
getUploadedDir
(),
data
.
getNpcName
(),
TTSUtils
.
buildMP3Filename
(
data
.
getText
())},
File
.
separator
);
if
(!
Files
.
exists
(
Paths
.
get
(
path
)))
{
return
ServerResponse
.
createByErrorMessage
(
"没有找到文本的人工语音文件,请确定您已上传过该文件"
);
}
int
sampleRate
=
data
.
getSampleRate
()
==
null
?
44100
:
data
.
getSampleRate
();
String
bitRate
=
StringUtils
.
isBlank
(
data
.
getBitRate
())
?
"64k"
:
data
.
getBitRate
();
switch
(
bitRate
)
{
case
"32k"
:
bitRate
=
"32k"
;
break
;
case
"64k"
:
bitRate
=
"64k"
;
break
;
case
"128k"
:
bitRate
=
"128k"
;
break
;
case
"256k"
:
bitRate
=
"256k"
;
break
;
case
"320k"
:
bitRate
=
"320k"
;
break
;
default
:
bitRate
=
"64k"
;
}
switch
(
sampleRate
)
{
case
8000
:
sampleRate
=
8000
;
break
;
case
11025
:
sampleRate
=
11025
;
break
;
case
22050
:
sampleRate
=
22050
;
break
;
case
32000
:
sampleRate
=
32000
;
break
;
case
44100
:
sampleRate
=
44100
;
break
;
case
48000
:
sampleRate
=
48000
;
break
;
default
:
sampleRate
=
44100
;
}
if
(
TTSUtils
.
changeAudioConfig
(
sampleRate
,
bitRate
,
path
))
{
return
ServerResponse
.
createBySuccess
();
}
return
ServerResponse
.
createByError
();
}
/**
/**
* 上传单个音频文件;
* 上传单个音频文件;
* 参数说明:tid:句子id; botName:作品标识; npcName:npc名称; text:语音文件对应的句子; file:录音文件
* 参数说明:tid:句子id; botName:作品标识; npcName:npc名称; text:语音文件对应的句子; file:录音文件
...
@@ -1512,23 +1581,46 @@ public class TTService {
...
@@ -1512,23 +1581,46 @@ public class TTService {
// 删除之前已存在的文件
// 删除之前已存在的文件
if
(
TTSUtils
.
doesFileExist
(
filename
)
)
{
if
(
TTSUtils
.
doesFileExist
(
filename
)
)
{
if
(!
new
File
(
filename
).
delete
())
{
if
(!
new
File
(
filename
).
delete
())
{
TTServiceUtil
.
buildUploadResponse
(
response
,
new
TTSResponse
(
5
55
,
"删除已存在的文件失败:"
+
filename
),
555
);
TTServiceUtil
.
buildUploadResponse
(
response
,
new
TTSResponse
(
5
00
,
"删除已存在的文件失败:"
+
filename
),
555
);
return
;
return
;
}
}
POOL
.
submit
(()
->
new
File
(
new
StringBuilder
(
filename
).
append
(
".b64"
).
toString
()).
delete
());
POOL
.
submit
(()
->
new
File
(
new
StringBuilder
(
filename
).
append
(
".b64"
).
toString
()).
delete
());
}
}
// 创建目录
// 创建目录
else
if
(!
TTSUtils
.
makedir
(
folder
))
{
else
if
(!
TTSUtils
.
makedir
(
folder
))
{
TTServiceUtil
.
buildUploadResponse
(
response
,
new
TTSResponse
(
5
55
,
"创建目录失败:"
+
folder
),
555
);
TTServiceUtil
.
buildUploadResponse
(
response
,
new
TTSResponse
(
5
00
,
"创建目录失败:"
+
folder
),
555
);
return
;
return
;
}
}
// 写入文件
// 写入文件
try
{
try
{
data
.
getFile
().
transferTo
(
new
File
(
filename
));
data
.
getFile
().
transferTo
(
new
File
(
filename
));
int
sampleRate
=
data
.
getSampleRate
()
==
null
?
44100
:
data
.
getSampleRate
();
String
bitRate
=
StringUtils
.
isBlank
(
data
.
getBitRate
())
?
"64k"
:
data
.
getBitRate
();
switch
(
bitRate
)
{
case
"32k"
:
bitRate
=
"32k"
;
break
;
case
"64k"
:
bitRate
=
"64k"
;
break
;
case
"128k"
:
bitRate
=
"128k"
;
break
;
case
"256k"
:
bitRate
=
"256k"
;
break
;
case
"320k"
:
bitRate
=
"320k"
;
break
;
default
:
bitRate
=
"64k"
;
}
switch
(
sampleRate
)
{
case
8000
:
sampleRate
=
8000
;
break
;
case
11025
:
sampleRate
=
11025
;
break
;
case
22050
:
sampleRate
=
22050
;
break
;
case
32000
:
sampleRate
=
32000
;
break
;
case
44100
:
sampleRate
=
44100
;
break
;
case
48000
:
sampleRate
=
48000
;
break
;
default
:
sampleRate
=
44100
;
}
if
(!
TTSUtils
.
changeAudioConfig
(
sampleRate
,
bitRate
,
filename
))
{
TTServiceUtil
.
buildUploadResponse
(
response
,
new
TTSResponse
(
500
,
"修改音频采样率/比特率数据失败"
),
500
);
return
;
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
log
.
error
(
"写入文件出错:{}"
,
ExceptionUtils
.
getStackTrace
(
e
));
log
.
error
(
"写入文件出错:{}"
,
ExceptionUtils
.
getStackTrace
(
e
));
}
}
String
msg
=
""
;
String
msg
;
// 回调http://localhost:18082/text/offline/upload/callback,无需管其是否成功
// 回调http://localhost:18082/text/offline/upload/callback,无需管其是否成功
try
{
try
{
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
...
@@ -1831,6 +1923,30 @@ public class TTService {
...
@@ -1831,6 +1923,30 @@ public class TTService {
// 判断该文件的编码
// 判断该文件的编码
String
encoding
=
TTSUtils
.
charset
(
csvFile
);
String
encoding
=
TTSUtils
.
charset
(
csvFile
);
int
sampleRate
=
data
.
getSampleRate
()
==
null
?
44100
:
data
.
getSampleRate
();
String
bitRate
=
StringUtils
.
isBlank
(
data
.
getBitRate
())
?
"64k"
:
data
.
getBitRate
();
switch
(
bitRate
)
{
case
"32k"
:
bitRate
=
"32k"
;
break
;
case
"64k"
:
bitRate
=
"64k"
;
break
;
case
"128k"
:
bitRate
=
"128k"
;
break
;
case
"256k"
:
bitRate
=
"256k"
;
break
;
case
"320k"
:
bitRate
=
"320k"
;
break
;
default
:
bitRate
=
"64k"
;
}
switch
(
sampleRate
)
{
case
8000
:
sampleRate
=
8000
;
break
;
case
11025
:
sampleRate
=
11025
;
break
;
case
22050
:
sampleRate
=
22050
;
break
;
case
32000
:
sampleRate
=
32000
;
break
;
case
44100
:
sampleRate
=
44100
;
break
;
case
47250
:
sampleRate
=
47250
;
break
;
case
48000
:
sampleRate
=
48000
;
break
;
case
50000
:
sampleRate
=
50000
;
break
;
case
88200
:
sampleRate
=
88200
;
break
;
case
96000
:
sampleRate
=
96000
;
break
;
default
:
sampleRate
=
44100
;
}
// 意料之外的错误发生,无法判断程序进度,记录该种情况最后根据情况返回相应的信息
// 意料之外的错误发生,无法判断程序进度,记录该种情况最后根据情况返回相应的信息
final
List
<
String
>
needDeleteB64File
=
new
ArrayList
<>();
final
List
<
String
>
needDeleteB64File
=
new
ArrayList
<>();
Set
<
String
>
successUpLoadFileIds
=
new
HashSet
<>();
Set
<
String
>
successUpLoadFileIds
=
new
HashSet
<>();
...
@@ -1882,8 +1998,14 @@ public class TTService {
...
@@ -1882,8 +1998,14 @@ public class TTService {
needDeleteB64File
.
add
(
usFilename
+
".b64"
);
needDeleteB64File
.
add
(
usFilename
+
".b64"
);
try
{
try
{
Files
.
copy
(
new
File
(
fileInPackage
).
toPath
(),
usFile
.
toPath
());
Files
.
copy
(
new
File
(
fileInPackage
).
toPath
(),
usFile
.
toPath
());
boolean
bn
=
successUpLoadFileIds
.
add
(
record
.
get
(
0
));
if
(
TTSUtils
.
changeAudioConfig
(
sampleRate
,
bitRate
,
usFilename
))
{
if
(!
bn
)
noeTextSameId
++;
boolean
bn
=
successUpLoadFileIds
.
add
(
record
.
get
(
0
));
if
(!
bn
)
noeTextSameId
++;
}
else
{
log
.
warn
(
"打包上传音频转换采样率/比特率数据失败,"
+
usFilename
);
failList
.
add
(
record
.
get
(
0
));
textSet
.
remove
(
record
.
get
(
1
));
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
failList
.
add
(
record
.
get
(
0
));
failList
.
add
(
record
.
get
(
0
));
textSet
.
remove
(
record
.
get
(
1
));
textSet
.
remove
(
record
.
get
(
1
));
...
@@ -2020,7 +2142,7 @@ public class TTService {
...
@@ -2020,7 +2142,7 @@ public class TTService {
TTServiceUtil
.
buildUploadResponse
(
response
,
new
TTSResponse
(
200
,
info
),
200
);
TTServiceUtil
.
buildUploadResponse
(
response
,
new
TTSResponse
(
200
,
info
),
200
);
}
}
}
else
{
}
else
{
if
(
failList
.
get
(
0
).
equals
(
"内部代号"
))
failList
.
remove
(
0
);
if
(
"内部代号"
.
equals
(
failList
.
get
(
0
)
))
failList
.
remove
(
0
);
if
(
failList
.
size
()
==
0
)
{
if
(
failList
.
size
()
==
0
)
{
if
(
sum
+
1
==
all
)
{
if
(
sum
+
1
==
all
)
{
TTServiceUtil
.
buildUploadResponse
(
response
,
new
TTSResponse
(
200
,
"全部成功"
),
200
);
TTServiceUtil
.
buildUploadResponse
(
response
,
new
TTSResponse
(
200
,
"全部成功"
),
200
);
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java
View file @
544164f3
...
@@ -196,7 +196,7 @@ public class TTServiceEdition2 {
...
@@ -196,7 +196,7 @@ public class TTServiceEdition2 {
public
void
ttsAudioGet
(
String
filename
,
Integer
exist
,
String
_type
,
HttpServletResponse
response
)
{
public
void
ttsAudioGet
(
String
filename
,
Integer
exist
,
String
_type
,
HttpServletResponse
response
)
{
boolean
tmp
=
StringUtils
.
startsWith
(
filename
,
"/tmp"
);
boolean
tmp
=
StringUtils
.
startsWith
(
filename
,
"/tmp"
);
if
(
StringUtils
.
endsWith
(
filename
,
".mp3"
))
{
if
(
StringUtils
.
endsWith
(
filename
,
".mp3"
))
{
String
filepath
=
Initialize
.
getAudioDir
()
+
filename
;
String
filepath
=
Initialize
.
AUDIO_DIR
+
filename
;
Path
pt
=
Paths
.
get
(
filepath
);
Path
pt
=
Paths
.
get
(
filepath
);
// exist == null 表明调用时确定已存在
// exist == null 表明调用时确定已存在
if
(
exist
==
null
)
{
if
(
exist
==
null
)
{
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java
View file @
544164f3
...
@@ -167,7 +167,10 @@ public class Oauth2Controller {
...
@@ -167,7 +167,10 @@ public class Oauth2Controller {
if
(
code
==
null
&&
refresh_token
!=
null
)
{
if
(
code
==
null
&&
refresh_token
!=
null
)
{
refresh_token
=
refresh_token
.
substring
(
refresh_token
.
lastIndexOf
(
","
)+
1
);
refresh_token
=
refresh_token
.
substring
(
refresh_token
.
lastIndexOf
(
","
)+
1
);
TokenResponse
tokenResponse
=
LoadBySMS
.
getTokenByRefreshToken
(
refresh_token
);
TokenResponse
tokenResponse
=
LoadBySMS
.
getTokenByRefreshToken
(
refresh_token
);
if
(
tokenResponse
==
null
)
return
null
;
// log.warn("refreshToken:"+tokenResponse);
if
(
tokenResponse
==
null
)
{
return
new
TokenDuerosResponse
();
}
TokenDuerosResponse
response
=
new
TokenDuerosResponse
();
TokenDuerosResponse
response
=
new
TokenDuerosResponse
();
response
.
setAccess_token
(
tokenResponse
.
getAccessToken
());
response
.
setAccess_token
(
tokenResponse
.
getAccessToken
());
response
.
setRefresh_token
(
tokenResponse
.
getRefreshToken
());
response
.
setRefresh_token
(
tokenResponse
.
getRefreshToken
());
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/Dpl2Service.java
View file @
544164f3
...
@@ -37,6 +37,7 @@ import com.baidu.dueros.data.response.directive.dpl.ExecuteCommands;
...
@@ -37,6 +37,7 @@ import com.baidu.dueros.data.response.directive.dpl.ExecuteCommands;
import
com.baidu.dueros.data.response.directive.dpl.RenderDocument
;
import
com.baidu.dueros.data.response.directive.dpl.RenderDocument
;
import
com.baidu.dueros.data.response.directive.dpl.commands.ScrollToElementCommand
;
import
com.baidu.dueros.data.response.directive.dpl.commands.ScrollToElementCommand
;
import
com.baidu.dueros.data.response.directive.dpl.commands.ScrollToIndexCommand
;
import
com.baidu.dueros.data.response.directive.dpl.commands.ScrollToIndexCommand
;
import
com.baidu.dueros.data.response.directive.dpl.commands.UpdateDataSourceCommand
;
import
com.baidu.dueros.data.response.directive.dpl.event.UserEvent
;
import
com.baidu.dueros.data.response.directive.dpl.event.UserEvent
;
import
com.baidu.dueros.data.response.directive.pay.Charge
;
import
com.baidu.dueros.data.response.directive.pay.Charge
;
import
com.baidu.dueros.model.Response
;
import
com.baidu.dueros.model.Response
;
...
@@ -132,19 +133,18 @@ public class Dpl2Service extends BaseBot {
...
@@ -132,19 +133,18 @@ public class Dpl2Service extends BaseBot {
// 历史记录,收藏记录,送花数,郊游天下id
// 历史记录,收藏记录,送花数,郊游天下id
final
String
accessToken
=
getAccessToken
();
final
String
accessToken
=
getAccessToken
();
final
String
userId
=
customUserId
();
final
String
userId
=
customUserId
();
RequestTerminal
.
backRequestByChannel
(
customUserId
(),
channel
);
if
(
accessToken
==
null
)
{
POOL
.
submit
(()
->
{
DplbotServiceUtil
.
onLunchFillUserBehaviorDataInMaster
(
userId
,
channel
,
null
,
false
);
if
(
accessToken
==
null
)
{
}
else
{
DplbotServiceUtil
.
onLunchFillUserBehaviorDataInMaster
(
userId
,
channel
,
null
,
false
);
UserBehaviorData
data
=
DplbotServiceUtil
.
getRedisTemplate
().
opsForValue
().
get
(
userId
);
}
else
{
String
jytUserId
=
null
;
UserBehaviorData
data
=
DplbotServiceUtil
.
getRedisTemplate
().
opsForValue
().
get
(
userId
);
if
(
data
!=
null
)
jytUserId
=
data
.
getJytUserId
();
String
jytUserId
=
null
;
if
(
jytUserId
==
null
)
jytUserId
=
DplbotServiceUtil
.
getUserIdByToken
(
accessToken
,
channel
,
userId
);
if
(
data
!=
null
)
jytUserId
=
data
.
getJytUserId
();
setSessionAttribute
(
"userId"
,
jytUserId
);
if
(
jytUserId
==
null
)
jytUserId
=
DplbotServiceUtil
.
getUserIdByToken
(
accessToken
,
channel
,
userId
);
UserBehaviorData
behaviorData
=
DplbotServiceUtil
.
onLunchFillUserBehaviorDataInMaster
(
userId
,
channel
,
jytUserId
,
true
);
UserBehaviorData
behaviorData
=
DplbotServiceUtil
.
onLunchFillUserBehaviorDataInMaster
(
userId
,
channel
,
jytUserId
,
true
);
log
.
info
(
"onLunch data:"
+
behaviorData
);
log
.
info
(
"onLunch data:"
+
behaviorData
);
}
}
POOL
.
submit
(()
->
RequestTerminal
.
backRequestByChannel
(
userId
,
channel
));
});
setSessionAttribute
(
BACK_TRACE
,
null
);
setSessionAttribute
(
BACK_TRACE
,
null
);
return
new
Response
();
return
new
Response
();
}
}
...
@@ -236,7 +236,7 @@ public class Dpl2Service extends BaseBot {
...
@@ -236,7 +236,7 @@ public class Dpl2Service extends BaseBot {
case
Constants
.
PRE_PRODUCT_IMG
:
return
dealOpenProductDetail
(
ScheduleServiceNew
.
getProjectByName
(
componentId
.
substring
(
5
)));
case
Constants
.
PRE_PRODUCT_IMG
:
return
dealOpenProductDetail
(
ScheduleServiceNew
.
getProjectByName
(
componentId
.
substring
(
5
)));
case
Constants
.
PRE_ENTER_PRODUCT
:
return
directInProduct
(
componentId
.
substring
(
5
));
case
Constants
.
PRE_ENTER_PRODUCT
:
return
directInProduct
(
componentId
.
substring
(
5
));
case
FLOWE
:
return
dealSendFlowerIntent
(
customUserId
(),
"1"
);
case
FLOWE
:
return
dealSendFlowerIntent
(
customUserId
(),
"1"
);
case
PRE_COLLE
:
return
dealCollectOrUnCollectIntent
(
"colleCo"
.
equals
(
componentId
),
null
);
case
PRE_COLLE
:
return
dealCollectOrUnCollectIntent
(
"colleCo"
.
equals
(
componentId
),
null
,
true
);
case
PRE_CATEGORY
:
return
openCategoryProductList
(
componentId
.
substring
(
5
),
1
);
case
PRE_CATEGORY
:
return
openCategoryProductList
(
componentId
.
substring
(
5
),
1
);
}
}
}
}
...
@@ -264,13 +264,13 @@ public class Dpl2Service extends BaseBot {
...
@@ -264,13 +264,13 @@ public class Dpl2Service extends BaseBot {
log
.
error
(
"onNextRequiredEvent 没有找到推荐bot的话语:"
+
endData
);
log
.
error
(
"onNextRequiredEvent 没有找到推荐bot的话语:"
+
endData
);
return
new
Response
();
return
new
Response
();
}
}
this
.
setExpectSpeech
(
true
);
return
dealRecommend
(
null
,
datum
.
getText
(),
path
);
return
dealRecommend
(
null
,
datum
.
getText
(),
path
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
warn
(
ExceptionUtils
.
getStackTrace
(
e
));
log
.
warn
(
ExceptionUtils
.
getStackTrace
(
e
));
}
}
}
else
{
setExpectSpeech
(
true
);
}
}
this
.
setExpectSpeech
(
true
);
return
new
Response
();
return
new
Response
();
}
}
...
@@ -327,22 +327,21 @@ public class Dpl2Service extends BaseBot {
...
@@ -327,22 +327,21 @@ public class Dpl2Service extends BaseBot {
protected
Response
onChargeEvent
(
ChargeEvent
chargeEvent
)
{
protected
Response
onChargeEvent
(
ChargeEvent
chargeEvent
)
{
String
token
=
chargeEvent
.
getToken
();
String
token
=
chargeEvent
.
getToken
();
String
[]
tokens
=
token
.
split
(
File
.
separator
);
String
[]
tokens
=
token
.
split
(
File
.
separator
);
log
.
info
(
"onChargeEvent token:"
+
token
);
//
log.info("onChargeEvent token:"+token);
final
String
botAccount
=
tokens
[
0
];
final
String
botAccount
=
tokens
[
0
];
String
str
=
"恭喜您支付成功,开始体验吧"
;
String
str
=
"恭喜您支付成功,开始体验吧"
;
if
(!
isNoScreenRequest
())
{
if
(!
isNoScreenRequest
())
{
String
userId
=
getUserId
();
String
jytUserId
=
getSessionAttribute
(
"userId"
);
String
jytUserId
=
getSessionAttribute
(
"userId"
);
Boolean
response
=
DplbotServiceUtil
.
dealChargeCallback
(
chargeEvent
,
userId
,
getAccessToken
(),
Boolean
response
=
DplbotServiceUtil
.
dealChargeCallback
(
chargeEvent
,
customUserId
()
,
getAccessToken
(),
jytUserId
,
ScheduleServiceNew
.
getWorkNameByBotAccount
(
botAccount
),
channel
);
jytUserId
,
ScheduleServiceNew
.
getWorkNameByBotAccount
(
botAccount
),
channel
);
log
.
info
(
"onChargeEvent response:"
+
response
);
//
log.info("onChargeEvent response:"+response);
if
(
Boolean
.
TRUE
.
equals
(
response
))
{
if
(
Boolean
.
TRUE
.
equals
(
response
))
{
DplbotServiceUtil
.
updateUserFlower
(
userId
,
Integer
.
parseInt
(
tokens
[
1
]),
channel
,
long
flowerNums
=
DplbotServiceUtil
.
updateUserFlower
(
customUserId
()
,
Integer
.
parseInt
(
tokens
[
1
]),
channel
,
jytUserId
,
getAccessToken
(),
botAccount
);
jytUserId
,
getAccessToken
(),
botAccount
);
try
{
try
{
if
(
"0"
.
equals
(
tokens
[
2
]))
{
if
(
"0"
.
equals
(
tokens
[
2
]))
{
log
.
info
(
"onChargeEvent in project token:{}"
,
token
);
//
log.info("onChargeEvent in project token:{}",token);
dealOpenProductDetail
(
ScheduleServiceNew
.
getProjectByBotAccount
(
botAccount
));
dealOpenProductDetail
(
ScheduleServiceNew
.
getProjectByBotAccount
(
botAccount
)
,
flowerNums
,
jytUserId
,
customUserId
()
);
str
=
"恭喜您支付成功"
;
str
=
"恭喜您支付成功"
;
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -519,8 +518,8 @@ public class Dpl2Service extends BaseBot {
...
@@ -519,8 +518,8 @@ public class Dpl2Service extends BaseBot {
case
"openRank"
:
return
dealRankIntent
(
1
);
case
"openRank"
:
return
dealRankIntent
(
1
);
case
"openNum"
:
return
dealOpenNumIntent
(
end
+
1
==
txt
.
length
()
?
"1"
:
txt
.
substring
(
end
+
1
));
case
"openNum"
:
return
dealOpenNumIntent
(
end
+
1
==
txt
.
length
()
?
"1"
:
txt
.
substring
(
end
+
1
));
case
"jump"
:
return
dealJumpIntent
(
end
+
1
==
txt
.
length
()
?
"1"
:
txt
.
substring
(
end
+
1
));
case
"jump"
:
return
dealJumpIntent
(
end
+
1
==
txt
.
length
()
?
"1"
:
txt
.
substring
(
end
+
1
));
case
"store"
:
return
dealCollectOrUnCollectIntent
(
true
,
end
+
1
==
txt
.
length
()
?
null
:
txt
.
substring
(
end
+
1
));
case
"store"
:
return
dealCollectOrUnCollectIntent
(
true
,
end
+
1
==
txt
.
length
()
?
null
:
txt
.
substring
(
end
+
1
)
,
false
);
case
"unStore"
:
return
dealCollectOrUnCollectIntent
(
false
,
end
+
1
==
txt
.
length
()
?
null
:
txt
.
substring
(
end
+
1
));
case
"unStore"
:
return
dealCollectOrUnCollectIntent
(
false
,
end
+
1
==
txt
.
length
()
?
null
:
txt
.
substring
(
end
+
1
)
,
false
);
case
"flower"
:
return
dealSendFlowerIntent
(
userId
,
end
+
1
==
txt
.
length
()
?
"1"
:
txt
.
substring
(
end
+
1
));
case
"flower"
:
return
dealSendFlowerIntent
(
userId
,
end
+
1
==
txt
.
length
()
?
"1"
:
txt
.
substring
(
end
+
1
));
case
"category"
:
return
openCategory
();
case
"category"
:
return
openCategory
();
case
"up"
:
return
dealUpOrDownCommand
(
true
,
curFirstRowIndex
);
case
"up"
:
return
dealUpOrDownCommand
(
true
,
curFirstRowIndex
);
...
@@ -557,7 +556,7 @@ public class Dpl2Service extends BaseBot {
...
@@ -557,7 +556,7 @@ public class Dpl2Service extends BaseBot {
vo
.
setAipioneerUsername
(
centralResponse
.
getAipioneerUsername
());
vo
.
setAipioneerUsername
(
centralResponse
.
getAipioneerUsername
());
stringRedisTemplate
.
opsForValue
().
set
(
SpiritRedisService
.
PREFIX_REDIS
+
userId
+
"_end"
,
stringRedisTemplate
.
opsForValue
().
set
(
SpiritRedisService
.
PREFIX_REDIS
+
userId
+
"_end"
,
ScheduleServiceNew
.
objectMapper
.
writerWithDefaultPrettyPrinter
().
writeValueAsString
(
vo
),
ScheduleServiceNew
.
objectMapper
.
writerWithDefaultPrettyPrinter
().
writeValueAsString
(
vo
),
50
,
TimeUnit
.
SECOND
S
);
3
,
TimeUnit
.
MINUTE
S
);
endMark
=
true
;
endMark
=
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"end recommend json error:"
+
e
);
log
.
error
(
"end recommend json error:"
+
e
);
...
@@ -582,7 +581,12 @@ public class Dpl2Service extends BaseBot {
...
@@ -582,7 +581,12 @@ public class Dpl2Service extends BaseBot {
}
}
String
path
;
String
path
;
try
{
try
{
path
=
OkHttp3Utils
.
doPostJsonStr
(
ScheduleServiceNew
.
BASE_AUDIO_URL
+
"/api/audio"
,
data
);
if
(
endMark
)
{
path
=
OkHttp3Utils
.
doPostJsonStr
(
ScheduleServiceNew
.
BASE_AUDIO_URL
+
"/api/audio"
,
ScheduleServiceNew
.
objectMapper
.
writeValueAsString
(
centralResponse
));
}
else
{
path
=
OkHttp3Utils
.
doPostJsonStr
(
ScheduleServiceNew
.
BASE_AUDIO_URL
+
"/api/audio"
,
data
);
}
// log.info("================path:{}, BASE_AUDIO_URL:{}",path, ScheduleServiceNew.BASE_AUDIO_URL);
// log.info("================path:{}, BASE_AUDIO_URL:{}",path, ScheduleServiceNew.BASE_AUDIO_URL);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
warn
(
"没有获取到TTS返回地址"
);
log
.
warn
(
"没有获取到TTS返回地址"
);
...
@@ -752,12 +756,12 @@ public class Dpl2Service extends BaseBot {
...
@@ -752,12 +756,12 @@ public class Dpl2Service extends BaseBot {
// ====================================collect unCollect ======================
// ====================================collect unCollect ======================
private
Response
dealCollectOrUnCollectIntent
(
boolean
collect
,
String
workName
)
{
private
Response
dealCollectOrUnCollectIntent
(
boolean
collect
,
String
workName
,
boolean
userEvent
)
{
if
(
getAccessToken
()
==
null
)
{
if
(
getAccessToken
()
==
null
)
{
setExpectSpeech
(
true
);
setExpectSpeech
(
true
);
return
buildTextResponse
(
"主人,该功能需要登录,请说登录"
);
return
buildTextResponse
(
"主人,该功能需要登录,请说登录"
);
}
}
//
boolean inProductInfo = false;
boolean
inProductInfo
=
false
;
// boolean inPlayInfo = false;
// boolean inPlayInfo = false;
String
botAccount
;
String
botAccount
;
String
trace
=
getSessionAttribute
(
BACK_TRACE
);
String
trace
=
getSessionAttribute
(
BACK_TRACE
);
...
@@ -782,7 +786,7 @@ public class Dpl2Service extends BaseBot {
...
@@ -782,7 +786,7 @@ public class Dpl2Service extends BaseBot {
// inPlayInfo = true;
// inPlayInfo = true;
}
}
else
{
else
{
//
inProductInfo = true;
inProductInfo
=
true
;
botAccount
=
trace
.
substring
(
2
);
botAccount
=
trace
.
substring
(
2
);
}
}
}
}
...
@@ -801,11 +805,11 @@ public class Dpl2Service extends BaseBot {
...
@@ -801,11 +805,11 @@ public class Dpl2Service extends BaseBot {
if
(!
result
)
{
if
(!
result
)
{
return
buildTextResponse
(
"不好意思主人,晓悟出了点问题没有取消成功"
);
return
buildTextResponse
(
"不好意思主人,晓悟出了点问题没有取消成功"
);
}
}
String
botName
=
ScheduleServiceNew
.
getWorkName
ByBotAccount
(
botAccount
);
ProjectData
projectData
=
ScheduleServiceNew
.
getProject
ByBotAccount
(
botAccount
);
// if (
inProductInfo) {
if
(!
userEvent
&&
inProductInfo
)
{
// sss
dealOpenProductDetail
(
projectData
,
false
);
//
}
}
return
buildTextResponse
(
String
.
format
(
UN_COLLECT_BOT_WORD_MG
,
botName
));
return
buildTextResponse
(
String
.
format
(
UN_COLLECT_BOT_WORD_MG
,
projectData
.
getName
()
));
}
}
}
else
{
}
else
{
if
(
collect
)
{
if
(
collect
)
{
...
@@ -814,11 +818,11 @@ public class Dpl2Service extends BaseBot {
...
@@ -814,11 +818,11 @@ public class Dpl2Service extends BaseBot {
if
(!
result
)
{
if
(!
result
)
{
return
buildTextResponse
(
"不好意思主人,晓悟出了点问题没有收藏成功"
);
return
buildTextResponse
(
"不好意思主人,晓悟出了点问题没有收藏成功"
);
}
}
String
botName
=
ScheduleServiceNew
.
getWorkName
ByBotAccount
(
botAccount
);
ProjectData
projectData
=
ScheduleServiceNew
.
getProject
ByBotAccount
(
botAccount
);
// if (
inProductInfo) {
if
(!
userEvent
&&
inProductInfo
)
{
// sss
dealOpenProductDetail
(
projectData
,
true
);
//
}
}
return
buildTextResponse
(
String
.
format
(
COLLECT_BOT_WORD_MG
,
botName
));
return
buildTextResponse
(
String
.
format
(
COLLECT_BOT_WORD_MG
,
projectData
.
getName
()
));
}
else
{
}
else
{
return
buildTextResponse
(
"主人,您还未收藏过该作品"
);
return
buildTextResponse
(
"主人,您还未收藏过该作品"
);
}
}
...
@@ -887,7 +891,7 @@ public class Dpl2Service extends BaseBot {
...
@@ -887,7 +891,7 @@ public class Dpl2Service extends BaseBot {
}
}
// category product list page
// category product list page
case
'5'
:{
case
'5'
:{
String
category
=
getSessionAttribute
(
"category"
);
String
category
=
getSessionAttribute
(
CATEGORY_NAME
);
if
(
category
==
null
)
category
=
"古风"
;
if
(
category
==
null
)
category
=
"古风"
;
openCategoryProductList
(
category
,
Integer
.
parseInt
(
nextPageIndex
));
openCategoryProductList
(
category
,
Integer
.
parseInt
(
nextPageIndex
));
break
;
break
;
...
@@ -927,7 +931,7 @@ public class Dpl2Service extends BaseBot {
...
@@ -927,7 +931,7 @@ public class Dpl2Service extends BaseBot {
}
}
// category product list page
// category product list page
case
'5'
:{
case
'5'
:{
String
category
=
getSessionAttribute
(
"category"
);
String
category
=
getSessionAttribute
(
CATEGORY_NAME
);
if
(
category
==
null
)
category
=
"古风"
;
if
(
category
==
null
)
category
=
"古风"
;
openCategoryProductList
(
category
,
Integer
.
parseInt
(
nextPageIndex
)-
2
);
openCategoryProductList
(
category
,
Integer
.
parseInt
(
nextPageIndex
)-
2
);
break
;
break
;
...
@@ -1002,7 +1006,7 @@ public class Dpl2Service extends BaseBot {
...
@@ -1002,7 +1006,7 @@ public class Dpl2Service extends BaseBot {
return
buildTextResponse
(
"主人,已为您返回到排行榜"
);
return
buildTextResponse
(
"主人,已为您返回到排行榜"
);
}
}
case
'5'
:{
case
'5'
:{
String
category
=
getSessionAttribute
(
"category"
);
String
category
=
getSessionAttribute
(
CATEGORY_NAME
);
if
(
category
==
null
)
{
if
(
category
==
null
)
{
openRandomHome
();
openRandomHome
();
return
buildTextResponse
(
"主人,已为您返回到首页"
);
return
buildTextResponse
(
"主人,已为您返回到首页"
);
...
@@ -1083,7 +1087,7 @@ public class Dpl2Service extends BaseBot {
...
@@ -1083,7 +1087,7 @@ public class Dpl2Service extends BaseBot {
stringRedisTemplate
.
opsForValue
().
set
(
SpiritRedisService
.
PREFIX_REDIS_DIRECT
+
customUserId
(),
stringRedisTemplate
.
opsForValue
().
set
(
SpiritRedisService
.
PREFIX_REDIS_DIRECT
+
customUserId
(),
data
,
15
,
TimeUnit
.
SECONDS
);
data
,
15
,
TimeUnit
.
SECONDS
);
});
});
return
buildTextResponse
(
"主人,
晓悟正在为您打开"
+
productName
+
",请您稍等"
);
return
buildTextResponse
(
"主人,
正在为您打开"
+
productName
);
}
}
private
Response
dealOpenNumCoHi
(
int
num
,
boolean
collect
)
{
private
Response
dealOpenNumCoHi
(
int
num
,
boolean
collect
)
{
...
@@ -1304,7 +1308,7 @@ public class Dpl2Service extends BaseBot {
...
@@ -1304,7 +1308,7 @@ public class Dpl2Service extends BaseBot {
dataList
.
set
(
"contentList"
,
arrayNode
);
dataList
.
set
(
"contentList"
,
arrayNode
);
dataList
.
put
(
"headerTitle"
,
categoryName
);
dataList
.
put
(
"headerTitle"
,
categoryName
);
dataList
.
put
(
"sideText"
,
pageIndex
+
"/"
+
dataList
.
put
(
"sideText"
,
pageIndex
+
"/"
+
botData
.
size
()/
RE_RA_CA_PAGE_SIZE
+
(
botData
.
size
()%
RE_RA_CA_PAGE_SIZE
==
0
?
0
:
1
));
(
botData
.
size
()/
RE_RA_CA_PAGE_SIZE
+
(
botData
.
size
()%
RE_RA_CA_PAGE_SIZE
==
0
?
0
:
1
)
));
RenderDocument
renderDocument
=
new
RenderDocument
(
ScheduleServiceNew
.
objectMapper
RenderDocument
renderDocument
=
new
RenderDocument
(
ScheduleServiceNew
.
objectMapper
.
readValue
(
jsonNode
.
toPrettyString
(),
Document
.
class
));
.
readValue
(
jsonNode
.
toPrettyString
(),
Document
.
class
));
addDirective
(
renderDocument
);
addDirective
(
renderDocument
);
...
@@ -1411,6 +1415,99 @@ public class Dpl2Service extends BaseBot {
...
@@ -1411,6 +1415,99 @@ public class Dpl2Service extends BaseBot {
}
}
}
}
private
Response
dealOpenProductDetail
(
ProjectData
productDetail
,
boolean
collect
)
{
try
{
String
userId
=
customUserId
();
String
productName
=
productDetail
.
getName
();
ProjectDetailData
data
=
new
ProjectDetailData
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
dateString
=
formatter
.
format
(
productDetail
.
getCreateTime
());
data
.
setImgUrl
(
productDetail
.
getBannerImgUrl
());
data
.
setWorkName
(
productDetail
.
getName
());
data
.
setTime
(
PRODUCT_INTRO
.
CREATE_TIME
+
dateString
);
data
.
setAuthor
(
PRODUCT_INTRO
.
AUTHOR
+
productDetail
.
getAuthorName
());
data
.
setLabel
(
Constants
.
PRODUCT_INTRO
.
LABEL
+
String
.
join
(
PRODUCT_INTRO
.
SPACE
,
productDetail
.
getLabels
()));
data
.
setIntro
(
productDetail
.
getIntro
());
data
.
setId
(
Constants
.
PRE_ENTER_PRODUCT
+
productName
);
Long
flowerCount
=
DplbotServiceUtil
.
getUserSendFlowerNum
(
productDetail
.
getBotAccount
(),
userId
,
channel
,
getAccessToken
(),
getSessionAttribute
(
"userId"
));
data
.
setFlowText
(
USER_SEND_FLOWER
+
flowerCount
);
data
.
setLogin
(
true
);
data
.
setFlowerId
(
FLOWE
+
productDetail
.
getBotAccount
());
data
.
setCollect
(
collect
);
JsonNode
jsonNode
=
productDetailPageData
.
deepCopy
();
ObjectNode
root
=
(
ObjectNode
)
jsonNode
;
root
.
set
(
"dataSource"
,
ScheduleServiceNew
.
objectMapper
.
convertValue
(
data
,
JsonNode
.
class
));
addDirective
(
new
RenderDocument
(
ScheduleServiceNew
.
objectMapper
.
readValue
(
jsonNode
.
toPrettyString
(),
Document
.
class
)));
String
trace
=
getSessionAttribute
(
BACK_TRACE
);
StringBuilder
builder
=
new
StringBuilder
();
if
(
trace
==
null
||
trace
.
length
()
<
2
)
{
builder
.
append
(
"00"
);
}
else
if
(
trace
.
length
()>
2
)
{
builder
.
append
(
trace
,
0
,
2
);
}
else
{
builder
.
append
(
trace
);
}
trace
=
builder
.
append
(
productDetail
.
getBotAccount
()).
toString
();
setSessionAttribute
(
BACK_TRACE
,
trace
);
}
catch
(
Exception
e
)
{
log
.
error
(
"dealOpenProductDetail:"
+
e
);
}
return
new
Response
();
}
private
Response
dealOpenProductDetail
(
ProjectData
productDetail
,
long
flowerNum
,
String
jytUserId
,
String
userId
)
{
try
{
ProjectDetailData
data
=
new
ProjectDetailData
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
dateString
=
formatter
.
format
(
productDetail
.
getCreateTime
());
data
.
setImgUrl
(
productDetail
.
getBannerImgUrl
());
data
.
setWorkName
(
productDetail
.
getName
());
data
.
setTime
(
PRODUCT_INTRO
.
CREATE_TIME
+
dateString
);
data
.
setAuthor
(
PRODUCT_INTRO
.
AUTHOR
+
productDetail
.
getAuthorName
());
data
.
setLabel
(
Constants
.
PRODUCT_INTRO
.
LABEL
+
String
.
join
(
PRODUCT_INTRO
.
SPACE
,
productDetail
.
getLabels
()));
data
.
setIntro
(
productDetail
.
getIntro
());
data
.
setId
(
Constants
.
PRE_ENTER_PRODUCT
+
productDetail
.
getName
());
data
.
setFlowText
(
USER_SEND_FLOWER
+
flowerNum
);
data
.
setLogin
(
true
);
data
.
setFlowerId
(
FLOWE
+
productDetail
.
getBotAccount
());
data
.
setCollect
(
DplbotServiceUtil
.
didUserCollecThisProduct
(
productDetail
.
getBotAccount
(),
userId
,
jytUserId
,
channel
));
JsonNode
jsonNode
=
productDetailPageData
.
deepCopy
();
ObjectNode
root
=
(
ObjectNode
)
jsonNode
;
root
.
set
(
"dataSource"
,
ScheduleServiceNew
.
objectMapper
.
convertValue
(
data
,
JsonNode
.
class
));
addDirective
(
new
RenderDocument
(
ScheduleServiceNew
.
objectMapper
.
readValue
(
jsonNode
.
toPrettyString
(),
Document
.
class
)));
String
trace
=
getSessionAttribute
(
BACK_TRACE
);
StringBuilder
builder
=
new
StringBuilder
();
if
(
trace
==
null
||
trace
.
length
()
<
2
)
{
builder
.
append
(
"00"
);
}
else
if
(
trace
.
length
()>
2
)
{
builder
.
append
(
trace
,
0
,
2
);
}
else
{
builder
.
append
(
trace
);
}
trace
=
builder
.
append
(
productDetail
.
getBotAccount
()).
toString
();
setSessionAttribute
(
BACK_TRACE
,
trace
);
}
catch
(
Exception
e
)
{
log
.
error
(
"dealOpenProductDetail:"
+
e
);
}
return
new
Response
();
}
private
Response
dealOpenProductDetail
(
ProjectData
productDetail
)
{
private
Response
dealOpenProductDetail
(
ProjectData
productDetail
)
{
try
{
try
{
if
(
productDetail
==
null
)
{
if
(
productDetail
==
null
)
{
...
@@ -1444,7 +1541,7 @@ public class Dpl2Service extends BaseBot {
...
@@ -1444,7 +1541,7 @@ public class Dpl2Service extends BaseBot {
// collection container button
// collection container button
collect
=
DplbotServiceUtil
.
didUserCollecThisProduct
(
productDetail
.
getBotAccount
(),
userId
,
collect
=
DplbotServiceUtil
.
didUserCollecThisProduct
(
productDetail
.
getBotAccount
(),
userId
,
accessToken
,
getSessionAttribute
(
"userId"
)
);
getSessionAttribute
(
"userId"
),
channel
);
data
.
setLogin
(
true
);
data
.
setLogin
(
true
);
// if (collec) {
// if (collec) {
// collectText = COLLECED;
// collectText = COLLECED;
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/dpl2/model/ProjectDetailData.java
View file @
544164f3
package
ai
.
qiwu
.
com
.
xiaoduhome
.
dpl2
.
model
;
package
ai
.
qiwu
.
com
.
xiaoduhome
.
dpl2
.
model
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
...
@@ -9,6 +10,7 @@ import lombok.Setter;
...
@@ -9,6 +10,7 @@ import lombok.Setter;
*/
*/
@Getter
@Getter
@Setter
@Setter
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
public
class
ProjectDetailData
{
public
class
ProjectDetailData
{
private
String
imgUrl
;
private
String
imgUrl
;
private
String
workName
;
private
String
workName
;
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java
View file @
544164f3
...
@@ -386,6 +386,7 @@ public class DplbotServiceUtil {
...
@@ -386,6 +386,7 @@ public class DplbotServiceUtil {
// noticeOtherServer(3, botAccount, ScheduleServiceNew.curTime, true, userId, jytUserId, channelId, true);
// noticeOtherServer(3, botAccount, ScheduleServiceNew.curTime, true, userId, jytUserId, channelId, true);
final
String
jytId
=
jytUserId
;
final
String
jytId
=
jytUserId
;
POOL
.
submit
(()
->
updateCollectTable
(
true
,
userId
,
channelId
,
botAccount
,
jytId
));
POOL
.
submit
(()
->
updateCollectTable
(
true
,
userId
,
channelId
,
botAccount
,
jytId
));
getRedisTemplate
().
opsForValue
().
set
(
userId
,
behaviorData
,
1
,
TimeUnit
.
HOURS
);
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
@@ -457,7 +458,7 @@ public class DplbotServiceUtil {
...
@@ -457,7 +458,7 @@ public class DplbotServiceUtil {
return
data
!=
null
&&
data
.
getUserBotId2History
().
containsKey
(
botAccount
);
return
data
!=
null
&&
data
.
getUserBotId2History
().
containsKey
(
botAccount
);
}
}
public
static
void
updateUserFlower
(
String
userId
,
int
flowerNum
,
String
channelId
,
public
static
long
updateUserFlower
(
String
userId
,
int
flowerNum
,
String
channelId
,
String
jytUserId
,
String
accessToken
,
String
botAccount
)
{
String
jytUserId
,
String
accessToken
,
String
botAccount
)
{
UserBehaviorData
data
=
getRedisTemplate
().
opsForValue
().
get
(
userId
);
UserBehaviorData
data
=
getRedisTemplate
().
opsForValue
().
get
(
userId
);
if
(
data
==
null
)
{
if
(
data
==
null
)
{
...
@@ -466,7 +467,7 @@ public class DplbotServiceUtil {
...
@@ -466,7 +467,7 @@ public class DplbotServiceUtil {
data
=
onLunchFillUserBehaviorDataInMaster
(
userId
,
channelId
,
jytUserId
,
true
);
data
=
onLunchFillUserBehaviorDataInMaster
(
userId
,
channelId
,
jytUserId
,
true
);
if
(
data
==
null
)
{
if
(
data
==
null
)
{
log
.
error
(
"没有获取到用户数据信息,导致更新用户送花缓存数据失败"
);
log
.
error
(
"没有获取到用户数据信息,导致更新用户送花缓存数据失败"
);
return
;
return
0
;
}
}
}
}
Long
before
=
data
.
getUserBotId2Flowers
().
get
(
botAccount
);
Long
before
=
data
.
getUserBotId2Flowers
().
get
(
botAccount
);
...
@@ -475,6 +476,7 @@ public class DplbotServiceUtil {
...
@@ -475,6 +476,7 @@ public class DplbotServiceUtil {
}
}
data
.
getUserBotId2Flowers
().
put
(
botAccount
,
before
+
flowerNum
);
data
.
getUserBotId2Flowers
().
put
(
botAccount
,
before
+
flowerNum
);
getRedisTemplate
().
opsForValue
().
set
(
userId
,
data
,
1
,
TimeUnit
.
HOURS
);
getRedisTemplate
().
opsForValue
().
set
(
userId
,
data
,
1
,
TimeUnit
.
HOURS
);
return
before
+
flowerNum
;
}
}
public
static
void
updateTheUserHistory
(
final
String
userId
,
final
String
botAccount
,
final
String
accessToken
,
public
static
void
updateTheUserHistory
(
final
String
userId
,
final
String
botAccount
,
final
String
accessToken
,
...
@@ -493,18 +495,18 @@ public class DplbotServiceUtil {
...
@@ -493,18 +495,18 @@ public class DplbotServiceUtil {
data
=
onLunchFillUserBehaviorDataInMaster
(
userId
,
channelId
,
appUserId
,
loaded
);
data
=
onLunchFillUserBehaviorDataInMaster
(
userId
,
channelId
,
appUserId
,
loaded
);
if
(
data
==
null
)
return
;
if
(
data
==
null
)
return
;
}
}
data
.
getUserBotId2History
().
put
(
botAccount
,
System
.
currentTimeMillis
());
ProjectData
actualBot
=
ScheduleServiceNew
.
getProjectByBotAccount
(
botAccount
);
data
.
getUserBotId2History
().
put
(
actualBot
.
getBotAccount
(),
System
.
currentTimeMillis
());
getRedisTemplate
().
opsForValue
().
set
(
userId
,
data
,
1
,
TimeUnit
.
HOURS
);
getRedisTemplate
().
opsForValue
().
set
(
userId
,
data
,
1
,
TimeUnit
.
HOURS
);
XiaoDuHistoryTBRepository
repository
=
BaseHolder
.
getBean
(
"xiaoDuHistoryTBRepository"
);
XiaoDuHistoryTBRepository
repository
=
BaseHolder
.
getBean
(
"xiaoDuHistoryTBRepository"
);
String
botName
=
ScheduleServiceNew
.
getWorkNameByBotAccount
(
botAccount
);
XiaoDuHistoryTB
tb
=
repository
.
getByXiaoduUserIdAndChannelIdAndWorkName
(
userId
,
channelId
,
actualBot
.
getName
());
XiaoDuHistoryTB
tb
=
repository
.
getByXiaoduUserIdAndChannelIdAndWorkName
(
userId
,
channelId
,
botName
);
if
(
tb
==
null
)
{
if
(
tb
==
null
)
{
tb
=
new
XiaoDuHistoryTB
();
tb
=
new
XiaoDuHistoryTB
();
tb
.
setChannelId
(
channelId
);
tb
.
setChannelId
(
channelId
);
tb
.
setJytUserId
(
jytUserId
);
tb
.
setJytUserId
(
jytUserId
);
tb
.
setXiaoduUserId
(
userId
);
tb
.
setXiaoduUserId
(
userId
);
tb
.
setWorkName
(
botName
);
tb
.
setWorkName
(
actualBot
.
getName
()
);
}
}
repository
.
save
(
tb
);
repository
.
save
(
tb
);
});
});
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java
View file @
544164f3
...
@@ -125,7 +125,7 @@ public class LoadBySMS {
...
@@ -125,7 +125,7 @@ public class LoadBySMS {
headers
.
put
(
"Content-Type"
,
"application/json;charset=utf-8"
);
headers
.
put
(
"Content-Type"
,
"application/json;charset=utf-8"
);
headers
.
put
(
"Authorization"
,
Utils
.
tokenAuthorization
(
phoneNumber
,
captcha
));
headers
.
put
(
"Authorization"
,
Utils
.
tokenAuthorization
(
phoneNumber
,
captcha
));
String
tokenStr
=
OkHttp3Utils
.
doGet
(
XIAOWU_API
.
SDK_TOKEN
,
new
HashMap
<>(),
headers
);
String
tokenStr
=
OkHttp3Utils
.
doGet
(
XIAOWU_API
.
SDK_TOKEN
,
new
HashMap
<>(),
headers
);
// log.info("获取Token返回"
);
log
.
info
(
"获取Token返回:"
+
tokenStr
);
TokenResponse
tokenResponse
=
JSON
.
parseObject
(
tokenStr
,
TokenResponse
.
class
);
TokenResponse
tokenResponse
=
JSON
.
parseObject
(
tokenStr
,
TokenResponse
.
class
);
// log.info("获取Token返回信息:{}", tokenResponse);
// log.info("获取Token返回信息:{}", tokenResponse);
if
(
tokenResponse
.
getRetcode
()
==
0
)
{
if
(
tokenResponse
.
getRetcode
()
==
0
)
{
...
@@ -217,10 +217,15 @@ public class LoadBySMS {
...
@@ -217,10 +217,15 @@ public class LoadBySMS {
// System.out.println(tokenStr);
// System.out.println(tokenStr);
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"App-Channel-Id"
,
"
JIAOYOUTIANXIA
"
);
headers
.
put
(
"App-Channel-Id"
,
"
xiaodu-speaker-api-test
"
);
headers
.
put
(
"Content-Type"
,
"application/json;charset=utf-8"
);
headers
.
put
(
"Content-Type"
,
"application/json;charset=utf-8"
);
headers
.
put
(
"Authorization"
,
Utils
.
captchaAuthorization
(
"13410129349"
));
headers
.
put
(
"Authorization"
,
XIAOWU_API
.
BEARER
+
"dba29f53-41b1-4144-906d-a19f15d25dc8"
);
String
smsStr
=
OkHttp3Utils
.
doGet
(
XIAOWU_API
.
CAPTCHA_SMS
,
new
HashMap
<>(),
headers
);
String
smsStr
=
null
;
System
.
out
.
println
(
smsStr
);
try
{
smsStr
=
OkHttp3Utils
.
doPostJsonStr
(
"https://account-center-test.chewrobot.com/api/sdk/token"
,
""
,
headers
);
System
.
out
.
println
(
smsStr
);
}
catch
(
Exception
e
)
{
log
.
error
(
"通过RefreshToken请求Token出错:{}"
,
e
.
toString
());
}
}
}
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java
View file @
544164f3
...
@@ -103,7 +103,7 @@ public class ScheduleServiceNew implements InitializingBean {
...
@@ -103,7 +103,7 @@ public class ScheduleServiceNew implements InitializingBean {
OLD_CDN_HOST_URL
=
CDN_HOST_URL
;
OLD_CDN_HOST_URL
=
CDN_HOST_URL
;
XIAO_AI_ENCRY_HOST
=
Config
.
getProperty
(
"host"
);
XIAO_AI_ENCRY_HOST
=
Config
.
getProperty
(
"host"
);
THE_PROCESS_IS_MASTER
=
Config
.
getProperty
(
"masterSlave"
,
"slave"
).
equals
(
"master"
);
THE_PROCESS_IS_MASTER
=
"master"
.
equals
(
Config
.
getProperty
(
"masterSlave"
,
"slave"
)
);
log
.
info
(
"BASE_HOST_URL:{},CDN_HOST_URL:{}, xiaoai encry host:{}, masterSlave:{}"
,
BASE_HOST_URL
,
CDN_HOST_URL
,
log
.
info
(
"BASE_HOST_URL:{},CDN_HOST_URL:{}, xiaoai encry host:{}, masterSlave:{}"
,
BASE_HOST_URL
,
CDN_HOST_URL
,
XIAO_AI_ENCRY_HOST
,
THE_PROCESS_IS_MASTER
);
XIAO_AI_ENCRY_HOST
,
THE_PROCESS_IS_MASTER
);
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/xiaoai/service/XiaoAiServiceRedis.java
View file @
544164f3
...
@@ -367,6 +367,7 @@ public class XiaoAiServiceRedis {
...
@@ -367,6 +367,7 @@ public class XiaoAiServiceRedis {
*/
*/
private
String
getUserId
(
XiaoAiRequest
request
)
{
private
String
getUserId
(
XiaoAiRequest
request
)
{
String
userId
=
request
.
getSession
().
getUser
().
getUser_id
();
String
userId
=
request
.
getSession
().
getUser
().
getUser_id
();
// log.info("小爱,userId:{}", userId);
if
(
userId
==
null
)
{
if
(
userId
==
null
)
{
userId
=
request
.
getContext
().
getDevice_id
();
userId
=
request
.
getContext
().
getDevice_id
();
if
(
userId
!=
null
)
userId
=
Utils
.
modifyDeviceId
(
userId
);
if
(
userId
!=
null
)
userId
=
Utils
.
modifyDeviceId
(
userId
);
...
@@ -388,9 +389,9 @@ public class XiaoAiServiceRedis {
...
@@ -388,9 +389,9 @@ public class XiaoAiServiceRedis {
}
}
String
response
;
String
response
;
try
{
try
{
// log.info("小爱,用户话:{}", userWor
d);
log
.
info
(
"==================\n小爱,用户话:{}, userId:{}"
,
userWord
,
userI
d
);
response
=
RequestTerminal
.
requestTerminate
(
userId
,
userWord
,
type
,
baseUrl
);
response
=
RequestTerminal
.
requestTerminate
(
userId
,
userWord
,
type
,
baseUrl
);
//
log.info("小爱,小悟返回:{}", response);
log
.
info
(
"小爱,小悟返回:{}"
,
response
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"向终端发出的请求信息失败:{}"
,
e
.
toString
());
log
.
error
(
"向终端发出的请求信息失败:{}"
,
e
.
toString
());
return
buildTextResponse
(
SORRY_REPEAT
);
return
buildTextResponse
(
SORRY_REPEAT
);
...
@@ -453,7 +454,7 @@ public class XiaoAiServiceRedis {
...
@@ -453,7 +454,7 @@ public class XiaoAiServiceRedis {
String
path
;
String
path
;
try
{
try
{
path
=
OkHttp3Utils
.
doPostJsonStr
(
audioUrl
+
"/api/audio"
,
response
);
path
=
OkHttp3Utils
.
doPostJsonStr
(
audioUrl
+
"/api/audio"
,
response
);
if
(
StringUtils
.
isBlank
(
path
)
||
path
.
equals
(
"null"
))
{
if
(
StringUtils
.
isBlank
(
path
)
||
"null"
.
equals
(
path
))
{
log
.
error
(
"没有获取到TTS返回的路径path"
);
log
.
error
(
"没有获取到TTS返回的路径path"
);
return
buildTextResponse
(
SORRY_REPEAT
);
return
buildTextResponse
(
SORRY_REPEAT
);
}
}
...
@@ -463,7 +464,7 @@ public class XiaoAiServiceRedis {
...
@@ -463,7 +464,7 @@ public class XiaoAiServiceRedis {
botAccount
=
"empty"
;
botAccount
=
"empty"
;
}
}
xiaoAiResponse
=
buildAudioResponse
((
path
=
changeAudioUrlTemp
(
path
,
botAccount
,
cdnUrl
)));
xiaoAiResponse
=
buildAudioResponse
((
path
=
changeAudioUrlTemp
(
path
,
botAccount
,
cdnUrl
)));
//
log.info("音频地址:"+path);
log
.
info
(
"音频地址:"
+
path
);
if
(
Boolean
.
TRUE
.
equals
(
stringRedisTemplate
.
opsForValue
()
if
(
Boolean
.
TRUE
.
equals
(
stringRedisTemplate
.
opsForValue
()
.
setIfPresent
(
SpiritRedisService
.
PREFIX_REDIS
+
userId
,
path
,
15
,
TimeUnit
.
SECONDS
)))
{
.
setIfPresent
(
SpiritRedisService
.
PREFIX_REDIS
+
userId
,
path
,
15
,
TimeUnit
.
SECONDS
)))
{
log
.
info
(
"xiaoai 超时redis存储成功"
);
log
.
info
(
"xiaoai 超时redis存储成功"
);
...
...
xiaoduhome/src/main/resources/static/dpl2/collectHistory.json
View file @
544164f3
...
@@ -43,7 +43,8 @@
...
@@ -43,7 +43,8 @@
"type"
:
"Header"
,
"type"
:
"Header"
,
"props"
:
{
"props"
:
{
"title"
:
"${payload.headerTitle}"
,
"title"
:
"${payload.headerTitle}"
,
"sideText"
:
"${payload.sideText}"
"sideText"
:
"${payload.sideText}"
,
"destroy"
:
false
},
},
"events"
:
{
"events"
:
{
"onBackTap"
:
[{
"onBackTap"
:
[{
...
...
xiaoduhome/src/main/resources/static/dpl2/play.json
View file @
544164f3
...
@@ -43,7 +43,14 @@
...
@@ -43,7 +43,14 @@
{
{
"type"
:
"Header"
,
"type"
:
"Header"
,
"props"
:
{
"props"
:
{
"title"
:
"${payload.headerTitle}"
"title"
:
"${payload.headerTitle}"
,
"destroy"
:
false
},
"events"
:
{
"onBackTap"
:
[{
"type"
:
"SendEvent"
,
"componentId"
:
"backTrigger"
}]
}
}
},
},
{
{
...
...
xiaoduhome/src/main/resources/static/dpl2/productDetail.json
View file @
544164f3
...
@@ -49,11 +49,16 @@
...
@@ -49,11 +49,16 @@
},
},
{
{
"type"
:
"Header"
,
"type"
:
"Header"
,
"props"
:
{
"destroy"
:
false
},
"events"
:
{
"events"
:
{
"onBackTap"
:
[{
"onBackTap"
:
[
{
"type"
:
"SendEvent"
,
"type"
:
"SendEvent"
,
"componentId"
:
"backTrigger"
"componentId"
:
"backTrigger"
}]
}
]
}
}
},
},
{
{
...
...
xiaoduhome/src/main/resources/static/dpl2/productList.json
View file @
544164f3
...
@@ -44,7 +44,8 @@
...
@@ -44,7 +44,8 @@
"type"
:
"Header"
,
"type"
:
"Header"
,
"props"
:
{
"props"
:
{
"title"
:
"${payload.headerTitle}"
,
"title"
:
"${payload.headerTitle}"
,
"sideText"
:
"${payload.sideText}"
"sideText"
:
"${payload.sideText}"
,
"destroy"
:
false
},
},
"events"
:
{
"events"
:
{
"onBackTap"
:
[{
"onBackTap"
:
[{
...
@@ -319,7 +320,6 @@
...
@@ -319,7 +320,6 @@
},
},
{
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"dWhen"
:
"<%= $ITEM.num4 != 0 %>"
,
"props"
:
{
"props"
:
{
"clickTimeout"
:
2000
"clickTimeout"
:
2000
},
},
...
...
xiaoduhome/src/main/resources/static/dpl2/recommand.json
View file @
544164f3
...
@@ -42,7 +42,8 @@
...
@@ -42,7 +42,8 @@
{
{
"type"
:
"Header"
,
"type"
:
"Header"
,
"props"
:
{
"props"
:
{
"title"
:
"${payload.headerTitle}"
"title"
:
"${payload.headerTitle}"
,
"destroy"
:
false
},
},
"events"
:
{
"events"
:
{
"onBackTap"
:
[{
"onBackTap"
:
[{
...
...
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