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
fda1e77c
Commit
fda1e77c
authored
Aug 24, 2019
by
苗权威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8.24
parent
42683448
Hide whitespace changes
Inline
Side-by-side
Showing
76 changed files
with
3376 additions
and
748 deletions
+3376
-748
workspace.xml
.idea/workspace.xml
+468
-386
CallPython.java
.../main/java/ai/qiwu/com/tts_offline/common/CallPython.java
+1
-1
Config.java
.../src/main/java/ai/qiwu/com/tts_offline/common/Config.java
+4
-0
OfflineService.java
.../java/ai/qiwu/com/tts_offline/service/OfflineService.java
+1
-1
pom.xml
tts_service/pom.xml
+4
-0
CallPython.java
.../main/java/ai/qiwu/com/tts_service/common/CallPython.java
+86
-35
ChangeSound.java
...main/java/ai/qiwu/com/tts_service/common/ChangeSound.java
+0
-4
OkHttp3Utils.java
...ain/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java
+7
-4
TTSUtils.java
...rc/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java
+37
-9
Initialize.java
...main/java/ai/qiwu/com/tts_service/service/Initialize.java
+1
-1
LieHuSchedule.java
...n/java/ai/qiwu/com/tts_service/service/LieHuSchedule.java
+1
-1
TTService.java
.../main/java/ai/qiwu/com/tts_service/service/TTService.java
+103
-36
application.yml
tts_service/src/main/resources/application.yml
+18
-9
tts.properties
tts_service/src/main/resources/tts.properties
+4
-2
XiaoAiController.java
...n/java/ai/qiwu/mi/xiaoai/controller/XiaoAiController.java
+2
-2
Constants.java
.../src/main/java/ai/qiwu/baidu/xiaodu/common/Constants.java
+2
-2
ProductController.java
...va/ai/qiwu/baidu/xiaodu/controller/ProductController.java
+1
-0
Product.html
xiaodu/src/main/resources/templates/Product.html
+3
-3
pom.xml
xiaoduhome/pom.xml
+5
-0
XiaoduhomeApplication.java
...in/java/ai/qiwu/com/xiaoduhome/XiaoduhomeApplication.java
+4
-2
BaseHolder.java
...c/main/java/ai/qiwu/com/xiaoduhome/common/BaseHolder.java
+29
-0
Config.java
...e/src/main/java/ai/qiwu/com/xiaoduhome/common/Config.java
+40
-0
Constants.java
...rc/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java
+47
-3
ServiceUtil.java
.../main/java/ai/qiwu/com/xiaoduhome/common/ServiceUtil.java
+43
-0
TokenHolder.java
.../main/java/ai/qiwu/com/xiaoduhome/common/TokenHolder.java
+21
-0
Utils.java
...me/src/main/java/ai/qiwu/com/xiaoduhome/common/Utils.java
+8
-0
DataSourceConfig.java
...i/qiwu/com/xiaoduhome/common/config/DataSourceConfig.java
+42
-0
PrimaryConfig.java
...a/ai/qiwu/com/xiaoduhome/common/config/PrimaryConfig.java
+66
-0
SecondaryConfig.java
...ai/qiwu/com/xiaoduhome/common/config/SecondaryConfig.java
+60
-0
Oauth2Controller.java
...a/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java
+174
-0
XiaoDuHomeController.java
.../qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java
+4
-2
AppFavoriteTB.java
.../ai/qiwu/com/xiaoduhome/entity/primary/AppFavoriteTB.java
+43
-0
AppFlowerTB.java
...va/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTB.java
+54
-0
AppFlowerTBTiny.java
...i/qiwu/com/xiaoduhome/entity/primary/AppFlowerTBTiny.java
+30
-0
AppUserTB.java
...java/ai/qiwu/com/xiaoduhome/entity/primary/AppUserTB.java
+30
-0
GameProjectTb.java
.../ai/qiwu/com/xiaoduhome/entity/primary/GameProjectTb.java
+1
-1
OnProductDetail.java
...i/qiwu/com/xiaoduhome/entity/primary/OnProductDetail.java
+4
-1
ProjectLabel.java
...a/ai/qiwu/com/xiaoduhome/entity/primary/ProjectLabel.java
+1
-1
XiaoDuOrderIdTB.java
...qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderIdTB.java
+32
-0
XiaoDuOrderTB.java
...i/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java
+55
-0
CaptchaSmsResponse.java
.../java/ai/qiwu/com/xiaoduhome/pojo/CaptchaSmsResponse.java
+20
-0
CodeMsgData.java
...rc/main/java/ai/qiwu/com/xiaoduhome/pojo/CodeMsgData.java
+20
-0
CollecProduct.java
.../main/java/ai/qiwu/com/xiaoduhome/pojo/CollecProduct.java
+20
-0
Payload.java
...me/src/main/java/ai/qiwu/com/xiaoduhome/pojo/Payload.java
+19
-0
TokenDuerosResponse.java
...java/ai/qiwu/com/xiaoduhome/pojo/TokenDuerosResponse.java
+18
-0
TokenResponse.java
.../main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse.java
+24
-0
User.java
...uhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/User.java
+22
-0
UserCollecResult.java
...in/java/ai/qiwu/com/xiaoduhome/pojo/UserCollecResult.java
+22
-0
UserInfoByTokenResult.java
...va/ai/qiwu/com/xiaoduhome/pojo/UserInfoByTokenResult.java
+21
-0
XiaoWuData.java
...src/main/java/ai/qiwu/com/xiaoduhome/pojo/XiaoWuData.java
+22
-0
Event.java
.../src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java
+8
-0
Item.java
...e/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item.java
+17
-0
AllOnProductInfoRepository.java
...duhome/repository/primary/AllOnProductInfoRepository.java
+4
-2
AppFavoriteTBRepository.java
...iaoduhome/repository/primary/AppFavoriteTBRepository.java
+34
-0
AppFlowerTBRepository.java
.../xiaoduhome/repository/primary/AppFlowerTBRepository.java
+24
-0
AppFlowerTBTintRepository.java
...oduhome/repository/primary/AppFlowerTBTintRepository.java
+19
-0
AppUserTBRepository.java
...om/xiaoduhome/repository/primary/AppUserTBRepository.java
+18
-0
GameProjectTbRepository.java
...iaoduhome/repository/primary/GameProjectTbRepository.java
+4
-2
ProjectLabelRepository.java
...xiaoduhome/repository/primary/ProjectLabelRepository.java
+4
-2
XiaoDuOrderTBIdRepository.java
...uhome/repository/secondary/XiaoDuOrderTBIdRepository.java
+21
-0
XiaoDuOrderTbRepository.java
...oduhome/repository/secondary/XiaoDuOrderTbRepository.java
+21
-0
DplBotService.java
...in/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java
+539
-143
LoadBySMS.java
...c/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java
+194
-0
RequestTerminal.java
.../java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java
+1
-0
ScheduleService.java
.../java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java
+7
-7
application.yml
xiaoduhome/src/main/resources/application.yml
+11
-4
categoryPro.json
xiaoduhome/src/main/resources/static/json/categoryPro.json
+96
-0
firstPage.json
xiaoduhome/src/main/resources/static/json/firstPage.json
+28
-0
onLunch.json
xiaoduhome/src/main/resources/static/json/onLunch.json
+7
-1
onLunch2.json
xiaoduhome/src/main/resources/static/json/onLunch2.json
+183
-0
play.json
xiaoduhome/src/main/resources/static/json/play.json
+40
-21
productInfo.json
xiaoduhome/src/main/resources/static/json/productInfo.json
+111
-60
LoadFailed.html
xiaoduhome/src/main/resources/templates/LoadFailed.html
+11
-0
Oauth2_load.html
xiaoduhome/src/main/resources/templates/Oauth2_load.html
+113
-0
home_load.html
xiaoduhome/src/main/resources/templates/home_load.html
+115
-0
xiaodu.properties
xiaoduhome/src/main/resources/xiaodu.properties
+2
-0
No files found.
.idea/workspace.xml
View file @
fda1e77c
...
@@ -3,46 +3,43 @@
...
@@ -3,46 +3,43 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"4a2f3afc-3cd8-46bb-9e78-9759246c43dc"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"4a2f3afc-3cd8-46bb-9e78-9759246c43dc"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/controller/OfflineController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/controller/OfflineController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/common/CallPython.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/common/CallPython.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/common/Config.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/common/Config.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/service/OfflineService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/service/OfflineService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/pom.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/pom.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
TtsServiceApplication.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/TtsServiceApplicati
on.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/
common/CallPython.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPyth
on.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/
ErrorMsgEnum.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ErrorMsgEnum
.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/
ChangeSound.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ChangeSound
.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.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/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/TTSLSRequest.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSLSRequest.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/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/LieHuSchedule.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/LieHuSchedule.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/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/resources/application.yml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/resources/application.yml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/resources/tts.properties"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/resources/tts.properties"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/main/resources/tts.properties"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/main/resources/tts.properties"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/tts_service/src/test/java/ai/qiwu/com/tts_service/TtsServiceApplicationTests.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/tts_service/src/test/java/ai/qiwu/com/tts_service/TtsServiceApplicationTests.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/OkHttp3Utils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/OkHttp3Utils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/RequestTerminal.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/RequestTerminal.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/Utils.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/Utils.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/controller/XiaoAiController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/controller/XiaoAiController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/controller/XiaoAiController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/controller/XiaoAiController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/QiWuResponse.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/QiWuResponse.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/common/Constants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/common/Constants.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/common/Constants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/common/Constants.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/XiaoDuController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/XiaoDuController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/ProductController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/ProductController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/pojo/dpl/Event.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/resources/templates/Product.html"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaodu/src/main/resources/templates/Product.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/pojo/dpl/Item.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/pojo/dpl/MyDocument.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/pojo/dpl/MyMainTemplate.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/DplBotService.java"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/ResponseEncapsulation.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/service/ResponseEncapsulation.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/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/pom.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/XiaoduhomeApplication.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/XiaoduhomeApplication.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/XiaoduhomeApplication.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/XiaoduhomeApplication.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/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/controller/XiaoDuHomeController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuResponse.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuResponse.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/GameProjectTb.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/GameProjectTb.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/OnProductDetail.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/OnProductDetail.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/ProjectLabel.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/ProjectLabel.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/AllOnProductInfoRepository.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AllOnProductInfoRepository.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/GameProjectTbRepository.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/GameProjectTbRepository.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/ProjectLabelRepository.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/ProjectLabelRepository.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/
resources/application.properties"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml
"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/
java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java
"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/
static/json/demo01.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/demo01.json
"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/
application.yml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml
"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/play.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/play.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json"
afterDir=
"false"
/>
</list>
</list>
<ignored
path=
"$PROJECT_DIR$/out/"
/>
<ignored
path=
"$PROJECT_DIR$/out/"
/>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
...
@@ -86,71 +83,109 @@
...
@@ -86,71 +83,109 @@
<component
name=
"FileEditorManager"
>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<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/
Schedule
Service.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/
DplBot
Service.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=
"7854"
>
<caret
line=
"33"
column=
"66"
selection-start-line=
"33"
selection-start-column=
"66"
selection-end-line=
"33"
selection-end-column=
"66"
/>
<caret
line=
"716"
selection-start-line=
"716"
selection-end-line=
"716"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"370"
>
<caret
line=
"549"
column=
"45"
selection-start-line=
"549"
selection-start-column=
"45"
selection-end-line=
"549"
selection-end-column=
"45"
/>
<folding>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#23314#23360#0"
/>
<element
signature=
"e#24229#24343#0"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService
.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=
"367"
>
<state
relative-caret-position=
"132"
>
<caret
line=
"191"
column=
"63"
lean-forward=
"true"
selection-start-line=
"191"
selection-start-column=
"63"
selection-end-line=
"191"
selection-end-column=
"63"
/>
<caret
line=
"53"
column=
"75"
selection-start-line=
"53"
selection-start-column=
"75"
selection-end-line=
"53"
selection-end-column=
"75"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Runtime.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"327"
>
<caret
line=
"616"
column=
"42"
selection-start-line=
"616"
selection-start-column=
"34"
selection-end-line=
"616"
selection-end-column=
"42"
/>
<folding>
<folding>
<element
signature=
"e#
2869#2904#0
"
/>
<element
signature=
"e#
1272#1273#0"
expanded=
"true
"
/>
<element
signature=
"e#1
2087#12135#0
"
/>
<element
signature=
"e#1
309#1310#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/resources/static/json/productInfo.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=
"287"
>
<state
relative-caret-position=
"366"
>
<caret
line=
"160"
column=
"45"
lean-forward=
"true"
selection-start-line=
"160"
selection-start-column=
"45"
selection-end-line=
"160"
selection-end-column=
"45"
/>
<caret
line=
"199"
column=
"36"
selection-start-line=
"199"
selection-start-column=
"25"
selection-end-line=
"199"
selection-end-column=
"36"
/>
<folding>
<element
signature=
"e#7233#7234#0"
expanded=
"true"
/>
<element
signature=
"e#7284#7285#0"
expanded=
"true"
/>
<element
signature=
"e#7338#7339#0"
expanded=
"true"
/>
<element
signature=
"e#7382#7383#0"
expanded=
"true"
/>
<element
signature=
"e#7410#7411#0"
expanded=
"true"
/>
<element
signature=
"e#7441#7442#0"
expanded=
"true"
/>
<element
signature=
"e#7862#7863#0"
expanded=
"true"
/>
<element
signature=
"e#7899#7900#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"true"
>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/json/play.json
"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/resources/application.yml
"
>
<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=
"
88
"
>
<caret
line=
"
37"
column=
"32"
lean-forward=
"true"
selection-start-line=
"37"
selection-start-column=
"32"
selection-end-line=
"37"
selection-end-column=
"32
"
/>
<caret
line=
"
4"
column=
"28"
lean-forward=
"true"
selection-start-line=
"4"
selection-start-column=
"28"
selection-end-line=
"4"
selection-end-column=
"28
"
/>
</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/json/onLunch.json
"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/resources/tts.properties
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
52
8"
>
<state
relative-caret-position=
"
30
8"
>
<caret
line=
"
39"
column=
"33"
lean-forward=
"true"
selection-start-line=
"39"
selection-start-column=
"33"
selection-end-line=
"39"
selection-end-column=
"33
"
/>
<caret
line=
"
14"
column=
"22"
selection-start-line=
"14"
selection-start-column=
"22"
selection-end-line=
"14"
selection-end-column=
"22
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants
.java"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/ProcessBuilder
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
484
"
>
<state
relative-caret-position=
"
-641
"
>
<caret
line=
"
22"
column=
"80"
selection-start-line=
"22"
selection-start-column=
"80"
selection-end-line=
"22"
selection-end-column=
"80
"
/>
<caret
line=
"
179"
column=
"32"
selection-start-line=
"179"
selection-start-column=
"25"
selection-end-line=
"179"
selection-end-column=
"32
"
/>
</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/
pojo/dpl/Item
.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=
"408"
>
<state
relative-caret-position=
"2024"
>
<caret
line=
"67"
column=
"31"
lean-forward=
"true"
selection-start-line=
"67"
selection-start-column=
"31"
selection-end-line=
"67"
selection-end-column=
"31"
/>
<caret
line=
"103"
column=
"50"
selection-start-line=
"103"
selection-start-column=
"50"
selection-end-line=
"103"
selection-end-column=
"50"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"4004"
>
<caret
line=
"182"
column=
"51"
selection-start-line=
"182"
selection-start-column=
"51"
selection-end-line=
"182"
selection-end-column=
"51"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -162,49 +197,50 @@
...
@@ -162,49 +197,50 @@
<list>
<list>
<option
value=
"Enum"
/>
<option
value=
"Enum"
/>
<option
value=
"HTML File"
/>
<option
value=
"HTML File"
/>
<option
value=
"Interface"
/>
<option
value=
"Class"
/>
<option
value=
"Class"
/>
<option
value=
"Interface"
/>
</list>
</list>
</option>
</option>
</component>
</component>
<component
name=
"FindInProjectRecents"
>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<findStrings>
<find
/>
<find>
max-lines
</find>
<find>
getEventType
</find>
<find>
log
</find>
<find>
log.info
</find>
<find>
log.info
</find>
<find>
moodUrl
</find>
<find>
flower
</find>
<find>
offlineService
</find>
<find>
getUserIdByToken
</find>
<find>
pitch
</find>
<find>
changeIconIdTextAfterCollect
</find>
<find>
ParallelCommand
</find>
<find>
system
</find>
<find>
channels
</find>
<find>
log
</find>
<find>
Pcm2Wav
</find>
<find>
desc
</find>
<find>
data
</find>
<find>
headerTitle
</find>
<find>
headerImage
</find>
<find>
margin
</find>
<find>
font
</find>
<find>
specing
</find>
<find>
specing
</find>
<find>
letter
</find>
<find>
align
</find>
<find>
opacity
</find>
<find>
margin-right
</find>
<find>
initialPage
</find>
<find>
align-items
</find>
<find>
direction
</find>
<find>
CATEGORY_PROD_LIST
</find>
<find>
position
</find>
<find>
line-height
</find>
<find>
border
</find>
<find>
onClick
</find>
<find>
onLoaded
</find>
<find>
whole
</find>
<find>
Constants
</find>
<find>
audio
</find>
<find>
hasBackIcon
</find>
<find>
hasBackIcon
</find>
<find>
productName
</find>
<find>
hints
</find>
<find>
hints
</find>
<find>
left
</find>
<find>
margin-top
</find>
<find>
margin
</find>
<find>
secondaryDataSource
</find>
<find>
entityManagerFactorySecondary
</find>
<find>
padding
</find>
<find>
text-overflow
</find>
<find>
letter
</find>
<find>
margin-bottom
</find>
<find>
TTSResponse
</find>
<find>
mp3File
</find>
<find>
componentId
</find>
<find>
CallP
</find>
<find>
AUDIO_DIR
</find>
</findStrings>
</findStrings>
<replaceStrings>
<replaceStrings>
<replace>
OPENID_CACHE
</replace>
<replace>
OPENID_CACHE
</replace>
<replace>
log
</replace>
<replace>
log
</replace>
<replace>
PERSON_INFO_ONLINE
</replace>
<replace>
PERSON_INFO_ONLINE
</replace>
<replace>
555
</replace>
<replace>
555
</replace>
<replace>
spacing
</replace>
</replaceStrings>
</replaceStrings>
</component>
</component>
<component
name=
"Git.Settings"
>
<component
name=
"Git.Settings"
>
...
@@ -213,57 +249,57 @@
...
@@ -213,57 +249,57 @@
<component
name=
"IdeDocumentHistory"
>
<component
name=
"IdeDocumentHistory"
>
<option
name=
"CHANGED_PATHS"
>
<option
name=
"CHANGED_PATHS"
>
<list>
<list>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/third/LieHuSpeech.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/Payload.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/categoryPro.json"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/play.json"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/WavHeader.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/pom.xml"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Pcp2Wav.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/BaseHolder.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/ServiceUtil.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Pcm2Wav.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/AppUserTB.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/pcm/ByteUtils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/AppFavoriteTB.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/pcm/WavFileHeader.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/DataSourceConfig.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/pcm/WavUtils.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/LieHuSchedule.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/pcm/Pcm2Wav.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/resources/application.yml"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/QiWuResponse.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuResponse.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/pom.xml"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/gameProjectTb.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/XiaoduhomeApplication.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/XiaoduhomeApplication.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/RequestTerminal.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuBuyOrderTB.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XioaDuOrderTbRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/OkHttp3Utils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Config.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/ProjectLable.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/xiaodu.properties"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/ProjectLableRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/AppFlowerTB.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Data.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/AppFlowerTBTiny.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.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/json/home.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/OnTableProductReposity.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/OnTableProductRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/OnTableProductInfo.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/GameProjectTbRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/GameProjectTb.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/AllOnProductInfoRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/AllOnProductInfoRepository.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/repository/AppFavoriteTBRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/ProjectLabels.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/AppFlowerTBRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/OnProductDetail.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/AppFlowerTBTintRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/ProjectLabel.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/AppUserTBRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/GameProjectTbRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/ProjectLabelRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/ProjectLabelRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderIdTB.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/common/config/SecondaryConfig.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/DataSourceConfig.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml"
/>
<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/PrimaryConfig.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/repository/secondary/XiaoDuOrderTBIdRepository.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBTintRepository.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$/tts_service/src/main/resources/tts.properties"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuResponse.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/play.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ResponseEncapsulation.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/controller/XiaoAiController.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json"
/>
<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/Constants.java"
/>
<option
value=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/resources/application.yml"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/resources/tts.properties"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java"
/>
<option
value=
"$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java"
/>
</list>
</list>
</option>
</option>
</component>
</component>
...
@@ -304,11 +340,11 @@
...
@@ -304,11 +340,11 @@
<component
name=
"MavenRunner"
>
<component
name=
"MavenRunner"
>
<option
name=
"skipTests"
value=
"true"
/>
<option
name=
"skipTests"
value=
"true"
/>
</component>
</component>
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"
220
"
/>
<option
name=
"x"
value=
"
15
"
/>
<option
name=
"y"
value=
"
-2
"
/>
<option
name=
"y"
value=
"
194
"
/>
<option
name=
"width"
value=
"1416"
/>
<option
name=
"width"
value=
"1416"
/>
<option
name=
"height"
value=
"10
62
"
/>
<option
name=
"height"
value=
"10
55
"
/>
</component>
</component>
<component
name=
"ProjectLevelVcsManager"
settingsEditedManually=
"true"
>
<component
name=
"ProjectLevelVcsManager"
settingsEditedManually=
"true"
>
<ConfirmationsSetting
value=
"1"
id=
"Add"
/>
<ConfirmationsSetting
value=
"1"
id=
"Add"
/>
...
@@ -318,6 +354,7 @@
...
@@ -318,6 +354,7 @@
<foldersAlwaysOnTop
value=
"true"
/>
<foldersAlwaysOnTop
value=
"true"
/>
</navigator>
</navigator>
<panes>
<panes>
<pane
id=
"Scope"
/>
<pane
id=
"ProjectPane"
>
<pane
id=
"ProjectPane"
>
<subPane>
<subPane>
<expand>
<expand>
...
@@ -376,23 +413,35 @@
...
@@ -376,23 +413,35 @@
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"service"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"tts_service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"resources"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"resources"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiao
ai
"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiao
duhome
"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"smartbox"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
...
@@ -400,6 +449,7 @@
...
@@ -400,6 +449,7 @@
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
...
@@ -408,6 +458,7 @@
...
@@ -408,6 +458,7 @@
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
...
@@ -417,6 +468,7 @@
...
@@ -417,6 +468,7 @@
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"common"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
...
@@ -427,6 +479,7 @@
...
@@ -427,6 +479,7 @@
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"common"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"common"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"config"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<path>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"smartbox"
type=
"b2602c69:ProjectViewProjectNode"
/>
...
@@ -487,6 +540,17 @@
...
@@ -487,6 +540,17 @@
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"repository"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"secondary"
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=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"xiaoduhome"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"service"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"service"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</path>
<path>
<path>
...
@@ -506,12 +570,20 @@
...
@@ -506,12 +570,20 @@
<item
name=
"resources"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"resources"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"json"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"json"
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=
"resources"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"templates"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
</expand>
<select
/>
<select
/>
</subPane>
</subPane>
</pane>
</pane>
<pane
id=
"PackagesPane"
/>
<pane
id=
"PackagesPane"
/>
<pane
id=
"Scope"
/>
</panes>
</panes>
</component>
</component>
<component
name=
"PropertiesComponent"
>
<component
name=
"PropertiesComponent"
>
...
@@ -525,10 +597,11 @@
...
@@ -525,10 +597,11 @@
<property
name=
"RequestMappingsPanelWidth2"
value=
"75"
/>
<property
name=
"RequestMappingsPanelWidth2"
value=
"75"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"aspect.path.notification.shown"
value=
"true"
/>
<property
name=
"aspect.path.notification.shown"
value=
"true"
/>
<property
name=
"com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp"
value=
"1566
014561247
"
/>
<property
name=
"com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp"
value=
"1566
613933141
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/../security/p1o6vt"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/../security/p1o6vt"
/>
<property
name=
"nodejs_interpreter_path.stuck_in_default_project"
value=
"undefined stuck path"
/>
<property
name=
"nodejs_interpreter_path.stuck_in_default_project"
value=
"undefined stuck path"
/>
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
<property
name=
"nodejs_package_manager_path"
value=
"npm"
/>
<property
name=
"project.structure.last.edited"
value=
"Modules"
/>
<property
name=
"project.structure.last.edited"
value=
"Modules"
/>
<property
name=
"project.structure.proportion"
value=
"0.0"
/>
<property
name=
"project.structure.proportion"
value=
"0.0"
/>
<property
name=
"project.structure.side.proportion"
value=
"0.254023"
/>
<property
name=
"project.structure.side.proportion"
value=
"0.254023"
/>
...
@@ -543,22 +616,25 @@
...
@@ -543,22 +616,25 @@
<recent
name=
"$PROJECT_DIR$/ruoqi/src/main/resources/lib"
/>
<recent
name=
"$PROJECT_DIR$/ruoqi/src/main/resources/lib"
/>
</key>
</key>
<key
name=
"MoveClassesOrPackagesDialog.RECENTS_KEY"
>
<key
name=
"MoveClassesOrPackagesDialog.RECENTS_KEY"
>
<recent
name=
"ai.qiwu.com.xiaoduhome.repository.primary"
/>
<recent
name=
"ai.qiwu.com.xiaoduhome.entity.primary"
/>
<recent
name=
"ai.qiwu.com.xiaoduhome.common.config"
/>
<recent
name=
"ai.qiwu.com.tts_service.common.pcm"
/>
<recent
name=
"ai.qiwu.com.tts_service.common.pcm"
/>
<recent
name=
"ai.qiwu.com.tts_service.entity"
/>
<recent
name=
"ai.qiwu.com.tts_service.entity"
/>
</key>
</key>
<key
name=
"CopyClassDialog.RECENTS_KEY"
>
<key
name=
"CopyClassDialog.RECENTS_KEY"
>
<recent
name=
"ai.qiwu.com.xiaoduhome.common"
/>
<recent
name=
"ai.qiwu.com.xiaoduhome.pojo"
/>
<recent
name=
"ai.qiwu.com.xiaoduhome.pojo"
/>
<recent
name=
"ai.qiwu.com.xiaoduhome.service"
/>
<recent
name=
"ai.qiwu.com.xiaoduhome.controller"
/>
<recent
name=
"ai.qiwu.mi.xiaoai.model"
/>
<recent
name=
"ai.qiwu.mi.xiaoai.model"
/>
<recent
name=
"ai.qiwu.mi.xiaoai.commons"
/>
<recent
name=
"ai.qiwu.com.tts_offline.common"
/>
<recent
name=
"ai.qiwu.com.tts_offline.service"
/>
</key>
</key>
<key
name=
"CopyFile.RECENT_KEYS"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<recent
name=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/templates"
/>
<recent
name=
"$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/pojo"
/>
<recent
name=
"$PROJECT_DIR$/tts_offline/src/main/java/ai/qiwu/com/tts_offline/pojo"
/>
<recent
name=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo"
/>
<recent
name=
"$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo"
/>
<recent
name=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static"
/>
<recent
name=
"$PROJECT_DIR$/xiaoduhome/src/main/resources/static"
/>
<recent
name=
"$PROJECT_DIR$/xiaodu/src/main/resources/static/picture"
/>
<recent
name=
"$PROJECT_DIR$/xiaodu/src/main/resources/static/picture"
/>
<recent
name=
"$PROJECT_DIR$/third_party_load/src/main/resources/static"
/>
</key>
</key>
</component>
</component>
<component
name=
"RunDashboard"
>
<component
name=
"RunDashboard"
>
...
@@ -573,7 +649,7 @@
...
@@ -573,7 +649,7 @@
</list>
</list>
</option>
</option>
</component>
</component>
<component
name=
"RunManager"
selected=
"
Spring Boot.XiaoduhomeApplication
"
>
<component
name=
"RunManager"
selected=
"
Application.Utils
"
>
<configuration
name=
"DplBotService"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"DplBotService"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.xiaoduhome.service.DplBotService"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.xiaoduhome.service.DplBotService"
/>
<module
name=
"xiaoduhome"
/>
<module
name=
"xiaoduhome"
/>
...
@@ -587,12 +663,12 @@
...
@@ -587,12 +663,12 @@
<option
name=
"Make"
enabled=
"true"
/>
<option
name=
"Make"
enabled=
"true"
/>
</method>
</method>
</configuration>
</configuration>
<configuration
name=
"
Pcm2Wav
"
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.pcm.Pcm2Wav
"
/>
<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.pcm
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.
xiaoduhome.service
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</pattern>
</extension>
</extension>
...
@@ -600,12 +676,12 @@
...
@@ -600,12 +676,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=
"
RequestTerminal
"
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.RequestTerminal
"
/>
<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.pcm
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.
xiaoduhome.service
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</pattern>
</extension>
</extension>
...
@@ -613,12 +689,12 @@
...
@@ -613,12 +689,12 @@
<option
name=
"Make"
enabled=
"true"
/>
<option
name=
"Make"
enabled=
"true"
/>
</method>
</method>
</configuration>
</configuration>
<configuration
name=
"T
hirdPartyService
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"T
TSUtils
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.tts_service.
service.baidu.ThirdPartyService
"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.com.tts_service.
common.TTSUtils
"
/>
<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.baidu
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.com.tts_service.
common
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</pattern>
</extension>
</extension>
...
@@ -626,12 +702,12 @@
...
@@ -626,12 +702,12 @@
<option
name=
"Make"
enabled=
"true"
/>
<option
name=
"Make"
enabled=
"true"
/>
</method>
</method>
</configuration>
</configuration>
<configuration
name=
"
XiaoAiService
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"
Utils
"
type=
"Application"
factoryName=
"Application"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.
mi.xiaoai.service.XiaoAiService
"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"ai.qiwu.
com.xiaoduhome.common.Utils
"
/>
<module
name=
"xiao
ai
"
/>
<module
name=
"xiao
duhome
"
/>
<extension
name=
"coverage"
>
<extension
name=
"coverage"
>
<pattern>
<pattern>
<option
name=
"PATTERN"
value=
"ai.qiwu.
mi.xiaoai.service
.*"
/>
<option
name=
"PATTERN"
value=
"ai.qiwu.
com.xiaoduhome.common.config
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</pattern>
</extension>
</extension>
...
@@ -948,11 +1024,11 @@
...
@@ -948,11 +1024,11 @@
</method>
</method>
</configuration>
</configuration>
<list>
<list>
<item
itemvalue=
"Application.TTSUtils"
/>
<item
itemvalue=
"Application.ThirdPartyService"
/>
<item
itemvalue=
"Application.XiaoAiService"
/>
<item
itemvalue=
"Application.Pcm2Wav"
/>
<item
itemvalue=
"Application.DplBotService"
/>
<item
itemvalue=
"Application.DplBotService"
/>
<item
itemvalue=
"Application.LoadBySMS"
/>
<item
itemvalue=
"Application.RequestTerminal"
/>
<item
itemvalue=
"Application.Utils"
/>
<item
itemvalue=
"Application.TTSUtils"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.dingdong"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.dingdong"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.xiaodu"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.xiaodu"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.rokid"
/>
<item
itemvalue=
"ECS on Alibaba Cloud.rokid"
/>
...
@@ -976,11 +1052,11 @@
...
@@ -976,11 +1052,11 @@
</list>
</list>
<recent_temporary>
<recent_temporary>
<list>
<list>
<item
itemvalue=
"Application.DplBotService"
/>
<item
itemvalue=
"Application.Utils"
/>
<item
itemvalue=
"Application.Pcm2Wav"
/>
<item
itemvalue=
"Application.XiaoAiService"
/>
<item
itemvalue=
"Application.ThirdPartyService"
/>
<item
itemvalue=
"Application.TTSUtils"
/>
<item
itemvalue=
"Application.TTSUtils"
/>
<item
itemvalue=
"Application.RequestTerminal"
/>
<item
itemvalue=
"Application.DplBotService"
/>
<item
itemvalue=
"Application.LoadBySMS"
/>
</list>
</list>
</recent_temporary>
</recent_temporary>
</component>
</component>
...
@@ -1050,7 +1126,13 @@
...
@@ -1050,7 +1126,13 @@
<workItem
from=
"1565746182835"
duration=
"37172000"
/>
<workItem
from=
"1565746182835"
duration=
"37172000"
/>
<workItem
from=
"1565832528147"
duration=
"39298000"
/>
<workItem
from=
"1565832528147"
duration=
"39298000"
/>
<workItem
from=
"1565918898843"
duration=
"36818000"
/>
<workItem
from=
"1565918898843"
duration=
"36818000"
/>
<workItem
from=
"1566004595628"
duration=
"8950000"
/>
<workItem
from=
"1566004595628"
duration=
"33135000"
/>
<workItem
from=
"1566178034573"
duration=
"37671000"
/>
<workItem
from=
"1566264475469"
duration=
"32728000"
/>
<workItem
from=
"1566350897016"
duration=
"39445000"
/>
<workItem
from=
"1566437460123"
duration=
"34976000"
/>
<workItem
from=
"1566524520543"
duration=
"36419000"
/>
<workItem
from=
"1566609607491"
duration=
"4612000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
@@ -1060,7 +1142,7 @@
...
@@ -1060,7 +1142,7 @@
</history-entry>
</history-entry>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"1
306598
000"
/>
<option
name=
"totallyTimeSpent"
value=
"1
516634
000"
/>
</component>
</component>
<component
name=
"TodoView"
>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
<todo-panel
id=
"selected-file"
>
...
@@ -1072,7 +1154,7 @@
...
@@ -1072,7 +1154,7 @@
</todo-panel>
</todo-panel>
</component>
</component>
<component
name=
"ToolWindowManager"
>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
65"
y=
"-4"
width=
"1855"
height=
"1084"
extended-state=
"6
"
/>
<frame
x=
"
15"
y=
"194"
width=
"1416"
height=
"1055"
extended-state=
"0
"
/>
<editor
active=
"true"
/>
<editor
active=
"true"
/>
<layout>
<layout>
<window_info
id=
"Structure"
order=
"0"
sideWeight=
"0.50911164"
side_tool=
"true"
weight=
"0.21856725"
/>
<window_info
id=
"Structure"
order=
"0"
sideWeight=
"0.50911164"
side_tool=
"true"
weight=
"0.21856725"
/>
...
@@ -1083,466 +1165,466 @@
...
@@ -1083,466 +1165,466 @@
<window_info
id=
"Favorites"
order=
"5"
sideWeight=
"0.5017626"
side_tool=
"true"
weight=
"0.25712198"
/>
<window_info
id=
"Favorites"
order=
"5"
sideWeight=
"0.5017626"
side_tool=
"true"
weight=
"0.25712198"
/>
<window_info
id=
"Alibaba Cloud Explorer"
order=
"6"
sideWeight=
"0.49941108"
weight=
"0.32843497"
/>
<window_info
id=
"Alibaba Cloud Explorer"
order=
"6"
sideWeight=
"0.49941108"
weight=
"0.32843497"
/>
<window_info
id=
"Web"
order=
"7"
side_tool=
"true"
/>
<window_info
id=
"Web"
order=
"7"
side_tool=
"true"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"8"
sideWeight=
"0.4908884"
visible=
"true"
weight=
"0.
13890426
"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"8"
sideWeight=
"0.4908884"
visible=
"true"
weight=
"0.
20760234
"
/>
<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.2665148"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.26053214"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"2"
weight=
"0.39885056"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
visible=
"true"
weight=
"0.3736142"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"3"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"4"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"5"
weight=
"0.32873562"
/>
<window_info
anchor=
"bottom"
id=
"Spring"
order=
"6"
weight=
"0.32867885"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"7"
weight=
"0.3264368"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"8"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"9"
side_tool=
"true"
weight=
"0.32915717"
/>
<window_info
anchor=
"bottom"
id=
"Java Enterprise"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"Database Changes"
order=
"11"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"12"
weight=
"0.32975295"
/>
<window_info
anchor=
"bottom"
id=
"Alibaba Cloud View"
order=
"13"
weight=
"0.32979977"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"14"
weight=
"0.28701594"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"15"
weight=
"0.36104783"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Ant Build"
order=
"1"
weight=
"0.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=
"Capture Analysis"
order=
"4"
/>
<window_info
anchor=
"right"
id=
"Maven"
order=
"5"
weight=
"0.15350877"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"6"
weight=
"0.32748538"
/>
<window_info
anchor=
"right"
id=
"Palette	"
order=
"7"
/>
<window_info
anchor=
"right"
id=
"Theme Preview"
order=
"8"
/>
<window_info
anchor=
"right"
id=
"Bean Validation"
order=
"9"
weight=
"0.32991952"
/>
<window_info
anchor=
"right"
id=
"Alibaba Log Console"
order=
"10"
/>
</layout>
<layout-to-restore>
<window_info
id=
"Structure"
order=
"0"
sideWeight=
"0.50911164"
side_tool=
"true"
weight=
"0.21872714"
/>
<window_info
id=
"Designer"
order=
"1"
/>
<window_info
id=
"Image Layers"
order=
"2"
/>
<window_info
id=
"Capture Tool"
order=
"3"
/>
<window_info
id=
"UI Designer"
order=
"4"
/>
<window_info
id=
"Favorites"
order=
"5"
sideWeight=
"0.5017626"
side_tool=
"true"
weight=
"0.25712198"
/>
<window_info
id=
"Alibaba Cloud Explorer"
order=
"6"
sideWeight=
"0.49941108"
weight=
"0.32843497"
/>
<window_info
id=
"Web"
order=
"7"
side_tool=
"true"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"8"
sideWeight=
"0.4908884"
visible=
"true"
weight=
"0.22238478"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.2665148"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
weight=
"0.30410022"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.39885056"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.39885056"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
weight=
"0.32873562"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
weight=
"0.32873562"
/>
<window_info
anchor=
"bottom"
id=
"Spring"
order=
"7"
weight=
"0.32
902467
"
/>
<window_info
anchor=
"bottom"
id=
"Spring"
order=
"7"
weight=
"0.32
867885
"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"8"
weight=
"0.32
64368
"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"8"
weight=
"0.32
48337
"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"9"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"9"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"10"
side_tool=
"true"
weight=
"0.32915717"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"10"
side_tool=
"true"
weight=
"0.32915717"
/>
<window_info
anchor=
"bottom"
id=
"Java Enterprise"
order=
"11"
/>
<window_info
anchor=
"bottom"
id=
"Java Enterprise"
order=
"11"
/>
<window_info
anchor=
"bottom"
id=
"Database Changes"
order=
"12"
/>
<window_info
anchor=
"bottom"
id=
"Database Changes"
order=
"12"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"13"
weight=
"0.32975295"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"13"
weight=
"0.32975295"
/>
<window_info
anchor=
"bottom"
id=
"Alibaba Cloud View"
order=
"14"
weight=
"0.32979977"
/>
<window_info
anchor=
"bottom"
id=
"Alibaba Cloud View"
order=
"14"
weight=
"0.32979977"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"15"
weight=
"0.28
70159
4"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"15"
weight=
"0.28
60310
4"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Ant Build"
order=
"1"
weight=
"0.25"
/>
<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"
content_ui=
"combo"
id=
"Hierarchy"
order=
"2"
weight=
"0.25"
/>
<window_info
a
nchor=
"right"
id=
"Maven"
order=
"3"
weight=
"0.15362106
"
/>
<window_info
a
ctive=
"true"
anchor=
"right"
id=
"Maven"
order=
"3"
visible=
"true"
weight=
"0.20248538
"
/>
<window_info
anchor=
"right"
id=
"Palette"
order=
"4"
/>
<window_info
anchor=
"right"
id=
"Palette"
order=
"4"
/>
<window_info
anchor=
"right"
id=
"Capture Analysis"
order=
"5"
/>
<window_info
anchor=
"right"
id=
"Capture Analysis"
order=
"5"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"6"
weight=
"0.327
72493
"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"6"
weight=
"0.327
48538
"
/>
<window_info
anchor=
"right"
id=
"Palette	"
order=
"7"
/>
<window_info
anchor=
"right"
id=
"Palette	"
order=
"7"
/>
<window_info
anchor=
"right"
id=
"Theme Preview"
order=
"8"
/>
<window_info
anchor=
"right"
id=
"Theme Preview"
order=
"8"
/>
<window_info
anchor=
"right"
id=
"Bean Validation"
order=
"9"
weight=
"0.329
91952
"
/>
<window_info
anchor=
"right"
id=
"Bean Validation"
order=
"9"
weight=
"0.329
67836
"
/>
<window_info
anchor=
"right"
id=
"Alibaba Log Console"
order=
"10"
/>
<window_info
anchor=
"right"
id=
"Alibaba Log Console"
order=
"10"
/>
</layout
-to-restore
>
</layout>
</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/
pom.xml
"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/
src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/ProjectLabelRepository.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=
"
176
"
>
<caret
line=
"
32"
column=
"34"
lean-forward=
"true"
selection-start-line=
"32"
selection-start-column=
"34"
selection-end-line=
"32"
selection-end-column=
"34
"
/>
<caret
line=
"
14"
column=
"11"
selection-start-line=
"14"
selection-start-column=
"11"
selection-end-line=
"14"
selection-end-column=
"11
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$APPLICATION_CONFIG_DIR$/consoles/db/eca35561-cff4-46e2-adf3-8f0830701325/console.sql"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"107"
>
<caret
line=
"16"
column=
"32"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"32"
selection-end-line=
"16"
selection-end-column=
"32"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/com/squareup/okhttp3/okhttp/4.0.0/okhttp-4.0.0.jar!/okhttp3/Call.class
"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderIdTB.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=
"308"
>
<caret
line=
"12"
column=
"24"
selection-start-line=
"12"
selection-start-column=
"24"
selection-end-line=
"12"
selection-end-column=
"24"
/>
<caret
line=
"14"
column=
"5"
lean-forward=
"true"
selection-start-line=
"14"
selection-start-column=
"5"
selection-end-line=
"14"
selection-end-column=
"5"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiao
ai/src/main/java/ai/qiwu/mi/xiaoai/model/response/XiaoAiResponse
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiao
duhome/src/main/java/ai/qiwu/com/xiaoduhome/XiaoduhomeApplication
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
42
"
>
<state
relative-caret-position=
"2
86
"
>
<caret
line=
"
16"
column=
"13"
selection-start-line=
"16"
selection-start-column=
"13"
selection-end-line=
"16"
selection-end-column=
"13
"
/>
<caret
line=
"
20"
column=
"1"
lean-forward=
"true"
selection-start-line=
"20"
selection-start-column=
"1"
selection-end-line=
"20"
selection-end-column=
"1
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiao
ai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiao
duhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/SecondaryConfig
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"402"
>
<state
relative-caret-position=
"61"
>
<caret
line=
"214"
column=
"35"
lean-forward=
"true"
selection-start-line=
"214"
selection-start-column=
"35"
selection-end-line=
"214"
selection-end-column=
"35"
/>
<caret
line=
"23"
column=
"3"
selection-start-line=
"23"
selection-start-column=
"3"
selection-end-line=
"23"
selection-end-column=
"3"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/RequestTerminal.java
"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/data/spring-data-jpa/2.1.9.RELEASE/spring-data-jpa-2.1.9.RELEASE.jar!/org/springframework/data/jpa/repository/JpaRepository.class
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
33
"
>
<state
relative-caret-position=
"1
54
"
>
<caret
line=
"1
7"
column=
"39"
lean-forward=
"true"
selection-start-line=
"17"
selection-start-column=
"39"
selection-end-line=
"17"
selection-end-column=
"39
"
/>
<caret
line=
"1
5"
column=
"87"
selection-start-line=
"15"
selection-start-column=
"87"
selection-end-line=
"15"
selection-end-column=
"87
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/repository/SpeakerInfoRepository.java
"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/data/spring-data-commons/2.1.9.RELEASE/spring-data-commons-2.1.9.RELEASE.jar!/org/springframework/data/repository/query/QueryByExampleExecutor.class
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
76
"
>
<state
relative-caret-position=
"1
32
"
>
<caret
line=
"1
1"
column=
"17"
selection-start-line=
"11"
selection-start-column=
"17"
selection-end-line=
"11
"
selection-end-column=
"17"
/>
<caret
line=
"1
3"
column=
"17"
selection-start-line=
"13"
selection-start-column=
"17"
selection-end-line=
"13
"
selection-end-column=
"17"
/>
</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/data/request/Session.class
"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/PrimaryConfig.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
265
"
>
<state
relative-caret-position=
"
682
"
>
<caret
line=
"
56"
column=
"36"
selection-start-line=
"56"
selection-start-column=
"36"
selection-end-line=
"56"
selection-end-column=
"36
"
/>
<caret
line=
"
65"
column=
"1"
selection-start-line=
"65"
selection-start-column=
"1"
selection-end-line=
"65"
selection-end-column=
"1
"
/>
<folding>
<folding>
<element
signature=
"e#1358#1359#0"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#1396#1397#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/DataSourceConfig.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"503"
>
<caret
line=
"32"
column=
"50"
selection-start-line=
"32"
selection-start-column=
"50"
selection-end-line=
"32"
selection-end-column=
"50"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#1104#1105#0"
expanded=
"true"
/>
<element
signature=
"e#1130#1131#0"
expanded=
"true"
/>
<element
signature=
"e#894#895#0"
expanded=
"true"
/>
<element
signature=
"e#951#952#0"
expanded=
"true"
/>
</folding>
</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/resources/application.yml
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
305
"
>
<state
relative-caret-position=
"
418
"
>
<caret
line=
"1
48"
column=
"58"
selection-start-line=
"148"
selection-start-column=
"58"
selection-end-line=
"148"
selection-end-column=
"58
"
/>
<caret
line=
"1
9"
column=
"41"
selection-start-line=
"19"
selection-start-column=
"41"
selection-end-line=
"19"
selection-end-column=
"41
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/List
.java"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"283"
>
<state
relative-caret-position=
"374"
>
<caret
line=
"543"
column=
"6"
selection-start-line=
"543"
selection-start-column=
"6"
selection-end-line=
"543"
selection-end-column=
"6"
/>
<caret
line=
"17"
column=
"18"
selection-start-line=
"17"
selection-start-column=
"18"
selection-end-line=
"17"
selection-end-column=
"18"
/>
<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/
pojo/dpl/Data
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
repository/secondary/XiaoDuOrderTBIdRepository
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"352"
>
<state
relative-caret-position=
"352"
>
<caret
line=
"16"
column=
"
4"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"4"
selection-end-line=
"16"
selection-end-column=
"4
"
/>
<caret
line=
"16"
column=
"
18"
selection-start-line=
"16"
selection-start-column=
"18"
selection-end-line=
"16"
selection-end-column=
"18
"
/>
<folding>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/AbstractStringBuilder
.java"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"283"
>
<state
relative-caret-position=
"476"
>
<caret
line=
"753"
column=
"33"
selection-start-line=
"753"
selection-start-column=
"33"
selection-end-line=
"753"
selection-end-column=
"33"
/>
<caret
line=
"22"
column=
"46"
lean-forward=
"true"
selection-start-line=
"22"
selection-start-column=
"46"
selection-end-line=
"22"
selection-end-column=
"46"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/StringBuilder
.java"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/ServiceUtil
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"297"
>
<state
relative-caret-position=
"211"
>
<caret
line=
"243"
column=
"17"
lean-forward=
"true"
selection-start-line=
"243"
selection-start-column=
"17"
selection-end-line=
"243"
selection-end-column=
"17"
/>
<caret
line=
"27"
column=
"47"
selection-start-line=
"27"
selection-start-column=
"47"
selection-end-line=
"27"
selection-end-column=
"47"
/>
<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/data/response/directive/dpl/event/Payload.class
"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBTintRepository.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
352
"
>
<state
relative-caret-position=
"
198
"
>
<caret
line=
"1
9"
column=
"18"
selection-start-line=
"19"
selection-start-column=
"18"
selection-end-line=
"19"
selection-end-column=
"18
"
/>
<caret
line=
"1
3"
column=
"42"
selection-start-line=
"13"
selection-start-column=
"17"
selection-end-line=
"13"
selection-end-column=
"42
"
/>
<folding>
<folding>
<element
signature=
"e#428#429#0"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#467#468#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
pojo/QiWuResponse
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/
repository/primary/AppFlowerTBRepository
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
42
"
>
<state
relative-caret-position=
"2
64
"
>
<caret
line=
"1
1"
column=
"13"
selection-start-line=
"11"
selection-start-column=
"13"
selection-end-line=
"11"
selection-end-column=
"13
"
/>
<caret
line=
"1
6"
column=
"16"
selection-start-line=
"16"
selection-start-column=
"16"
selection-end-line=
"16"
selection-end-column=
"16
"
/>
<folding>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiao
ai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiao
duhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTB
.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=
"594"
>
<caret
line=
"9"
column=
"34"
lean-forward=
"true"
selection-start-line=
"9"
selection-start-column=
"34"
selection-end-line=
"9"
selection-end-column=
"34"
/>
<caret
line=
"36"
column=
"29"
selection-start-line=
"36"
selection-start-column=
"29"
selection-end-line=
"36"
selection-end-column=
"29"
/>
<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/data/response/directive/dpl/commands/AutoPageCommand.class
"
>
<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=
"
418
"
>
<state
relative-caret-position=
"
264
"
>
<caret
line=
"2
4"
column=
"11"
selection-start-line=
"24"
selection-start-column=
"11"
selection-end-line=
"24"
selection-end-column=
"11
"
/>
<caret
line=
"2
1"
column=
"28"
selection-start-line=
"21"
selection-start-column=
"28"
selection-end-line=
"21"
selection-end-column=
"28
"
/>
<folding>
<folding>
<element
signature=
"e#669#670#0"
expanded=
"true"
/>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#702#703#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
"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0.jar!/com/baidu/dueros/data/request/Session.class
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"418"
>
<state
relative-caret-position=
"264"
>
<caret
line=
"29"
column=
"50"
selection-start-line=
"29"
selection-start-column=
"50"
selection-end-line=
"29"
selection-end-column=
"50"
/>
<caret
line=
"18"
column=
"42"
selection-start-line=
"18"
selection-start-column=
"32"
selection-end-line=
"18"
selection-end-column=
"42"
/>
<folding>
<element
signature=
"e#1358#1359#0"
expanded=
"true"
/>
<element
signature=
"e#1396#1397#0"
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/data/response/directive/dpl/commands/SendEventCommand.class
"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTBTiny.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=
"616"
>
<caret
line=
"12"
column=
"13"
selection-start-line=
"12"
selection-start-column=
"13"
selection-end-line=
"12"
selection-end-column=
"13"
/>
<caret
line=
"28"
column=
"23"
selection-start-line=
"28"
selection-start-column=
"23"
selection-end-line=
"28"
selection-end-column=
"23"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/third_party_load/src/main/resources/static/bot-sdk-1.2.0.jar!/com/baidu/dueros/samples/dpl/DplBot.class
"
>
<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=
"
792
"
>
<state
relative-caret-position=
"
440
"
>
<caret
line=
"
179"
column=
"80"
selection-start-line=
"179"
selection-start-column=
"80"
selection-end-line=
"179"
selection-end-column=
"80
"
/>
<caret
line=
"
28"
column=
"37"
lean-forward=
"true"
selection-start-line=
"28"
selection-start-column=
"37"
selection-end-line=
"28"
selection-end-column=
"37
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/resources/application.yml
"
>
<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=
"
396
"
>
<state
relative-caret-position=
"
198
"
>
<caret
line=
"1
8"
column=
"21"
lean-forward=
"true"
selection-start-line=
"18"
selection-start-column=
"21"
selection-end-line=
"18"
selection-end-column=
"21
"
/>
<caret
line=
"1
9"
column=
"6"
selection-start-line=
"19"
selection-start-column=
"6"
selection-end-line=
"19"
selection-end-column=
"6
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/jre/lib/rt.jar!/sun/misc/Unsafe.class
"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/ProductController.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
283
"
>
<state
relative-caret-position=
"
484
"
>
<caret
line=
"
353"
column=
"23"
selection-start-line=
"353"
selection-start-column=
"23"
selection-end-line=
"353"
selection-end-column=
"23
"
/>
<caret
line=
"
43"
column=
"41"
selection-start-line=
"43"
selection-start-column=
"41"
selection-end-line=
"43"
selection-end-column=
"41
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Object
.java"
>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
613
"
>
<state
relative-caret-position=
"
229
"
>
<caret
line=
"
381"
column=
"29"
selection-start-line=
"381"
selection-start-column=
"29"
selection-end-line=
"381"
selection-end-column=
"29
"
/>
<caret
line=
"
45"
column=
"31"
selection-start-line=
"45"
selection-start-column=
"31"
selection-end-line=
"45"
selection-end-column=
"31
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"jar://$PROJECT_DIR$/../../../../
java/jdk1.8.0_211/src.zip!/java/util/concurrent/locks/LockSupport.java
"
>
<entry
file=
"jar://$PROJECT_DIR$/../../../../
maven/myRepository/org/apache/tomcat/embed/tomcat-embed-core/9.0.21/tomcat-embed-core-9.0.21.jar!/javax/servlet/http/HttpServletResponse.class
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
297
"
>
<state
relative-caret-position=
"
132
"
>
<caret
line=
"
315"
column=
"11"
selection-start-line=
"315"
selection-start-column=
"11"
selection-end-line=
"315"
selection-end-column=
"11
"
/>
<caret
line=
"
13"
column=
"17"
selection-start-line=
"13"
selection-start-column=
"17"
selection-end-line=
"13"
selection-end-column=
"17
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/json/demo01.json
"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSResponse.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
418
"
>
<state
relative-caret-position=
"
374
"
>
<caret
line=
"
46"
column=
"22"
lean-forward=
"true"
selection-start-line=
"46"
selection-start-column=
"22"
selection-end-line=
"46"
selection-end-column=
"22
"
/>
<caret
line=
"
22"
column=
"11"
selection-start-line=
"22"
selection-start-column=
"11"
selection-end-line=
"22"
selection-end-column=
"11
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/
home
.json"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/
onLunch2
.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
418
"
>
<state
relative-caret-position=
"
-2354
"
>
<caret
line=
"1
9"
column=
"109"
selection-start-line=
"19"
selection-start-column=
"109"
selection-end-line=
"19"
selection-end-column=
"109
"
/>
<caret
line=
"1
8"
column=
"28"
selection-start-line=
"18"
selection-start-column=
"28"
selection-end-line=
"18"
selection-end-column=
"28
"
/>
</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/java/ai/qiwu/com/xiaoduhome/pojo/QiWuResponse
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"283"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"1696"
column=
"15"
selection-start-line=
"1696"
selection-start-column=
"15"
selection-end-line=
"1696"
selection-end-column=
"15"
/>
<caret
line=
"14"
column=
"26"
lean-forward=
"true"
selection-start-line=
"14"
selection-start-column=
"26"
selection-end-line=
"14"
selection-end-column=
"26"
/>
<folding>
<element
signature=
"e#66457#66458#0"
expanded=
"true"
/>
<element
signature=
"e#66495#66496#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/OnTableProductInfo.java"
/>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ResponseEncapsulation.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/OnTableProductRepository.java"
/>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/GameProjectTb.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"650"
>
<state
relative-caret-position=
"1785"
>
<caret
line=
"36"
column=
"32"
selection-start-line=
"36"
selection-start-column=
"32"
selection-end-line=
"36"
selection-end-column=
"32"
/>
<caret
line=
"186"
column=
"41"
lean-forward=
"true"
selection-start-line=
"186"
selection-start-column=
"41"
selection-end-line=
"186"
selection-end-column=
"41"
/>
<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/repository/AllOnProductInfoRepository.java
"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/
resources/static/json/play.json
"
>
<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=
"946"
>
<caret
line=
"9"
column=
"27"
lean-forward=
"true"
selection-start-line=
"9"
selection-start-column=
"27"
selection-end-line=
"9"
selection-end-column=
"27"
/>
<caret
line=
"56"
column=
"11"
selection-start-line=
"56"
selection-start-column=
"11"
selection-end-line=
"56"
selection-end-column=
"11"
/>
<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/repository/GameProjectTbRepository
.java"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data
.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=
"443"
>
<caret
line=
"13"
column=
"62"
selection-start-line=
"13"
selection-start-column=
"41"
selection-end-line=
"13"
selection-end-column=
"62"
/>
<caret
line=
"26"
column=
"11"
selection-start-line=
"26"
selection-start-column=
"11"
selection-end-line=
"26"
selection-end-column=
"11"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiao
duhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/ProjectLabel
s.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiao
ai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstant
s.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"330"
>
<state
relative-caret-position=
"154"
>
<caret
line=
"15"
column=
"26"
selection-start-line=
"15"
selection-start-column=
"13"
selection-end-line=
"15"
selection-end-column=
"26"
/>
<caret
line=
"7"
column=
"4"
lean-forward=
"true"
selection-start-line=
"7"
selection-start-column=
"4"
selection-end-line=
"7"
selection-end-column=
"4"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiao
duhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/ProjectLabelRepository
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiao
ai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
352
"
>
<state
relative-caret-position=
"
787
"
>
<caret
line=
"1
6"
selection-start-line=
"16"
selection-end-line=
"16
"
/>
<caret
line=
"1
59"
column=
"9"
selection-start-line=
"159"
selection-start-column=
"9"
selection-end-line=
"159"
selection-end-column=
"9
"
/>
<folding>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#5548#5549#0"
expanded=
"true"
/>
<element
signature=
"e#5606#5607#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiao
duhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/ProjectLabel
.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiao
ai/src/main/java/ai/qiwu/mi/xiaoai/controller/XiaoAiController
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"572"
>
<state
relative-caret-position=
"418"
>
<caret
line=
"26"
column=
"29"
selection-start-line=
"26"
selection-start-column=
"29"
selection-end-line=
"26"
selection-end-column=
"29"
/>
<caret
line=
"29"
column=
"8"
selection-start-line=
"29"
selection-start-column=
"8"
selection-end-line=
"29"
selection-end-column=
"8"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml
"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/io/File.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
42
"
>
<state
relative-caret-position=
"2
91
"
>
<caret
line=
"1
1"
column=
"48"
lean-forward=
"true"
selection-start-line=
"11"
selection-start-column=
"48"
selection-end-line=
"11"
selection-end-column=
"48
"
/>
<caret
line=
"1
005"
column=
"19"
selection-start-line=
"1005"
selection-start-column=
"19"
selection-end-line=
"1005"
selection-end-column=
"19
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/OnProductDetai
l.java"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/sound/Cal
l.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"716"
>
<state
relative-caret-position=
"462"
>
<caret
line=
"46"
column=
"32"
selection-start-line=
"46"
selection-start-column=
"32"
selection-end-line=
"46"
selection-end-column=
"32"
/>
<caret
line=
"23"
column=
"11"
selection-start-line=
"23"
selection-start-column=
"11"
selection-end-line=
"23"
selection-end-column=
"11"
/>
<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/pojo/dpl/Event
.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=
"
330
"
>
<state
relative-caret-position=
"
437
"
>
<caret
line=
"
18"
column=
"42"
lean-forward=
"true"
selection-start-line=
"18"
selection-start-column=
"42"
selection-end-line=
"18"
selection-end-column=
"42
"
/>
<caret
line=
"
78"
column=
"33"
selection-start-line=
"78"
selection-start-column=
"33"
selection-end-line=
"78"
selection-end-column=
"33
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java
"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0.jar!/com/baidu/dueros/data/response/directive/dpl/commands/SetStateCommand.class
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
85
"
>
<state
relative-caret-position=
"3
74
"
>
<caret
line=
"
168"
column=
"36"
lean-forward=
"true"
selection-start-line=
"168"
selection-start-column=
"36"
selection-end-line=
"168"
selection-end-column=
"36
"
/>
<caret
line=
"
24"
column=
"27"
selection-start-line=
"24"
selection-start-column=
"27"
selection-end-line=
"24"
selection-end-column=
"27
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService
.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=
"
197
"
>
<state
relative-caret-position=
"
503
"
>
<caret
line=
"
88"
column=
"48"
selection-start-line=
"88"
selection-start-column=
"48"
selection-end-line=
"88"
selection-end-column=
"4
8"
/>
<caret
line=
"
45"
column=
"28"
selection-start-line=
"45"
selection-start-column=
"15"
selection-end-line=
"45"
selection-end-column=
"2
8"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
286
"
>
<state
relative-caret-position=
"
-377
"
>
<caret
line=
"
26"
column=
"47"
lean-forward=
"true"
selection-start-line=
"26"
selection-start-column=
"47"
selection-end-line=
"26"
selection-end-column=
"47
"
/>
<caret
line=
"
116"
column=
"39"
selection-start-line=
"116"
selection-start-column=
"39"
selection-end-line=
"116"
selection-end-column=
"39
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiao
ai/src/main/java/ai/qiwu/mi/xiaoai/commons/OkHttp3
Utils.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiao
duhome/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=
"
1518
"
>
<state
relative-caret-position=
"
2024
"
>
<caret
line=
"
78"
column=
"9"
lean-forward=
"true"
selection-start-line=
"78"
selection-start-column=
"9"
selection-end-line=
"78"
selection-end-column=
"9
"
/>
<caret
line=
"
103"
column=
"50"
selection-start-line=
"103"
selection-start-column=
"50"
selection-end-line=
"103"
selection-end-column=
"50
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/resources/tts.properties
"
>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/json/productInfo.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
22
"
>
<state
relative-caret-position=
"
4004
"
>
<caret
line=
"1
"
column=
"20"
selection-start-line=
"1"
selection-start-column=
"20"
selection-end-line=
"1"
selection-end-column=
"20
"
/>
<caret
line=
"1
82"
column=
"51"
selection-start-line=
"182"
selection-start-column=
"51"
selection-end-line=
"182"
selection-end-column=
"51
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/
Schedule
Service.java"
>
<entry
file=
"file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/
DplBot
Service.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=
"7854"
>
<caret
line=
"33"
column=
"66"
selection-start-line=
"33"
selection-start-column=
"66"
selection-end-line=
"33"
selection-end-column=
"66"
/>
<caret
line=
"716"
selection-start-line=
"716"
selection-end-line=
"716"
/>
<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/XiaoDuHomeController
.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=
"
352
"
>
<state
relative-caret-position=
"
291
"
>
<caret
line=
"2
4"
column=
"38"
selection-start-line=
"24"
selection-start-column=
"38"
selection-end-line=
"24"
selection-end-column=
"38
"
/>
<caret
line=
"2
14"
column=
"23"
selection-start-line=
"214"
selection-start-column=
"23"
selection-end-line=
"214"
selection-end-column=
"23
"
/>
</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/service/TTService
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"484"
>
<state
relative-caret-position=
"370"
>
<caret
line=
"22"
column=
"80"
selection-start-line=
"22"
selection-start-column=
"80"
selection-end-line=
"22"
selection-end-column=
"80"
/>
<caret
line=
"549"
column=
"45"
selection-start-line=
"549"
selection-start-column=
"45"
selection-end-line=
"549"
selection-end-column=
"45"
/>
<folding>
<element
signature=
"e#23314#23360#0"
/>
<element
signature=
"e#24229#24343#0"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item.java
"
>
<entry
file=
"file://$PROJECT_DIR$/
tts_service/src/main/resources/tts.properties
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
4
08"
>
<state
relative-caret-position=
"
3
08"
>
<caret
line=
"
67"
column=
"31"
lean-forward=
"true"
selection-start-line=
"67"
selection-start-column=
"31"
selection-end-line=
"67"
selection-end-column=
"31
"
/>
<caret
line=
"
14"
column=
"22"
selection-start-line=
"14"
selection-start-column=
"22"
selection-end-line=
"14"
selection-end-column=
"22
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/json/onLunch.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=
"528"
>
<state
relative-caret-position=
"366"
>
<caret
line=
"39"
column=
"33"
lean-forward=
"true"
selection-start-line=
"39"
selection-start-column=
"33"
selection-end-line=
"39"
selection-end-column=
"33"
/>
<caret
line=
"199"
column=
"36"
selection-start-line=
"199"
selection-start-column=
"25"
selection-end-line=
"199"
selection-end-column=
"36"
/>
<folding>
<element
signature=
"e#7233#7234#0"
expanded=
"true"
/>
<element
signature=
"e#7284#7285#0"
expanded=
"true"
/>
<element
signature=
"e#7338#7339#0"
expanded=
"true"
/>
<element
signature=
"e#7382#7383#0"
expanded=
"true"
/>
<element
signature=
"e#7410#7411#0"
expanded=
"true"
/>
<element
signature=
"e#7441#7442#0"
expanded=
"true"
/>
<element
signature=
"e#7862#7863#0"
expanded=
"true"
/>
<element
signature=
"e#7899#7900#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotServic
e.java"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Runtim
e.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
6
7"
>
<state
relative-caret-position=
"3
2
7"
>
<caret
line=
"
191"
column=
"63"
lean-forward=
"true"
selection-start-line=
"191"
selection-start-column=
"63"
selection-end-line=
"191"
selection-end-column=
"63
"
/>
<caret
line=
"
616"
column=
"42"
selection-start-line=
"616"
selection-start-column=
"34"
selection-end-line=
"616"
selection-end-column=
"42
"
/>
<folding>
<folding>
<element
signature=
"e#
2869#2904#0
"
/>
<element
signature=
"e#
1272#1273#0"
expanded=
"true
"
/>
<element
signature=
"e#1
2087#12135#0
"
/>
<element
signature=
"e#1
309#1310#0"
expanded=
"true
"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"
file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json
"
>
<entry
file=
"
jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/ProcessBuilder.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
287
"
>
<state
relative-caret-position=
"
-641
"
>
<caret
line=
"1
60"
column=
"45"
lean-forward=
"true"
selection-start-line=
"160"
selection-start-column=
"45"
selection-end-line=
"160"
selection-end-column=
"45
"
/>
<caret
line=
"1
79"
column=
"32"
selection-start-line=
"179"
selection-start-column=
"25"
selection-end-line=
"179"
selection-end-column=
"32
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
xiaoduhome/src/main/resources/static/json/play.json
"
>
<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=
"616"
>
<state
relative-caret-position=
"132"
>
<caret
line=
"37"
column=
"32"
lean-forward=
"true"
selection-start-line=
"37"
selection-start-column=
"32"
selection-end-line=
"37"
selection-end-column=
"32"
/>
<caret
line=
"53"
column=
"75"
selection-start-line=
"53"
selection-start-column=
"75"
selection-end-line=
"53"
selection-end-column=
"75"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/tts_service/src/main/resources/application.yml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"88"
>
<caret
line=
"4"
column=
"28"
lean-forward=
"true"
selection-start-line=
"4"
selection-start-column=
"28"
selection-end-line=
"4"
selection-end-column=
"28"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
...
tts_offline/src/main/java/ai/qiwu/com/tts_offline/common/CallPython.java
View file @
fda1e77c
...
@@ -26,7 +26,7 @@ public class CallPython {
...
@@ -26,7 +26,7 @@ public class CallPython {
String
result
=
processUtilInJava
(
command
);
String
result
=
processUtilInJava
(
command
);
if
(
"1"
.
equals
(
result
))
{
if
(
"1"
.
equals
(
result
))
{
if
(!
TTSUtils
.
doesFileExist
(
filename
))
{
if
(!
TTSUtils
.
doesFileExist
(
filename
))
{
log
.
error
(
"检测到mp3文件不存在:{}
"
,
filename
);
log
.
error
(
"检测到mp3文件不存在:{}
,command{}"
,
filename
,
command
);
result
=
"0"
;
result
=
"0"
;
}
}
}
}
...
...
tts_offline/src/main/java/ai/qiwu/com/tts_offline/common/Config.java
View file @
fda1e77c
...
@@ -37,4 +37,8 @@ public class Config {
...
@@ -37,4 +37,8 @@ public class Config {
if
(
StringUtils
.
isBlank
(
value
))
return
defaultValue
;
if
(
StringUtils
.
isBlank
(
value
))
return
defaultValue
;
return
value
.
trim
();
return
value
.
trim
();
}
}
public
static
void
main
(
String
[]
args
)
{
}
}
}
tts_offline/src/main/java/ai/qiwu/com/tts_offline/service/OfflineService.java
View file @
fda1e77c
...
@@ -32,7 +32,7 @@ public class OfflineService {
...
@@ -32,7 +32,7 @@ public class OfflineService {
/**
/**
* 根据请求信息找到对应的wav文件,路径是servername/botname/person/mood/xxx.wav.
* 根据请求信息找到对应的wav文件,路径是servername/botname/person/mood/xxx.wav.
* 文件存在,若format字段等与wav则返回该wav文件的内容,否则返回servername/botname/person/mood/xxx.mp3
文件内容
* 文件存在,若format字段等与wav则返回该wav文件的内容,否则返回servername/botname/person/mood/xxx.mp3
* @param request
* @param request
* @param response
* @param response
* @param requestMethod
* @param requestMethod
...
...
tts_service/pom.xml
View file @
fda1e77c
...
@@ -74,6 +74,10 @@
...
@@ -74,6 +74,10 @@
<groupId>
org.slf4j
</groupId>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
<artifactId>
slf4j-log4j12
</artifactId>
</exclusion>
</exclusion>
<exclusion>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-simple
</artifactId>
</exclusion>
</exclusions>
</exclusions>
<version>
4.11.3
</version>
<version>
4.11.3
</version>
</dependency>
</dependency>
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java
View file @
fda1e77c
...
@@ -17,14 +17,12 @@ public class CallPython {
...
@@ -17,14 +17,12 @@ public class CallPython {
private
static
String
INTERPRETER
;
private
static
String
INTERPRETER
;
private
static
final
String
COMBINE_FILE
=
""
;
private
static
final
String
COMBINE_FILE
=
""
;
public
static
String
changeSound
(
String
wav_filename
,
Double
volume
,
Double
speed
,
Double
pitch
,
String
filename
)
{
public
static
String
changeSound
(
String
wav_filename
,
Double
volume
,
Double
speed
,
Double
pitch
,
String
filename
)
{
String
command
=
ChangeSound
.
changeSound
(
wav_filename
,
volume
,
speed
,
pitch
,
filename
);
String
command
=
ChangeSound
.
changeSound
(
wav_filename
,
volume
,
speed
,
pitch
,
filename
);
log
.
info
(
"命令:{}"
,
command
);
String
result
=
execute
(
command
);
String
result
=
processUtilInJava
(
command
);
if
(
"1"
.
equals
(
result
))
{
if
(
"1"
.
equals
(
result
))
{
if
(!
TTSUtils
.
doesFileExist
(
filename
))
{
if
(!
TTSUtils
.
doesFileExist
(
filename
))
{
log
.
error
(
"检测到mp3文件不存在:{}
"
,
filename
);
log
.
error
(
"检测到mp3文件不存在:{}
,命令:{}"
,
filename
,
command
);
result
=
"0"
;
result
=
"0"
;
}
}
}
}
...
@@ -52,54 +50,107 @@ public class CallPython {
...
@@ -52,54 +50,107 @@ public class CallPython {
INTERPRETER
=
interpreter
;
INTERPRETER
=
interpreter
;
}
}
private
static
String
execute
(
String
arg
)
{
ProcessBuilder
processBuilder
=
new
ProcessBuilder
(
arg
.
split
(
" "
));
processBuilder
.
redirectErrorStream
(
true
);
//错误输出流合并到标准输出流中
StringBuilder
builder
=
new
StringBuilder
();
Process
process
=
null
;
try
{
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
(
"sox执行出错:{}"
,
builder
.
toString
());
return
"0"
;
}
}
else
{
while
((
line
=
reader
.
readLine
())
!=
null
)
{
builder
.
append
(
line
);
}
log
.
info
(
"sox返回信息:{}"
,
builder
.
toString
());
}
}
catch
(
IOException
e
)
{
log
.
info
(
"Error while running Sox. {}"
,
e
.
getMessage
());
return
"0"
;
}
catch
(
InterruptedException
e
)
{
log
.
info
(
"Error while running Sox. {}"
,
e
.
getMessage
());
}
finally
{
if
(
process
!=
null
)
process
.
destroy
();
}
return
"1"
;
}
private
static
String
processUtilInJava
(
String
arg
)
{
private
static
String
processUtilInJava
(
String
arg
)
{
final
StringBuilder
successResult
=
new
StringBuilder
();
final
StringBuilder
successResult
=
new
StringBuilder
();
final
StringBuilder
failResult
=
new
StringBuilder
();
final
StringBuilder
failResult
=
new
StringBuilder
();
Process
process
=
null
;
InputStream
inputStream
=
null
;
InputStream
errorStream
=
null
;
try
{
try
{
process
=
Runtime
.
getRuntime
().
exec
(
arg
);
Process
process
=
Runtime
.
getRuntime
().
exec
(
arg
);
final
InputStream
inputStream
=
process
.
getInputStream
();
inputStream
=
process
.
getInputStream
();
final
InputStream
errorStream
=
process
.
getErrorStream
();
errorStream
=
process
.
getErrorStream
();
//final InputStream inputStream = process.getInputStream();
//final InputStream errorStream = process.getErrorStream();
String
line
;
try
(
BufferedReader
reader
=
new
BufferedReader
(
new
InputStreamReader
(
inputStream
))){
while
((
line
=
reader
.
readLine
())
!=
null
)
{
successResult
.
append
(
line
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"读取Process输入流出错:{}"
,
e
.
toString
());
}
new
Thread
(()
->
{
try
(
BufferedReader
reader
=
new
BufferedReader
(
new
InputStreamReader
(
errorStream
))){
String
line
;
while
((
line
=
reader
.
readLine
())
!=
null
)
{
try
(
BufferedReader
reader
=
new
BufferedReader
(
new
InputStreamReader
(
inputStream
));){
failResult
.
append
(
line
);
while
((
line
=
reader
.
readLine
())
!=
null
)
{
successResult
.
append
(
line
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"读取Process输入流出错:{}"
,
e
.
toString
());
}
}
}).
start
();
}
catch
(
Exception
e
)
{
log
.
error
(
"读取Process error流出错:{}"
,
e
.
toString
());
}
new
Thread
(()
->
{
// new Thread(() -> {
// String line;
// try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));){
// while ((line = reader.readLine()) != null) {
// successResult.append(line);
// }
// } catch (Exception e) {
// log.error("读取Process输入流出错:{}",e.toString());
// }
// }).start();
String
line
;
// new Thread(() -> {
try
(
BufferedReader
reader
=
new
BufferedReader
(
new
InputStreamReader
(
errorStream
));){
//
while
((
line
=
reader
.
readLine
())
!=
null
)
{
// String lines;
failResult
.
append
(
line
);
// try (BufferedReader reader = new BufferedReader(new InputStreamReader(errorStream));){
}
// while ((lines = reader.readLine()) != null) {
}
catch
(
Exception
e
)
{
// failResult.append(lines);
log
.
error
(
"读取Process error流出错:{}"
,
e
.
toString
());
// }
}
// } catch (Exception e) {
}).
start
();
// log.error("读取Process error流出错:{}",e.toString());
// }
// }).start();
process
.
waitFor
();
process
.
waitFor
();
process
.
destroy
();
process
.
destroy
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"调用sox出错:{}"
,
e
.
toString
());
}
finally
{
try
{
try
{
if
(
process
!=
null
)
{
if
(
inputStream
!=
null
)
inputStream
.
close
();
process
.
getInputStream
().
close
();
if
(
errorStream
!=
null
)
errorStream
.
close
();
process
.
getErrorStream
().
close
();
}
catch
(
IOException
e
)
{
process
.
getOutputStream
().
close
();
log
.
error
(
"关闭process的流出错:{}"
,
e
.
toString
());
}
}
catch
(
Exception
e1
)
{
log
.
error
(
"关闭Process的流出错:{}"
,
e1
.
toString
());
}
}
}
}
if
(
successResult
.
length
()
==
0
)
return
"1"
;
if
(
successResult
.
length
()
==
0
)
return
"1"
;
else
{
else
{
log
.
error
(
"打印Process的错误流信息:{}
"
,
fail
Result
.
toString
());
log
.
error
(
"打印Process的错误流信息:{}
,输入流信息:{}"
,
failResult
.
toString
(),
success
Result
.
toString
());
return
null
;
return
null
;
}
}
}
}
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/common/ChangeSound.java
View file @
fda1e77c
...
@@ -109,8 +109,4 @@ public class ChangeSound {
...
@@ -109,8 +109,4 @@ public class ChangeSound {
Call
call
=
new
Call
(
wavFile
,
outFile
,
OFOPTS
);
Call
call
=
new
Call
(
wavFile
,
outFile
,
OFOPTS
);
return
call
(
call
,
selfCommand
);
return
call
(
call
,
selfCommand
);
}
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
Double
.
parseDouble
(
"0.0"
)
!=
0
);
}
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java
View file @
fda1e77c
...
@@ -136,17 +136,20 @@ public class OkHttp3Utils {
...
@@ -136,17 +136,20 @@ public class OkHttp3Utils {
try
(
Response
response
=
timeoutClient
.
newCall
(
builder
.
build
()).
execute
()){
try
(
Response
response
=
timeoutClient
.
newCall
(
builder
.
build
()).
execute
()){
//log.info("doPostTimeout请求返回:{}", response.code());
//log.info("doPostTimeout请求返回:{}", response.code());
// log.info("response3333333 :{}",response.header("usetime"));
// log.info("response3333333 :{}",response.header("usetime"));
if
(
response
.
code
()
==
200
)
{
int
code
=
response
.
code
();
if
(
code
==
200
)
{
if
(
file
!=
null
)
{
if
(
file
!=
null
)
{
try
(
BufferedSink
sink
=
Okio
.
buffer
(
Okio
.
sink
(
file
))){
try
(
BufferedSink
sink
=
Okio
.
buffer
(
Okio
.
sink
(
file
))){
sink
.
writeAll
(
Objects
.
requireNonNull
(
response
.
body
()).
source
());
sink
.
writeAll
(
Objects
.
requireNonNull
(
response
.
body
()).
source
());
codeWithData
=
new
ResponseCodeWithData
(
response
.
code
()
);
codeWithData
=
new
ResponseCodeWithData
(
code
);
}
}
}
else
{
}
else
{
codeWithData
=
new
ResponseCodeWithData
(
response
.
code
()
,
response
.
body
().
string
());
codeWithData
=
new
ResponseCodeWithData
(
code
,
response
.
body
().
string
());
}
}
return
codeWithData
;
}
}
return
codeWithData
;
//log.info("response code:{}", code);
return
new
ResponseCodeWithData
(
code
,
"返回响应码不为200"
);
}
catch
(
SocketTimeoutException
e
)
{
}
catch
(
SocketTimeoutException
e
)
{
log
.
error
(
"捕获到SocketTimeoutException:{}"
,
e
.
toString
());
log
.
error
(
"捕获到SocketTimeoutException:{}"
,
e
.
toString
());
client
.
dispatcher
().
cancelAll
();
client
.
dispatcher
().
cancelAll
();
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java
View file @
fda1e77c
...
@@ -53,10 +53,14 @@ public class TTSUtils {
...
@@ -53,10 +53,14 @@ public class TTSUtils {
public
static
File
createFileReturnIts
(
String
path
)
throws
IOException
{
public
static
File
createFileReturnIts
(
String
path
)
throws
IOException
{
File
file
=
new
File
(
path
);
File
file
=
new
File
(
path
);
if
(!
file
.
exists
()
||
file
.
isDirectory
())
{
if
(
file
.
exists
())
{
if
(!
file
.
createNewFile
())
return
null
;
if
(
file
.
delete
())
{
if
(
file
.
createNewFile
())
return
new
File
(
path
);
}
}
else
{
if
(
file
.
createNewFile
())
return
new
File
(
path
);
}
}
return
file
;
return
null
;
}
}
public
static
String
createFile
(
String
dir
,
String
fileName
)
{
public
static
String
createFile
(
String
dir
,
String
fileName
)
{
...
@@ -96,17 +100,32 @@ public class TTSUtils {
...
@@ -96,17 +100,32 @@ public class TTSUtils {
public
static
String
pythonlistToStr
(
List
<
String
>
file_ls
)
{
public
static
String
pythonlistToStr
(
List
<
String
>
file_ls
)
{
StringBuilder
builder
=
new
StringBuilder
(
"['"
);
StringBuilder
builder
=
new
StringBuilder
(
"['"
);
int
ln
=
file_ls
.
size
();
for
(
String
str
:
file_ls
)
{
for
(
String
str
:
file_ls
)
{
builder
.
append
(
str
).
append
(
"', '"
);
if
(--
ln
==
0
)
{
builder
.
append
(
str
).
append
(
"']"
);
}
else
{
builder
.
append
(
str
).
append
(
"', '"
);
}
}
}
String
bStr
=
builder
.
toString
();
return
buildMP3Filename
(
builder
.
toString
());
String
res
=
bStr
.
substring
(
0
,
bStr
.
length
()-
3
)+
"]"
;
return
buildMP3Filename
(
res
);
}
}
public
static
boolean
doesFileExist
(
String
filePath
)
{
public
static
boolean
doesFileExist
(
String
filePath
)
{
File
file
=
new
File
(
filePath
);
File
file
=
new
File
(
filePath
);
return
file
.
exists
();
if
(
file
.
exists
())
{
//log.info("文件:{},大小为:{}", filePath, file.length());
if
(
file
.
length
()
==
0
)
{
if
(
file
.
delete
())
{
log
.
info
(
"大小为0的文件:{}, 删除成功"
,
filePath
);
}
else
{
log
.
info
(
"大小为0的文件:{}, 删除失败"
,
filePath
);
}
return
false
;
}
return
true
;
}
return
false
;
}
}
...
@@ -195,7 +214,7 @@ public class TTSUtils {
...
@@ -195,7 +214,7 @@ public class TTSUtils {
public
static
void
combineMp3File
(
List
<
String
>
filePathList
,
String
targetFilepath
)
public
static
void
combineMp3File
(
List
<
String
>
filePathList
,
String
targetFilepath
)
throws
IOException
{
throws
IOException
{
try
(
BufferedOutputStream
outputStream
=
new
BufferedOutputStream
(
new
FileOutputStream
(
new
File
(
targetFilepath
)))
;
){
try
(
BufferedOutputStream
outputStream
=
new
BufferedOutputStream
(
new
FileOutputStream
(
new
File
(
targetFilepath
)))){
AudioEnumeration
<
InputStream
>
audioEnumeration
=
new
AudioEnumeration
<>();
AudioEnumeration
<
InputStream
>
audioEnumeration
=
new
AudioEnumeration
<>();
for
(
String
filepath
:
filePathList
)
{
for
(
String
filepath
:
filePathList
)
{
if
(
filepath
.
equals
(
Initialize
.
getThirdParty
()))
{
if
(
filepath
.
equals
(
Initialize
.
getThirdParty
()))
{
...
@@ -262,4 +281,13 @@ public class TTSUtils {
...
@@ -262,4 +281,13 @@ public class TTSUtils {
return
result
;
return
result
;
}
}
}
}
public
static
void
main
(
String
[]
args
)
{
ArrayList
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
"sagwsahah"
);
list
.
add
(
"sgahh"
);
list
.
add
(
"wrte2323"
);
list
.
add
(
"wrt67868e2323"
);
pythonlistToStr
(
list
);
}
}
}
tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java
View file @
fda1e77c
...
@@ -197,7 +197,7 @@ public class Initialize implements InitializingBean {
...
@@ -197,7 +197,7 @@ public class Initialize implements InitializingBean {
return
SERVER_URL
;
return
SERVER_URL
;
}
}
static
String
getAudioDir
()
{
public
static
String
getAudioDir
()
{
return
AUDIO_DIR
;
return
AUDIO_DIR
;
}
}
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/service/LieHuSchedule.java
View file @
fda1e77c
...
@@ -40,7 +40,7 @@ public class LieHuSchedule {
...
@@ -40,7 +40,7 @@ public class LieHuSchedule {
LieHuTokenResponse
response
=
JSON
.
parseObject
(
liehuTokenRes
,
LieHuTokenResponse
.
class
);
LieHuTokenResponse
response
=
JSON
.
parseObject
(
liehuTokenRes
,
LieHuTokenResponse
.
class
);
if
(
"success"
.
equals
(
response
.
getCode
()))
{
if
(
"success"
.
equals
(
response
.
getCode
()))
{
LIE_HU_TOKEN
=
response
.
getToken
();
LIE_HU_TOKEN
=
response
.
getToken
();
log
.
info
(
"成功获取到猎户Token:{}"
,
LIE_HU_TOKEN
);
//
log.info("成功获取到猎户Token:{}", LIE_HU_TOKEN);
}
else
{
}
else
{
log
.
error
(
"请求猎户Token失败:{}"
,
response
.
getError
());
log
.
error
(
"请求猎户Token失败:{}"
,
response
.
getError
());
}
}
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java
View file @
fda1e77c
...
@@ -29,7 +29,7 @@ public class TTService {
...
@@ -29,7 +29,7 @@ public class TTService {
private
static
final
Integer
CORE_THREAD_NUM
=
Runtime
.
getRuntime
().
availableProcessors
();
private
static
final
Integer
CORE_THREAD_NUM
=
Runtime
.
getRuntime
().
availableProcessors
();
private
static
final
ThreadPoolExecutor
POOL
=
new
ThreadPoolExecutor
(
CORE_THREAD_NUM
*
2
,
private
static
final
ThreadPoolExecutor
POOL
=
new
ThreadPoolExecutor
(
CORE_THREAD_NUM
*
2
,
1
0
00
,
3
,
TimeUnit
.
SECONDS
,
new
ArrayBlockingQueue
<>(
15
),
1
5
00
,
3
,
TimeUnit
.
SECONDS
,
new
ArrayBlockingQueue
<>(
15
),
new
ThreadPoolExecutor
.
CallerRunsPolicy
());
new
ThreadPoolExecutor
.
CallerRunsPolicy
());
private
static
final
String
BAI_DU_FOLDER
=
Initialize
.
getAudioDir
()
+
"/BAIDU"
;
private
static
final
String
BAI_DU_FOLDER
=
Initialize
.
getAudioDir
()
+
"/BAIDU"
;
...
@@ -51,7 +51,7 @@ public class TTService {
...
@@ -51,7 +51,7 @@ public class TTService {
public
ChatBotResponse
chatbot
(
ChatBotRequest
request
)
{
public
ChatBotResponse
chatbot
(
ChatBotRequest
request
)
{
String
userId
=
request
.
getUser_id
();
String
userId
=
request
.
getUser_id
();
String
text
=
request
.
getText
();
String
text
=
request
.
getText
();
log
.
info
(
"userId:{},text:{}"
,
userId
,
text
);
//
log.info("userId:{},text:{}", userId, text);
if
(
"退出文艺平台"
.
equals
(
text
)
||
"退出文艺大厅"
.
equals
(
text
))
{
if
(
"退出文艺平台"
.
equals
(
text
)
||
"退出文艺大厅"
.
equals
(
text
))
{
return
new
ChatBotResponse
(
"<exit>退出</exit>"
);
return
new
ChatBotResponse
(
"<exit>退出</exit>"
);
}
}
...
@@ -136,7 +136,7 @@ public class TTService {
...
@@ -136,7 +136,7 @@ public class TTService {
StringBuilder
builder
=
new
StringBuilder
(
Initialize
.
getAudioDir
()).
append
(
File
.
separator
);
StringBuilder
builder
=
new
StringBuilder
(
Initialize
.
getAudioDir
()).
append
(
File
.
separator
);
if
(
StringUtils
.
isNotBlank
(
dirs
))
builder
.
append
(
dirs
).
append
(
File
.
separator
);
if
(
StringUtils
.
isNotBlank
(
dirs
))
builder
.
append
(
dirs
).
append
(
File
.
separator
);
filename
=
builder
.
append
(
filename
).
toString
();
filename
=
builder
.
append
(
filename
).
toString
();
log
.
info
(
"mp3():本次请求要获取的请求的文件:{}"
,
filename
);
//
log.info("mp3():本次请求要获取的请求的文件:{}",filename);
if
(
TTSUtils
.
doesFileExist
(
filename
))
{
if
(
TTSUtils
.
doesFileExist
(
filename
))
{
if
(
"file"
.
equals
(
_type
))
{
if
(
"file"
.
equals
(
_type
))
{
// 请求头中添加 Content-Disposition = attachment 可下载
// 请求头中添加 Content-Disposition = attachment 可下载
...
@@ -147,7 +147,7 @@ public class TTService {
...
@@ -147,7 +147,7 @@ public class TTService {
return
;
return
;
}
}
}
}
TTServiceUtil
.
buildMp3Response
(
response
,
new
MP3Response
(
40
0
),
null
,
400
,
false
);
TTServiceUtil
.
buildMp3Response
(
response
,
new
MP3Response
(
40
4
),
null
,
404
,
false
);
}
}
/**
/**
...
@@ -167,7 +167,7 @@ public class TTService {
...
@@ -167,7 +167,7 @@ public class TTService {
List
<
Future
<
ResponseCodeWithData
>>
futures
=
new
ArrayList
<>();
List
<
Future
<
ResponseCodeWithData
>>
futures
=
new
ArrayList
<>();
List
<
String
>
file_ls
=
new
ArrayList
<>();
List
<
String
>
file_ls
=
new
ArrayList
<>();
boolean
geneThird
=
request
.
getGen3rd
()
==
null
||
request
.
getGen3rd
()
!=
0
;
boolean
geneThird
=
request
.
getGen3rd
()
==
null
||
request
.
getGen3rd
()
!=
0
;
if
(
infoList
!=
null
)
{
if
(
infoList
!=
null
&&
infoList
.
size
()
!=
0
)
{
for
(
TextInfo
info
:
infoList
)
{
for
(
TextInfo
info
:
infoList
)
{
// person没有值或是不存在则赋予init_person
// person没有值或是不存在则赋予init_person
String
person
=
info
.
getPerson
();
String
person
=
info
.
getPerson
();
...
@@ -213,7 +213,7 @@ public class TTService {
...
@@ -213,7 +213,7 @@ public class TTService {
TTSUtils
.
makedir
(
folder
);
TTSUtils
.
makedir
(
folder
);
// 生成文件名
// 生成文件名
filepath
=
String
.
format
(
"%s/%s"
,
folder
,
TTSUtils
.
buildMP3Filename
(
text
));
filepath
=
String
.
format
(
"%s/%s"
,
folder
,
TTSUtils
.
buildMP3Filename
(
text
));
log
.
info
(
"tts_ls方法:filepath:{}"
,
filepath
);
//
log.info("tts_ls方法:filepath:{}", filepath);
// 若文件不存在则先下载wav文件,之后转换成mp3
// 若文件不存在则先下载wav文件,之后转换成mp3
if
(!
TTSUtils
.
doesFileExist
(
filepath
))
{
if
(!
TTSUtils
.
doesFileExist
(
filepath
))
{
...
@@ -250,17 +250,23 @@ public class TTService {
...
@@ -250,17 +250,23 @@ public class TTService {
//log.info("196:file list:{}", file_ls);
//log.info("196:file list:{}", file_ls);
for
(
Future
<
ResponseCodeWithData
>
future
:
futures
)
{
for
(
Future
<
ResponseCodeWithData
>
future
:
futures
)
{
try
{
try
{
ResponseCodeWithData
data
=
future
.
get
(
6
,
TimeUnit
.
SECONDS
);
// ResponseCodeWithData data = future.get(60, TimeUnit.SECONDS);
ResponseCodeWithData
data
=
future
.
get
();
if
(
data
.
getCode
()
!=
200
)
{
if
(
data
.
getCode
()
!=
200
)
{
log
.
error
(
"下载:{}音频失败, status:{}"
,
data
.
getCode
());
log
.
error
(
"下载:{}音频失败, status:{}"
,
data
.
getCode
());
TTServiceUtil
.
buildTTS_lsResponse
(
response
,
new
TTSResponse
(
data
.
getCode
()),
null
,
data
.
getCode
());
TTServiceUtil
.
buildTTS_lsResponse
(
response
,
new
TTSResponse
(
data
.
getCode
()),
null
,
data
.
getCode
());
return
;
return
;
}
}
}
catch
(
InterruptedException
|
ExecutionException
|
Timeout
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"获取结果出错:{}"
,
e
.
toString
());
log
.
error
(
"获取结果出错:{}"
,
e
.
toString
());
TTServiceUtil
.
buildTTS_lsResponse
(
response
,
new
TTSResponse
(
400
),
null
,
400
);
TTServiceUtil
.
buildTTS_lsResponse
(
response
,
new
TTSResponse
(
400
),
null
,
400
);
return
;
return
;
}
}
// catch (InterruptedException | ExecutionException | TimeoutException e) {
// log.error("获取结果出错:{}", e.toString());
// TTServiceUtil.buildTTS_lsResponse(response, new TTSResponse(400), null, 400);
// return;
// }
}
}
// 小爱平台的请求,我们会讲所有mp3文件合在一起,文件路径为(audio_dir)/botname/xiaoai/xxx.mp3,
// 小爱平台的请求,我们会讲所有mp3文件合在一起,文件路径为(audio_dir)/botname/xiaoai/xxx.mp3,
...
@@ -281,7 +287,6 @@ public class TTService {
...
@@ -281,7 +287,6 @@ public class TTService {
try
{
try
{
if
(!
TTSUtils
.
doesFileExist
(
tmp_audio_name
))
{
if
(!
TTSUtils
.
doesFileExist
(
tmp_audio_name
))
{
TTSUtils
.
makedir
(
folder
);
TTSUtils
.
makedir
(
folder
);
//log.info("调用python的combine");
TTSUtils
.
combineMp3File
(
file_ls
,
tmp_audio_name
);
TTSUtils
.
combineMp3File
(
file_ls
,
tmp_audio_name
);
//CallPython.combine(file_ls, tmp_audio_name);
//CallPython.combine(file_ls, tmp_audio_name);
}
}
...
@@ -290,8 +295,8 @@ public class TTService {
...
@@ -290,8 +295,8 @@ public class TTService {
TTServiceUtil
.
buildTTS_lsResponse
(
response
,
new
TTSResponse
(
555
,
"小爱平台的请求,聚合mp3文件失败"
),
null
,
555
);
TTServiceUtil
.
buildTTS_lsResponse
(
response
,
new
TTSResponse
(
555
,
"小爱平台的请求,聚合mp3文件失败"
),
null
,
555
);
}
else
{
}
else
{
String
audio
=
Initialize
.
getServerUrl
()+
"/api/tts/get_audio?dirs=%s&filename=%s"
;
String
audio
=
Initialize
.
getServerUrl
()+
"/api/tts/get_audio?dirs=%s&filename=%s"
;
TTServiceUtil
.
buildTTS_lsResponse
(
response
,
new
TTSResponse
(
200
,
String
.
format
(
audio
,
URLEncoder
.
encode
(
dirs
),
TTServiceUtil
.
buildTTS_lsResponse
(
response
,
new
TTSResponse
(
String
.
format
(
audio
,
URLEncoder
.
encode
(
dirs
),
URLEncoder
.
encode
(
tmp_name
))),
null
,
200
);
URLEncoder
.
encode
(
tmp_name
))
,
200
),
null
,
200
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"调用python的combine出错:{}"
,
e
.
toString
());
log
.
error
(
"调用python的combine出错:{}"
,
e
.
toString
());
...
@@ -370,7 +375,7 @@ public class TTService {
...
@@ -370,7 +375,7 @@ public class TTService {
TTServiceUtil
.
buildServletResponse
(
servletResponse
,
new
TTSResponse
(
404
,
String
.
format
(
"%s的%s情绪的url为空"
,
person
,
mood
)),
null
,
404
);
TTServiceUtil
.
buildServletResponse
(
servletResponse
,
new
TTSResponse
(
404
,
String
.
format
(
"%s的%s情绪的url为空"
,
person
,
mood
)),
null
,
404
);
return
;
return
;
}
}
log
.
info
(
"270:moodurl:{}"
,
moodUrl
);
//
log.info("270:moodurl:{}", moodUrl);
}
else
{
}
else
{
mood
=
"正常"
;
mood
=
"正常"
;
}
}
...
@@ -398,7 +403,7 @@ public class TTService {
...
@@ -398,7 +403,7 @@ public class TTService {
String
fileName
=
TTSUtils
.
buildMP3Filename
(
ttsRequest
.
getText
());
String
fileName
=
TTSUtils
.
buildMP3Filename
(
ttsRequest
.
getText
());
// (audio_dir)/botname/person/mood/xxx.mp3文件路径
// (audio_dir)/botname/person/mood/xxx.mp3文件路径
String
filePath
=
StringUtils
.
join
(
new
String
[]{
folder
,
fileName
},
File
.
separator
);
String
filePath
=
StringUtils
.
join
(
new
String
[]{
folder
,
fileName
},
File
.
separator
);
log
.
info
(
"filepath:{}"
,
filePath
);
//
log.info("filepath:{}", filePath);
TTSResponse
response
=
null
;
TTSResponse
response
=
null
;
// _type为json,则构建请求get_audio接口的信息
// _type为json,则构建请求get_audio接口的信息
...
@@ -461,7 +466,7 @@ public class TTService {
...
@@ -461,7 +466,7 @@ public class TTService {
longTime
=
false
;
longTime
=
false
;
}
}
//long wavStartTime = System.currentTimeMillis();
//long wavStartTime = System.currentTimeMillis();
log
.
info
(
"url:{}"
,
url
);
//
log.info("url:{}", url);
res
=
requestTemplate
(
url
,
data
,
wavFilename
,
longTime
);
res
=
requestTemplate
(
url
,
data
,
wavFilename
,
longTime
);
//long wavEndTime = System.currentTimeMillis();
//long wavEndTime = System.currentTimeMillis();
//log.info("wav whole time:{}", (wavEndTime-wavStartTime)/1000.0);
//log.info("wav whole time:{}", (wavEndTime-wavStartTime)/1000.0);
...
@@ -471,37 +476,92 @@ public class TTService {
...
@@ -471,37 +476,92 @@ public class TTService {
}
}
}
}
}
}
if
(
requestMethod
.
equals
(
"PUT"
)
||
(!
TTSUtils
.
doesFileExist
(
filePath
)
&&
!
offlineService
.
equals
(
url
)))
{
boolean
fileExist
=
TTSUtils
.
doesFileExist
(
filePath
);
String
executeResult
=
null
;
if
(
requestMethod
.
equals
(
"PUT"
))
{
try
{
if
(
fileExist
)
{
//long changeSoundStartTime = System.currentTimeMillis();
new
File
(
filePath
).
delete
();
executeResult
=
CallPython
.
changeSound
(
wavFilename
,
data
.
getVolume
(),
data
.
getSpeed
(),
data
.
getPitch
(),
filePath
);
//long changeSoundEndTime = System.currentTimeMillis();
log
.
info
(
"url:{} , call changeSound() executeResult:{}"
,
url
,
executeResult
);
}
catch
(
Exception
e
)
{
log
.
error
(
"调用changeSound出错:{}"
,
e
.
toString
());
res
=
new
ResponseCodeWithData
(
555
);
}
}
if
(
executeResult
==
null
||
!
executeResult
.
equals
(
"1"
))
{
res
=
changeSound
(
wavFilename
,
data
.
getVolume
(),
data
.
getSpeed
(),
data
.
getPitch
(),
filePath
,
res
);
log
.
error
(
"mp3文件没有创建成功"
);
}
else
if
(!
fileExist
)
{
res
=
new
ResponseCodeWithData
(
555
);
if
(
offlineService
.
equals
(
url
))
{
}
data
.
setFormat
(
"mp3"
);
}
res
=
requestTemplate
(
url
,
data
,
filePath
,
false
);
// 如果url是线下地址且xx.mp3文件不存在,则直接下载
if
(
res
.
getCode
()
!=
200
)
{
else
if
(!
TTSUtils
.
doesFileExist
(
filePath
)
&&
offlineService
.
equals
(
url
))
{
log
.
error
(
"线下请求音频文件:{},失败:{}"
,
filePath
,
res
);
data
.
setFormat
(
"mp3"
);
}
res
=
requestTemplate
(
url
,
data
,
filePath
,
false
);
if
(!
TTSUtils
.
doesFileExist
(
filePath
))
{
if
(
res
.
getCode
()
!=
200
)
{
res
=
changeSound
(
wavFilename
,
data
.
getVolume
(),
data
.
getSpeed
(),
data
.
getPitch
(),
filePath
,
res
);
log
.
error
(
"线下请求音频文件:{},失败:{}"
,
filePath
,
res
);
}
}
else
{
res
=
changeSound
(
wavFilename
,
data
.
getVolume
(),
data
.
getSpeed
(),
data
.
getPitch
(),
filePath
,
res
);
// String executeResult = null;
// try {
// //long changeSoundStartTime = System.currentTimeMillis();
// executeResult = CallPython.changeSound(wavFilename, data.getVolume(), data.getSpeed(),
// data.getPitch(), filePath);
// //long changeSoundEndTime = System.currentTimeMillis();
// //log.info("url:{} , call changeSound() executeResult:{}",url, executeResult);
// } catch (Exception e) {
// log.error("调用changeSound出错:{}", e.toString());
// res = new ResponseCodeWithData(555);
// }
// if (executeResult == null || !executeResult.equals("1")) {
// log.error("mp3文件没有创建成功");
// res = new ResponseCodeWithData(555);
// }
}
}
}
}
// if (requestMethod.equals("PUT") || (!TTSUtils.doesFileExist(filePath) && !offlineService.equals(url))) {
// String executeResult = null;
// try {
// //long changeSoundStartTime = System.currentTimeMillis();
// executeResult = CallPython.changeSound(wavFilename, data.getVolume(), data.getSpeed(),
// data.getPitch(), filePath);
// //long changeSoundEndTime = System.currentTimeMillis();
// //log.info("url:{} , call changeSound() executeResult:{}",url, executeResult);
// } catch (Exception e) {
// log.error("调用changeSound出错:{}", e.toString());
// res = new ResponseCodeWithData(555);
// }
// if (executeResult == null || !executeResult.equals("1")) {
// log.error("mp3文件没有创建成功");
// res = new ResponseCodeWithData(555);
// }
// }
// // 如果url是线下地址且xx.mp3文件不存在,则直接下载
// else if (!TTSUtils.doesFileExist(filePath) && offlineService.equals(url)) {
// data.setFormat("mp3");
// res = requestTemplate(url , data, filePath, false);
// if (res.getCode() != 200) {
// log.error("线下请求音频文件:{},失败:{}",filePath, res);
// }
// }
//long endTime = System.currentTimeMillis();
//long endTime = System.currentTimeMillis();
//log.info("单个任务耗时时间:{}",(endTime-startTime)/1000.0);
//log.info("单个任务耗时时间:{}",(endTime-startTime)/1000.0);
if
(
res
==
null
)
res
=
new
ResponseCodeWithData
(
200
);
if
(
res
==
null
)
res
=
new
ResponseCodeWithData
(
200
);
return
res
;
return
res
;
}
}
private
ResponseCodeWithData
changeSound
(
String
wavFilename
,
double
volume
,
double
speed
,
double
pitch
,
String
mp3FilePath
,
ResponseCodeWithData
res
)
{
String
executeResult
=
null
;
try
{
//long changeSoundStartTime = System.currentTimeMillis();
executeResult
=
CallPython
.
changeSound
(
wavFilename
,
volume
,
speed
,
pitch
,
mp3FilePath
);
//long changeSoundEndTime = System.currentTimeMillis();
//log.info("url:{} , call changeSound() executeResult:{}",url, executeResult);
}
catch
(
Exception
e
)
{
log
.
error
(
"调用changeSound出错:{}"
,
e
.
toString
());
res
=
new
ResponseCodeWithData
(
555
);
}
if
(
executeResult
==
null
||
!
executeResult
.
equals
(
"1"
))
{
log
.
error
(
"mp3文件没有创建成功"
);
res
=
new
ResponseCodeWithData
(
555
);
}
return
res
;
}
/**
/**
* 下载音频文件或只是普通的post请求,失败尝试次数3
* 下载音频文件或只是普通的post请求,失败尝试次数3
* @param url 音频请求地址
* @param url 音频请求地址
...
@@ -519,6 +579,10 @@ public class TTService {
...
@@ -519,6 +579,10 @@ public class TTService {
try
{
try
{
if
(
filePath
!=
null
)
{
if
(
filePath
!=
null
)
{
mp3File
=
TTSUtils
.
createFileReturnIts
(
filePath
);
mp3File
=
TTSUtils
.
createFileReturnIts
(
filePath
);
if
(
mp3File
==
null
)
{
log
.
error
(
"requestTemplate方法创建文件:{}失败"
,
filePath
);
return
new
ResponseCodeWithData
(
555
,
"创建文件失败"
);
}
res
=
OkHttp3Utils
.
doPostTimeout
(
url
,
new
HashMap
<>(),
dataStr
,
mp3File
,
longTime
);
res
=
OkHttp3Utils
.
doPostTimeout
(
url
,
new
HashMap
<>(),
dataStr
,
mp3File
,
longTime
);
}
else
{
}
else
{
res
=
OkHttp3Utils
.
doPostTimeout
(
url
,
new
HashMap
<>(),
dataStr
,
null
,
longTime
);
res
=
OkHttp3Utils
.
doPostTimeout
(
url
,
new
HashMap
<>(),
dataStr
,
null
,
longTime
);
...
@@ -532,6 +596,7 @@ public class TTService {
...
@@ -532,6 +596,7 @@ public class TTService {
return
new
ResponseCodeWithData
(
402
,
"requestTemplate请求无法获取到结果,该请求信息是:"
+
data
.
toString
());
return
new
ResponseCodeWithData
(
402
,
"requestTemplate请求无法获取到结果,该请求信息是:"
+
data
.
toString
());
}
}
int
resCode
=
res
.
getCode
();
int
resCode
=
res
.
getCode
();
//log.info("resCode:{}, offlineService:{},url:{}", resCode, offlineService, url);
if
(
resCode
==
200
)
{
if
(
resCode
==
200
)
{
return
res
;
return
res
;
}
}
...
@@ -546,8 +611,10 @@ public class TTService {
...
@@ -546,8 +611,10 @@ public class TTService {
}
}
if
(
initialize
.
doesThisMoodUrlWithOnline0
(
url
))
{
if
(
initialize
.
doesThisMoodUrlWithOnline0
(
url
))
{
url
=
initialize
.
getInit_url
();
url
=
initialize
.
getInit_url
();
//log.info("requestTemplate方法,init_url:{}",url);
}
}
res
=
requestLongTimeout
(
url
,
dataStr
,
mp3File
);
res
=
requestLongTimeout
(
url
,
dataStr
,
mp3File
);
break
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"person:{},mood:{}, url not found"
,
person
,
mood
);
log
.
error
(
"person:{},mood:{}, url not found"
,
person
,
mood
);
res
=
null
;
res
=
null
;
...
...
tts_service/src/main/resources/application.yml
View file @
fda1e77c
spring
:
spring
:
datasource
:
datasource
:
username
:
root
username
:
tts
password
:
3g9^pWQs#ft7
#password: 3g9^pWQs#ft7
password
:
qiwu@123234aA~
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://
localhost:3306/TTS
url
:
jdbc:mysql://
aliyun-hz1.chewrobot.com:3306/TTS?characterEncoding=utf-8
# username: tts
# username: tts
# password: qiwu@123234aA~
# password: qiwu@123234aA~
# driver-class-name: com.mysql.cj.jdbc.Driver
# driver-class-name: com.mysql.cj.jdbc.Driver
...
@@ -17,9 +18,17 @@ spring:
...
@@ -17,9 +18,17 @@ spring:
output
:
output
:
ansi
:
ansi
:
enabled
:
detect
enabled
:
detect
#logging:
logging
:
# level: info
#path: /home/ubuntu/project/tts/logs
# path: /usr/mqw/logs/tts
path
:
/root/GameEditor/mqw/project/ttsTest/logs
level
:
root
:
info
server
:
server
:
port
:
9663
#port: 9663
#port: 8188
port
:
8188
\ No newline at end of file
tomcat
:
accesslog
:
enabled
:
true
pattern
:
'
%h
%l
%u
%t
"%r"
%s
%b
bytes
%D
ms'
#directory: /home/ubuntu/project/tts/tomcat
directory
:
/root/GameEditor/mqw/project/ttsTest/tomcat
\ No newline at end of file
tts_service/src/main/resources/tts.properties
View file @
fda1e77c
server_name
=
hz1
server_name
=
hz1
#server_name=aws-nx2
#server_name=aws-nx2
#server_url=http://aws-nx2.chewrobot.com:9663
server_url
=
http://aliyun-hz1.chewrobot.com:9663
server_url
=
http://aliyun-hz1.chewrobot.com:9663
#audio_dir=/root/TTS-service/audio
audio_dir
=
/root/GameEditor/mqw/project/tts/audio
audio_dir
=
/root/GameEditor/mqw/project/tts/audio
#audio_dir=/usr/GameEditor/mqw/tts/audio
online_sever
=
http://dev01.centaurstech.com
online_sever
=
http://dev01.centaurstech.com
offline_server
=
http://aliyun-hz1.chewrobot.com:9001
offline_server
=
http://dev01.centaurstech.com:9001
#offline_server=http://aliyun-hz1.chewrobot.com:9001
#第三方tts标记
#第三方tts标记
third_party_tts_text
=
third_party_tts
third_party_tts_text
=
third_party_tts
...
...
xiaoai/src/main/java/ai/qiwu/mi/xiaoai/controller/XiaoAiController.java
View file @
fda1e77c
...
@@ -25,9 +25,9 @@ public class XiaoAiController {
...
@@ -25,9 +25,9 @@ public class XiaoAiController {
@RequestMapping
(
"/xiaoai"
)
@RequestMapping
(
"/xiaoai"
)
public
@ResponseBody
XiaoAiResponse
xiaoai
(
@RequestBody
XiaoAiRequest
request
)
{
public
@ResponseBody
XiaoAiResponse
xiaoai
(
@RequestBody
XiaoAiRequest
request
)
{
log
.
info
(
"请求:"
+
request
);
//
log.info("请求:"+request);
XiaoAiResponse
response
=
xiaoAiService
.
getResponse
(
request
);
XiaoAiResponse
response
=
xiaoAiService
.
getResponse
(
request
);
//
log.info("响应:"+response);
log
.
info
(
"响应:"
+
response
);
return
response
;
return
response
;
// return xiaoAiService.getResponse(request);
// return xiaoAiService.getResponse(request);
}
}
...
...
xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/common/Constants.java
View file @
fda1e77c
...
@@ -27,8 +27,8 @@ public interface Constants {
...
@@ -27,8 +27,8 @@ public interface Constants {
interface
SKILL_SECURITY
{
interface
SKILL_SECURITY
{
//String REDIRECT_URI = "https://xiaodu.baidu.com/saiya/auth/3428011e7f55ec4c10b2da1b00a1675b";
//String REDIRECT_URI = "https://xiaodu.baidu.com/saiya/auth/3428011e7f55ec4c10b2da1b00a1675b";
//String REDIRECT_URI_TEST = "https://xiaodu-dbp.baidu.com/saiya/auth/3428011e7f55ec4c10b2da1b00a1675b";
//String REDIRECT_URI_TEST = "https://xiaodu-dbp.baidu.com/saiya/auth/3428011e7f55ec4c10b2da1b00a1675b";
String
REDIRECT_URI
=
"https://xiaodu.baidu.com/saiya/auth/
4fbc7b9112e3a43dc7dbf43fd556929e
"
;
String
REDIRECT_URI
=
"https://xiaodu.baidu.com/saiya/auth/
15966f1c8158104bd82712f95d8a1150
"
;
String
REDIRECT_URI_TEST
=
"https://xiaodu-dbp.baidu.com/saiya/auth/
4fbc7b9112e3a43dc7dbf43fd556929e
"
;
String
REDIRECT_URI_TEST
=
"https://xiaodu-dbp.baidu.com/saiya/auth/
15966f1c8158104bd82712f95d8a1150
"
;
String
CLIENT_ID
=
"aiqiwucom"
;
String
CLIENT_ID
=
"aiqiwucom"
;
String
CLIENT_SECRET
=
"miaoquanwei"
;
String
CLIENT_SECRET
=
"miaoquanwei"
;
}
}
...
...
xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/ProductController.java
View file @
fda1e77c
...
@@ -2,6 +2,7 @@ package ai.qiwu.baidu.xiaodu.controller;
...
@@ -2,6 +2,7 @@ package ai.qiwu.baidu.xiaodu.controller;
import
ai.qiwu.baidu.xiaodu.common.Constants
;
import
ai.qiwu.baidu.xiaodu.common.Constants
;
import
ai.qiwu.baidu.xiaodu.common.ProductError
;
import
ai.qiwu.baidu.xiaodu.common.ProductError
;
import
ai.qiwu.baidu.xiaodu.pojo.product.Pricing
;
import
ai.qiwu.baidu.xiaodu.pojo.product.Product
;
import
ai.qiwu.baidu.xiaodu.pojo.product.Product
;
import
ai.qiwu.baidu.xiaodu.pojo.product.UpdateRequestBody
;
import
ai.qiwu.baidu.xiaodu.pojo.product.UpdateRequestBody
;
import
ai.qiwu.baidu.xiaodu.pojo.product.response.PubDelUpdResponse
;
import
ai.qiwu.baidu.xiaodu.pojo.product.response.PubDelUpdResponse
;
...
...
xiaodu/src/main/resources/templates/Product.html
View file @
fda1e77c
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
var
name
=
document
.
getElementById
(
"name"
).
value
;
var
name
=
document
.
getElementById
(
"name"
).
value
;
var
summary
=
document
.
getElementById
(
"summary"
).
value
;
var
summary
=
document
.
getElementById
(
"summary"
).
value
;
var
description
=
document
.
getElementById
(
"description"
).
value
;
var
description
=
document
.
getElementById
(
"description"
).
value
;
var
originalPrice
=
document
.
getElementById
(
"originalPrice"
).
value
;
var
originalPrice
=
document
.
getElementById
(
"originalPrice"
).
value
*
100
;
var
price
=
document
.
getElementById
(
"price"
).
value
;
var
price
=
document
.
getElementById
(
"price"
).
value
*
100
;
var
skillId
=
document
.
getElementById
(
"skillId"
).
value
;
var
skillId
=
document
.
getElementById
(
"skillId"
).
value
;
var
smallIconUri
=
document
.
getElementById
(
"smallIconUri"
).
value
;
var
smallIconUri
=
document
.
getElementById
(
"smallIconUri"
).
value
;
var
largeIconUri
=
document
.
getElementById
(
"largeIconUri"
).
value
;
var
largeIconUri
=
document
.
getElementById
(
"largeIconUri"
).
value
;
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
<p
class=
"introl"
>
商品所属技能
</p>
<p
class=
"introl"
>
商品所属技能
</p>
<select
id=
"skillId"
th:value=
"*{skillId}"
>
<select
id=
"skillId"
th:value=
"*{skillId}"
>
<option
value=
"a1d0618b-e1ee-9901-df9d-81179b4006e2"
>
互动小说
</option>
<option
value=
"a1d0618b-e1ee-9901-df9d-81179b4006e2"
>
互动小说
</option>
<option
value=
"
3f1ca0e0-5b2d-0a11-7472-b27eaae0fca3
"
>
互动天地
</option>
<option
value=
"
f7acbca6-36f7-31b8-1ede-bef78b2127c8
"
>
互动天地
</option>
</select><br>
</select><br>
<p
class=
"introl"
>
版本,默认1.0
</p>
<p
class=
"introl"
>
版本,默认1.0
</p>
...
...
xiaoduhome/pom.xml
View file @
fda1e77c
...
@@ -50,6 +50,11 @@
...
@@ -50,6 +50,11 @@
<version>
1.2.0
</version>
<version>
1.2.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-thymeleaf
</artifactId>
<version>
2.1.6.RELEASE
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<artifactId>
fastjson
</artifactId>
<version>
1.2.58
</version>
<version>
1.2.58
</version>
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/XiaoduhomeApplication.java
View file @
fda1e77c
...
@@ -3,13 +3,15 @@ package ai.qiwu.com.xiaoduhome;
...
@@ -3,13 +3,15 @@ package ai.qiwu.com.xiaoduhome;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.domain.EntityScan
;
import
org.springframework.boot.autoconfigure.domain.EntityScan
;
import
org.springframework.data.jpa.repository.config.EnableJpaAuditing
;
import
org.springframework.data.jpa.repository.config.EnableJpaRepositories
;
import
org.springframework.data.jpa.repository.config.EnableJpaRepositories
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
@SpringBootApplication
@SpringBootApplication
@EntityScan
(
basePackages
=
{
"ai.qiwu.com.xiaoduhome.entity"
})
//
@EntityScan(basePackages = {"ai.qiwu.com.xiaoduhome.entity"})
@EnableJpaRepositories
(
basePackages
=
{
"ai.qiwu.com.xiaoduhome.repository"
})
//
@EnableJpaRepositories(basePackages = {"ai.qiwu.com.xiaoduhome.repository"})
@EnableScheduling
@EnableScheduling
@EnableJpaAuditing
public
class
XiaoduhomeApplication
{
public
class
XiaoduhomeApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/BaseHolder.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
common
;
import
org.springframework.beans.BeansException
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextAware
;
import
org.springframework.stereotype.Component
;
/**
* @author 苗权威
* @dateTime 19-8-21 下午8:42
*/
@Component
public
class
BaseHolder
implements
ApplicationContextAware
{
private
static
ApplicationContext
applicationContext
;
@Override
public
void
setApplicationContext
(
ApplicationContext
applicationContext
)
throws
BeansException
{
BaseHolder
.
applicationContext
=
applicationContext
;
}
public
static
ApplicationContext
getApplicationContext
()
{
return
applicationContext
;
}
public
static
<
T
>
T
getBean
(
String
beanName
)
{
return
(
T
)
applicationContext
.
getBean
(
beanName
);
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Config.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
common
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
java.io.InputStreamReader
;
import
java.nio.charset.StandardCharsets
;
import
java.util.Properties
;
/**
* @author 苗权威
* @dateTime 19-7-30 下午2:40
*/
@Slf4j
public
class
Config
{
private
static
Properties
properties
;
static
{
String
filename
=
"xiaodu.properties"
;
properties
=
new
Properties
();
try
{
properties
.
load
(
new
InputStreamReader
(
Config
.
class
.
getClassLoader
().
getResourceAsStream
(
filename
),
StandardCharsets
.
UTF_8
));
}
catch
(
Exception
e
)
{
log
.
error
(
"获取配置文件对象出错:{}"
,
e
.
toString
());
System
.
exit
(
1
);
}
}
public
static
String
getProperty
(
String
key
)
{
String
value
=
properties
.
getProperty
(
key
.
trim
());
if
(
StringUtils
.
isBlank
(
value
))
return
null
;
return
value
.
trim
();
}
public
static
String
getProperty
(
String
key
,
String
defaultValue
)
{
String
value
=
properties
.
getProperty
(
key
.
trim
());
if
(
StringUtils
.
isBlank
(
value
))
return
defaultValue
;
return
value
.
trim
();
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java
View file @
fda1e77c
...
@@ -28,16 +28,57 @@ public interface Constants {
...
@@ -28,16 +28,57 @@ public interface Constants {
String
PRE_ENTER_PRODUCT
=
"enter"
;
String
PRE_ENTER_PRODUCT
=
"enter"
;
String
PRE_PRODUCT_PLAY
=
"我要玩"
;
String
PRE_PRODUCT_PLAY
=
"我要玩"
;
String
LOAD_INTRO
=
"扫描二维码输入手机号获取验证码登录"
;
String
REWARD_FLOWER
=
"请扫码支付"
;
interface
DPL_COMPONENT_ID
{
String
FLOWE
=
"flowe"
;
String
FLOWER_PRODUCT_ID
=
"190817185926388308"
;
String
FLOWER_LOAD
=
"flowerLoad"
;
String
PRE_COLLE
=
"colle"
;
String
COLLEC_ID
=
"colleAL"
;
String
UN_COLLEC_ID
=
"colleUn"
;
String
COLLECT_IMAGE_ID
=
"collectImage"
;
String
COLLECT_TEXT_ID
=
"collectText"
;
String
PRE_CATEGORY
=
"categ"
;
String
CLICK_PATTERN
=
"[{\"type\": \"SendEvent\",\"componentId\":\"%s\"}]"
;
String
COLLECTED_IMG_URL
=
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/collec.png"
;
String
UN_COLLECTED_IMG_URL
=
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/uncollec.png"
;
}
interface
PRODUCT_INTRO
{
interface
PRODUCT_INTRO
{
String
CREATE_TIME
=
"发表时间: "
;
String
CREATE_TIME
=
"发表时间: "
;
String
AUTHOR
=
"作者: "
;
String
AUTHOR
=
"作者: "
;
String
LABEL
=
"相关标签: "
;
String
LABEL
=
"相关标签: "
;
String
SPACE
=
" "
;
String
SPACE
=
" "
;
String
USER_SEND_FLOWER
=
"已赏朵数:"
;
String
FLOWER
=
"打赏鲜花"
;
String
COLLECED
=
"已收藏"
;
String
UN_COLLEC
=
"收藏"
;
String
CHAT_COLLECT
=
"我要收藏"
;
String
CHAT_UN_COLLECT
=
"取消收藏"
;
}
interface
CATEGORY_IMG_URL
{
String
NAME_GU_FENG
=
"古风"
;
String
NAME_KE_HUAN
=
"科幻"
;
String
NAME_ZHAN_XING
=
"占星"
;
String
NAME_LOVE
=
"恋爱"
;
String
NAME_ZAI_NAN
=
"灾难"
;
String
NAME_JIA_KONG
=
"架空"
;
String
NAME_CHILD
=
"儿童"
;
String
NAME_JING_YING
=
"经营"
;
String
NAME_MAO_XIAN
=
"冒险"
;
String
NAME_WU_XIA
=
"武侠"
;
String
GU_FENG
=
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/category1.png"
;
}
}
interface
SKILL_SECURITY
{
interface
SKILL_SECURITY
{
String
REDIRECT_URI
=
"https://xiaodu.baidu.com/saiya/auth/
3428011e7f55ec4c10b2da1b00a1675b
"
;
String
REDIRECT_URI
=
"https://xiaodu.baidu.com/saiya/auth/
15966f1c8158104bd82712f95d8a1150
"
;
String
REDIRECT_URI_TEST
=
"https://xiaodu-dbp.baidu.com/saiya/auth/
3428011e7f55ec4c10b2da1b00a1675b
"
;
String
REDIRECT_URI_TEST
=
"https://xiaodu-dbp.baidu.com/saiya/auth/
15966f1c8158104bd82712f95d8a1150
"
;
String
CLIENT_ID
=
"aiqiwucom"
;
String
CLIENT_ID
=
"aiqiwucom"
;
String
CLIENT_SECRET
=
"miaoquanwei"
;
String
CLIENT_SECRET
=
"miaoquanwei"
;
}
}
...
@@ -46,6 +87,7 @@ public interface Constants {
...
@@ -46,6 +87,7 @@ public interface Constants {
String
WELCOME
=
"欢迎来到互动天地,这里有海量的作品在这等您"
;
String
WELCOME
=
"欢迎来到互动天地,这里有海量的作品在这等您"
;
String
BEGIN_NO_RESPONSE
=
"咋还没开始就停住了,我们这里可有很多好玩的作品哦"
;
String
BEGIN_NO_RESPONSE
=
"咋还没开始就停住了,我们这里可有很多好玩的作品哦"
;
String
GUIDE_WORD
=
"请点击或者直接说出您想要玩的作品名"
;
String
GUIDE_WORD
=
"请点击或者直接说出您想要玩的作品名"
;
String
FAIL_COLLECT
=
"好像出了什么问题,请再说一遍吧"
;
}
}
interface
EndMsg
{
interface
EndMsg
{
...
@@ -81,6 +123,9 @@ public interface Constants {
...
@@ -81,6 +123,9 @@ public interface Constants {
String
CAPTCHA_SMS
=
"https://account-center-test.chewrobot.com/api/captcha/sms"
;
String
CAPTCHA_SMS
=
"https://account-center-test.chewrobot.com/api/captcha/sms"
;
String
SDK_TOKEN
=
"https://account-center-test.chewrobot.com/api/sdk/token"
;
String
SDK_TOKEN
=
"https://account-center-test.chewrobot.com/api/sdk/token"
;
String
GET_USER_INFO_BY_TOKEN
=
"https://account-center-test.chewrobot.com/api/sdk/user/info"
;
String
GET_USER_INFO_BY_TOKEN
=
"https://account-center-test.chewrobot.com/api/sdk/user/info"
;
String
FLOWER_INTERFACE
=
"http://aws-nx2.chewrobot.com:18082/api/flower/count"
;
String
USER_CLOOEC_LIST
=
"http://aliyun-hz1.chewrobot.com:18082/api/favorite"
;
String
USER_ID_BY_TOKEN
=
"https://account-center-test.chewrobot.com/api/sdk/user/info"
;
}
}
interface
BAI_DU
{
interface
BAI_DU
{
...
@@ -89,5 +134,4 @@ public interface Constants {
...
@@ -89,5 +134,4 @@ public interface Constants {
String
BAIDU_AUTHORIZE
=
"https://openapi.baidu.com/oauth/2.0/authorize?response_type=code&client_id=dSG525LMr887uLlfAyK1C1ag&redirect_uri=https%3A%2F%2Fwww.miaoshop.top%2Fxiaodu%2Fbaidu%2Fcode&confirm_login=1&state=mqw"
;
String
BAIDU_AUTHORIZE
=
"https://openapi.baidu.com/oauth/2.0/authorize?response_type=code&client_id=dSG525LMr887uLlfAyK1C1ag&redirect_uri=https%3A%2F%2Fwww.miaoshop.top%2Fxiaodu%2Fbaidu%2Fcode&confirm_login=1&state=mqw"
;
}
}
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/ServiceUtil.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
common
;
import
ai.qiwu.com.xiaoduhome.repository.primary.AppFavoriteTBRepository
;
import
ai.qiwu.com.xiaoduhome.repository.primary.AppFlowerTBRepository
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
/**
* @author 苗权威
* @dateTime 19-8-19 下午9:19
*/
@Component
public
class
ServiceUtil
implements
InitializingBean
{
private
final
AppFlowerTBRepository
appFlowerTBRepository
;
private
final
AppFavoriteTBRepository
appFavoriteTBRepository
;
@Autowired
public
ServiceUtil
(
AppFavoriteTBRepository
appFavoriteTBRepository
,
AppFlowerTBRepository
appFlowerTBRepository
)
{
this
.
appFavoriteTBRepository
=
appFavoriteTBRepository
;
this
.
appFlowerTBRepository
=
appFlowerTBRepository
;
}
public
void
insertAfterBuyFlower
(
String
userId
,
String
botId
,
String
baiduOrderReferenceId
,
String
timeStamp
)
{
new
Thread
(()
->
appFlowerTBRepository
.
insertOrder
(
botId
,
userId
,
baiduOrderReferenceId
,
timeStamp
)).
start
();
}
public
void
insertAfterCollect
(
final
String
userId
,
final
String
botId
)
{
//new Thread(() -> appFavoriteTBRepository.insertFavorite(botId, userId)).start();
}
public
void
deleteAfterUnCollect
(
final
String
userId
,
final
String
botId
)
{
//new Thread(() -> appFavoriteTBRepository.deleteFavorite(botId, userId)).start();
}
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/TokenHolder.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
common
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
* @author 苗权威
* @dateTime 19-7-17 下午5:59
*/
@Getter
@Setter
@ToString
public
class
TokenHolder
{
private
volatile
String
userId
;
private
volatile
String
accessToken
;
private
volatile
String
refreshToken
;
private
volatile
String
timestamp
;
// private volatile String state;
private
volatile
Integer
expire
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Utils.java
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
common
;
package
ai
.
qiwu
.
com
.
xiaoduhome
.
common
;
import
ai.qiwu.com.xiaoduhome.pojo.Payload
;
import
ai.qiwu.com.xiaoduhome.pojo.UserInfoByTokenResult
;
import
com.alibaba.fastjson.JSON
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.codec.binary.Base64
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
...
@@ -95,4 +98,9 @@ public class Utils {
...
@@ -95,4 +98,9 @@ public class Utils {
str
=
Base64
.
encodeBase64String
(
str
.
getBytes
(
StandardCharsets
.
UTF_8
));
str
=
Base64
.
encodeBase64String
(
str
.
getBytes
(
StandardCharsets
.
UTF_8
));
return
Constants
.
XIAOWU_API
.
BASIC_PREFIX
+
str
;
return
Constants
.
XIAOWU_API
.
BASIC_PREFIX
+
str
;
}
}
public
static
void
main
(
String
[]
args
)
{
String
s
=
"[{\"type\": \"SendEvent\",\"componentId\":\"%s\"}]"
;
System
.
out
.
println
(
String
.
format
(
s
,
"gsagh"
));
}
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/DataSourceConfig.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
config
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceProperties
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.jdbc.DataSourceBuilder
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Primary
;
import
javax.sql.DataSource
;
/**
* @author 苗权威
* @dateTime 19-8-22 下午2:23
*/
@Configuration
public
class
DataSourceConfig
{
// @Primary
// @Bean(name = "primaryDatasourceProperties")
// @Qualifier("primaryDatasourceProperties")
// @ConfigurationProperties(prefix = "spring.datasource.primary")
// public DataSourceProperties primaryDatasourceProperties() {
// return new DataSourceProperties();
// }
@Bean
(
"primaryDataSource"
)
@Primary
@Qualifier
(
"primaryDataSource"
)
@ConfigurationProperties
(
prefix
=
"spring.datasource.primary"
)
public
DataSource
primaryDataSource
()
{
return
DataSourceBuilder
.
create
().
build
();
}
@Bean
(
"secondaryDataSource"
)
@Qualifier
(
"secondaryDataSource"
)
@ConfigurationProperties
(
prefix
=
"spring.datasource.secondary"
)
public
DataSource
secondaryDataSource
()
{
return
DataSourceBuilder
.
create
().
build
();
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/PrimaryConfig.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
config
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties
;
import
org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings
;
import
org.springframework.boot.autoconfigure.orm.jpa.JpaProperties
;
import
org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Primary
;
import
org.springframework.data.jpa.repository.config.EnableJpaRepositories
;
import
org.springframework.orm.jpa.JpaTransactionManager
;
import
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
;
import
org.springframework.transaction.PlatformTransactionManager
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
javax.annotation.Resource
;
import
javax.persistence.EntityManager
;
import
javax.persistence.EntityManagerFactory
;
import
javax.sql.DataSource
;
import
java.util.Map
;
/**
* @author 苗权威
* @dateTime 19-8-22 下午2:30
*/
@Configuration
@EnableTransactionManagement
@EnableJpaRepositories
(
entityManagerFactoryRef
=
"entityManagerFactoryPrimary"
,
transactionManagerRef
=
"transactionManagerPrimary"
,
basePackages
=
{
"ai.qiwu.com.xiaoduhome.repository.primary"
})
public
class
PrimaryConfig
{
@Autowired
@Qualifier
(
"primaryDataSource"
)
private
DataSource
primaryDataSource
;
@Primary
@Bean
(
name
=
"entityManagerFactoryPrimary"
)
public
LocalContainerEntityManagerFactoryBean
entityManagerFactoryPrimary
(
EntityManagerFactoryBuilder
builder
,
JpaProperties
jpaProperties
,
HibernateProperties
hibernateProperties
)
{
Map
<
String
,
Object
>
properties
=
hibernateProperties
.
determineHibernateProperties
(
jpaProperties
.
getProperties
(),
new
HibernateSettings
());
return
builder
.
dataSource
(
primaryDataSource
)
.
properties
(
properties
)
.
packages
(
"ai.qiwu.com.xiaoduhome.entity.primary"
)
.
persistenceUnit
(
"primaryPersistenceUnit"
)
.
build
();
}
@Primary
@Bean
(
name
=
"entityManagerPrimary"
)
public
EntityManager
entityManager
(
EntityManagerFactoryBuilder
builder
,
JpaProperties
jpaProperties
,
HibernateProperties
hibernateProperties
)
{
return
entityManagerFactoryPrimary
(
builder
,
jpaProperties
,
hibernateProperties
).
getObject
().
createEntityManager
();
}
@Primary
@Bean
(
name
=
"transactionManagerPrimary"
)
public
PlatformTransactionManager
transactionManager
(
EntityManagerFactoryBuilder
builder
,
JpaProperties
jpaProperties
,
HibernateProperties
hibernateProperties
)
{
return
new
JpaTransactionManager
(
entityManagerFactoryPrimary
(
builder
,
jpaProperties
,
hibernateProperties
).
getObject
());
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/SecondaryConfig.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
config
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties
;
import
org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings
;
import
org.springframework.boot.autoconfigure.orm.jpa.JpaProperties
;
import
org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.data.jpa.repository.config.EnableJpaRepositories
;
import
org.springframework.orm.jpa.JpaTransactionManager
;
import
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
;
import
org.springframework.transaction.PlatformTransactionManager
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
javax.persistence.EntityManager
;
import
javax.sql.DataSource
;
import
java.util.Map
;
/**
* @author 苗权威
* @dateTime 19-8-22 下午3:21
*/
@Configuration
@EnableTransactionManagement
@EnableJpaRepositories
(
entityManagerFactoryRef
=
"entityManagerFactorySecondary"
,
transactionManagerRef
=
"transactionManagerSecondary"
,
basePackages
=
{
"ai.qiwu.com.xiaoduhome.repository.secondary"
})
public
class
SecondaryConfig
{
@Autowired
@Qualifier
(
"secondaryDataSource"
)
private
DataSource
secondaryDataSource
;
@Bean
(
name
=
"entityManagerFactorySecondary"
)
public
LocalContainerEntityManagerFactoryBean
entityManagerFactoryPrimary
(
EntityManagerFactoryBuilder
builder
,
JpaProperties
jpaProperties
,
HibernateProperties
hibernateProperties
)
{
Map
<
String
,
Object
>
properties
=
hibernateProperties
.
determineHibernateProperties
(
jpaProperties
.
getProperties
(),
new
HibernateSettings
());
return
builder
.
dataSource
(
secondaryDataSource
)
.
properties
(
properties
)
.
packages
(
"ai.qiwu.com.xiaoduhome.entity.secondary"
)
.
persistenceUnit
(
"secondaryPersistenceUnit"
)
.
build
();
}
@Bean
(
name
=
"entityManagerSecondary"
)
public
EntityManager
entityManager
(
EntityManagerFactoryBuilder
builder
,
JpaProperties
jpaProperties
,
HibernateProperties
hibernateProperties
)
{
return
entityManagerFactoryPrimary
(
builder
,
jpaProperties
,
hibernateProperties
).
getObject
().
createEntityManager
();
}
@Bean
(
name
=
"transactionManagerSecondary"
)
public
PlatformTransactionManager
transactionManager
(
EntityManagerFactoryBuilder
builder
,
JpaProperties
jpaProperties
,
HibernateProperties
hibernateProperties
)
{
return
new
JpaTransactionManager
(
entityManagerFactoryPrimary
(
builder
,
jpaProperties
,
hibernateProperties
).
getObject
());
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
controller
;
import
ai.qiwu.com.xiaoduhome.common.TokenHolder
;
import
ai.qiwu.com.xiaoduhome.common.Utils
;
import
ai.qiwu.com.xiaoduhome.pojo.TokenDuerosResponse
;
import
ai.qiwu.com.xiaoduhome.pojo.User
;
import
ai.qiwu.com.xiaoduhome.service.LoadBySMS
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.servlet.http.HttpServletRequest
;
import
java.io.IOException
;
import
java.util.concurrent.ConcurrentHashMap
;
/**
* 百度的第三方登录基于OAuth2.0的授权码模式,由于郊游天下平台还没有实现该种授权模式给第三方,
* 所以这里便根据OAuth2协议的内容来实现,从而满足Dueros的要求
* 切忌:验证方法enableVerify()一定要开启,否则回调地址会拒绝你
* @author 苗权威
* @dateTime 19-7-18 下午5:55
*/
@Controller
@RequestMapping
(
value
=
"/xiaodu/security"
)
@Slf4j
public
class
Oauth2Controller
{
@Autowired
private
LoadBySMS
loadBySMS
;
/**
* /xiaodu/security/load:这是小度授权信息配置里的“授权地址”,也就是登录卡片点击后跳转到的登录页面地址
* @param state 状态,例如在测试时传来的值是“debug”,在回调时该值若有需要原样返回
* @param scope 用户权限范围
* @param response_type code
* @param redirect_uri 回调地址
* @param client_id 我们设置的Client_id
* @param modelMap 用于传值
* @param request 测试时使用来查看请求头信息的
* @return 返回结果页
*/
@GetMapping
(
"/load"
)
public
String
load
(
@RequestParam
(
required
=
false
)
String
state
,
@RequestParam
(
required
=
false
)
String
scope
,
@RequestParam
String
response_type
,
@RequestParam
String
redirect_uri
,
@RequestParam
String
client_id
,
ModelMap
modelMap
,
HttpServletRequest
request
)
{
//Dueros发来的登录请求信息
//HttpRequestUtils.getLoadPageInfo(request);
boolean
verifyResult
=
Utils
.
verifyLoadRequest
(
client_id
,
redirect_uri
);
if
(!
verifyResult
)
{
log
.
error
(
"该登录请求不合规:client_id:{},redirect_uri:{}"
,
client_id
,
redirect_uri
);
return
"LoadFailed"
;
}
User
user
=
new
User
();
user
.
setState
(
state
);
modelMap
.
put
(
"userInfo"
,
user
);
return
"Oauth2_load"
;
}
@GetMapping
(
"/home"
)
public
String
homeLoad
(
@RequestParam
(
required
=
false
)
String
state
,
@RequestParam
(
required
=
false
)
String
scope
,
@RequestParam
String
response_type
,
@RequestParam
String
redirect_uri
,
@RequestParam
String
client_id
,
ModelMap
modelMap
,
HttpServletRequest
request
)
{
//Dueros发来的登录请求信息
//HttpRequestUtils.getLoadPageInfo(request);
boolean
verifyResult
=
Utils
.
verifyLoadRequest
(
client_id
,
redirect_uri
);
if
(!
verifyResult
)
{
log
.
error
(
"该登录请求不合规:client_id:{},redirect_uri:{}"
,
client_id
,
redirect_uri
);
return
"LoadFailed"
;
}
User
user
=
new
User
();
user
.
setState
(
state
);
modelMap
.
put
(
"userInfo"
,
user
);
return
"home_load"
;
}
/**
* 用户点击获取短信验证码
* @param phoneNumber 电话号码
*/
@RequestMapping
(
"/captcha"
)
public
@ResponseBody
void
getCaptcha
(
@RequestParam
String
phoneNumber
)
{
// 校验手机号
// log.info("电话号码:"+phoneNumber);
try
{
loadBySMS
.
requireCaptcha
(
phoneNumber
);
}
catch
(
Exception
e
)
{
log
.
error
(
"获取验证码出错:{}"
,
e
.
toString
());
}
}
/**
* 用户点击登录后调用该方法,利用电话号码与短信验证码从郊游天下平台获取AccessToken与RefreshToken,
* 之后Oauth2_load页会重定向到回调地址,回调地址在收到后会请求我们设置的Token地址,
* 即/xiaodu/security/accessToken
* @param phoneNumber 电话号码
* @param captcha 短信验证码
* @return 1代表从郊游天下平台获取验证码成功
*/
@RequestMapping
(
"/token"
)
public
@ResponseBody
String
getAccessToken
(
@RequestParam
String
phoneNumber
,
@RequestParam
String
captcha
)
{
// log.info("电话号码:"+phoneNumber+",captcha:"+captcha);
if
(
StringUtils
.
isNotEmpty
(
captcha
))
{
// 获取token
boolean
result
;
try
{
result
=
loadBySMS
.
requireCodeToken
(
phoneNumber
,
captcha
);
}
catch
(
IOException
e
)
{
log
.
error
(
"获取Token出错:{}"
,
e
.
toString
());
result
=
false
;
}
log
.
info
(
"请求郊游天下Token返回结果:"
+
result
);
if
(
result
)
{
return
"1"
;
}
else
{
log
.
warn
(
"请求郊游天下Token失败"
);
return
"0"
;
}
}
else
{
return
"0"
;
}
}
/**
* 回调地址会主动请求该地址,我们返回给他Token
* @param grant_type authorization_code
* @param code 授权码
* @param client_id 我们设置的Client_id
* @param client_secret 我们设置的Client_secret
* @param redirect_uri 回调地址
* @return 按规定我们需要返回的信息格式如下:
* {
* "access_token": "ACCESS_TOKEN",
* "expires_in": 1234,
* "refresh_token":"REFRESH_TOKEN"
* }
*/
@RequestMapping
(
"/accessToken"
)
public
@ResponseBody
TokenDuerosResponse
returnTokenToDueros
(
@RequestParam
String
grant_type
,
@RequestParam
String
code
,
@RequestParam
String
client_id
,
@RequestParam
String
client_secret
,
@RequestParam
String
redirect_uri
)
{
log
.
info
(
"小度请求Token,client_id:{};client_secret:{};redirect_uri:{};code:{}"
,
client_id
,
client_secret
,
redirect_uri
,
code
);
// 请求会出现发来的消息每个值重复一遍的情况,待解决?
client_id
=
client_id
.
substring
(
client_id
.
lastIndexOf
(
","
)+
1
);
client_secret
=
client_secret
.
substring
(
client_secret
.
lastIndexOf
(
","
)+
1
);
redirect_uri
=
redirect_uri
.
substring
(
redirect_uri
.
lastIndexOf
(
","
)+
1
);
code
=
code
.
substring
(
code
.
lastIndexOf
(
","
)+
1
);
boolean
verifyResult
=
Utils
.
verifyTokenRequest
(
client_id
,
client_secret
,
redirect_uri
);
if
(!
verifyResult
)
{
log
.
error
(
"不合规的Token请求"
);
return
null
;
}
ConcurrentHashMap
<
String
,
TokenHolder
>
cache
=
LoadBySMS
.
getCodeToken
();
TokenHolder
holder
=
cache
.
get
(
code
);
String
accessToken
;
if
(
holder
==
null
||
(
accessToken
=
holder
.
getAccessToken
())==
null
)
{
log
.
error
(
"没有对应的令牌"
);
return
null
;
}
cache
.
remove
(
code
);
TokenDuerosResponse
response
=
new
TokenDuerosResponse
();
response
.
setAccess_token
(
accessToken
);
response
.
setRefresh_token
(
holder
.
getRefreshToken
());
response
.
setExpires_in
(
holder
.
getExpire
());
return
response
;
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java
View file @
fda1e77c
...
@@ -17,18 +17,20 @@ import java.io.File;
...
@@ -17,18 +17,20 @@ import java.io.File;
@RestController
@RestController
@Slf4j
@Slf4j
public
class
XiaoDuHomeController
{
public
class
XiaoDuHomeController
{
@RequestMapping
(
"/xiaoduhome/chat"
)
@RequestMapping
(
"/xiaoduhome/chat"
)
public
String
chat
()
{
public
String
chat
()
{
try
{
try
{
DplBotService
service
=
new
DplBotService
(
Utils
.
getHttpServletRequest
());
DplBotService
service
=
new
DplBotService
(
Utils
.
getHttpServletRequest
());
//log.info("请求信息:{}", service.getStrRequest
());
log
.
info
(
"请求信息中的attributes:{}"
,
service
.
getRequest
().
getSession
().
getAttributes
());
//service.disableVerify();
//service.disableVerify();
service
.
enableVerify
();
service
.
enableVerify
();
String
str
=
service
.
run
();
String
str
=
service
.
run
();
log
.
info
(
"响应信息:{}"
,
str
);
log
.
info
(
"响应信息:{}"
,
str
);
return
str
;
return
str
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"出现错误 "
+
e
.
toString
());
e
.
printStackTrace
();
//log.error("出现错误 "+e.toString());
}
}
return
null
;
return
null
;
}
}
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFavoriteTB.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
.
primary
;
import
lombok.Data
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
import
org.springframework.data.annotation.CreatedDate
;
import
org.springframework.data.annotation.LastModifiedDate
;
import
org.springframework.data.jpa.domain.support.AuditingEntityListener
;
import
javax.persistence.*
;
import
java.util.Date
;
/**
* @author 苗权威
* @dateTime 19-8-21 下午4:00
*/
@Entity
@EntityListeners
(
AuditingEntityListener
.
class
)
@Table
(
name
=
"app_favorite_tb"
)
@Data
public
class
AppFavoriteTB
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
@Column
(
name
=
"bot_username"
)
private
String
botId
;
@Column
(
name
=
"user_id"
)
private
Integer
userId
;
@Column
private
Integer
module
;
@CreatedDate
@Column
(
name
=
"gmt_create"
,
nullable
=
false
,
updatable
=
false
)
private
Date
createTime
;
@Column
(
name
=
"gmt_modified"
)
@LastModifiedDate
private
Date
updateTime
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTB.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
.
primary
;
import
lombok.Data
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
import
org.springframework.data.annotation.CreatedDate
;
import
org.springframework.data.annotation.LastModifiedDate
;
import
org.springframework.data.jpa.domain.support.AuditingEntityListener
;
import
javax.persistence.*
;
import
java.util.Date
;
/**
* @author 苗权威
* @dateTime 19-8-19 下午8:27
*/
@Entity
@Table
(
name
=
"app_flower_tb"
)
@EntityListeners
(
AuditingEntityListener
.
class
)
@Data
public
class
AppFlowerTB
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
@Column
private
Integer
module
;
@Column
(
name
=
"bot_username"
)
private
String
botName
;
@Column
(
name
=
"user_id"
)
private
Integer
userId
;
@Column
(
name
=
"unit_price"
)
private
Double
unitPrice
;
@Column
private
Integer
number
;
@Column
(
name
=
"order_id"
)
private
Integer
orderId
;
@Column
private
Integer
status
;
@Column
(
name
=
"gmt_create"
)
private
Date
createTime
;
@Column
(
name
=
"gmt_modified"
)
@LastModifiedDate
private
Date
updateTime
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTBTiny.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
.
primary
;
import
lombok.Data
;
import
javax.persistence.*
;
/**
* @author 苗权威
* @dateTime 19-8-22 下午5:12
*/
@Entity
@Table
(
name
=
"app_flower_tb"
)
@Data
public
class
AppFlowerTBTiny
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
@Column
(
name
=
"user_id"
)
private
Integer
userId
;
@Column
(
name
=
"unit_price"
)
private
Double
unitPrice
;
@Column
(
name
=
"bot_username"
)
private
String
botId
;
@Column
private
Integer
number
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppUserTB.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
.
primary
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
import
javax.persistence.*
;
import
java.util.Date
;
/**
* @author 苗权威
* @dateTime 19-8-19 下午4:20
*/
@Entity
@Table
(
name
=
"app_user_tb"
)
@Getter
@Setter
@ToString
public
class
AppUserTB
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"info_id"
)
private
Integer
infoId
;
@Column
(
name
=
"user_phone"
)
private
String
phone
;
@Column
(
name
=
"gmt_create"
)
private
Date
createTime
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/GameProjectTb.java
→
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/
primary/
GameProjectTb.java
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
;
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
.
primary
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/OnProductDetail.java
→
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/
primary/
OnProductDetail.java
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
;
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
.
primary
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
...
@@ -43,6 +43,9 @@ public class OnProductDetail {
...
@@ -43,6 +43,9 @@ public class OnProductDetail {
@Column
(
name
=
"user_nickname"
)
@Column
(
name
=
"user_nickname"
)
private
String
authorName
;
private
String
authorName
;
@Column
(
name
=
"bot_id"
)
private
Integer
botId
;
@Transient
@Transient
private
List
<
String
>
labels
;
private
List
<
String
>
labels
;
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/ProjectLabel.java
→
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/
primary/
ProjectLabel.java
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
;
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
.
primary
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderIdTB.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
.
secondary
;
import
lombok.Data
;
import
org.springframework.data.jpa.domain.support.AuditingEntityListener
;
import
javax.persistence.*
;
/**
* @author 苗权威
* @dateTime 19-8-22 下午4:23
*/
@Entity
@EntityListeners
(
AuditingEntityListener
.
class
)
@Table
(
name
=
"xiaodu_order_tb"
)
@Data
public
class
XiaoDuOrderIdTB
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
@Column
(
name
=
"bot_id"
)
private
String
botId
;
@Column
(
name
=
"xiaodu_user_id"
)
private
String
xiaoduUserId
;
@Column
(
name
=
"unit_price"
)
private
Integer
unitPrice
;
@Column
private
Integer
number
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
entity
.
secondary
;
import
lombok.Data
;
import
org.springframework.data.annotation.CreatedDate
;
import
org.springframework.data.annotation.LastModifiedDate
;
import
org.springframework.data.jpa.domain.support.AuditingEntityListener
;
import
javax.persistence.*
;
import
java.util.Date
;
/**
* @author 苗权威
* @dateTime 19-8-22 下午3:45
*/
@Entity
@EntityListeners
(
AuditingEntityListener
.
class
)
@Table
(
name
=
"xiaodu_order_tb"
)
@Data
public
class
XiaoDuOrderTB
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
@Column
(
name
=
"bot_id"
)
private
String
botId
;
@Column
(
name
=
"app_user_id"
)
private
String
appUserId
;
@Column
(
name
=
"xiaodu_user_id"
)
private
String
xiaoduUserId
;
@Column
(
name
=
"unit_price"
)
private
Integer
unitPrice
;
@Column
private
Integer
number
;
@Column
(
name
=
"order_id"
)
private
String
orderId
;
@Column
private
String
timestamp
;
@Column
(
name
=
"is_buy"
)
private
Boolean
isBuy
;
@CreatedDate
@Column
(
name
=
"create_time"
,
nullable
=
false
,
updatable
=
false
)
private
Date
createTime
;
@Column
(
name
=
"update_time"
)
@LastModifiedDate
private
Date
updateTime
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CaptchaSmsResponse.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
pojo
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
* @author 苗权威
* @dateTime 19-7-17 下午6:33
*/
@Getter
@Setter
@ToString
public
class
CaptchaSmsResponse
{
private
String
message
;
private
String
payload
;
private
Integer
retcode
;
private
Integer
status
;
private
Long
timestamp
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CodeMsgData.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
pojo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
* @author 苗权威
* @dateTime 19-8-17 下午5:05
*/
@Getter
@Setter
@ToString
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
CodeMsgData
{
private
Integer
code
;
private
String
msg
;
private
XiaoWuData
data
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CollecProduct.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
pojo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
* @author 苗权威
* @dateTime 19-8-19 上午10:56
*/
@Getter
@Setter
@ToString
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
CollecProduct
{
private
String
worksName
;
// 作品名称
private
String
authorName
;
private
String
aipioneerUsername
;
//作品用户名
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/Payload.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
pojo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
* @author 苗权威
* @dateTime 19-8-19 下午1:06
*/
@Getter
@Setter
@ToString
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
Payload
{
private
String
infoId
;
private
String
userPhone
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenDuerosResponse.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
pojo
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
* @author 苗权威
* @dateTime 19-7-18 下午7:44
*/
@Getter
@Setter
@ToString
public
class
TokenDuerosResponse
{
private
String
access_token
;
private
Integer
expires_in
;
private
String
refresh_token
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
pojo
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
* @author 苗权威
* @dateTime 19-7-17 下午7:34
*/
@Getter
@Setter
@ToString
public
class
TokenResponse
{
private
String
accessToken
;
private
String
message
;
private
String
payload
;
private
String
refreshToken
;
private
String
tokenType
;
private
Integer
expire
;
private
Integer
retcode
;
private
Integer
status
;
private
Long
timestamp
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/User.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
pojo
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
* @author 苗权威
* @dateTime 19-7-12 下午8:47
*/
@Getter
@Setter
@ToString
public
class
User
{
private
String
userId
;
private
String
userName
;
private
String
password
;
private
String
phoneNumber
;
private
String
captcha
;
private
String
state
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserCollecResult.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
pojo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
import
java.util.List
;
/**
* @author 苗权威
* @dateTime 19-8-19 上午10:55
*/
@Getter
@Setter
@ToString
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
UserCollecResult
{
private
Integer
code
;
private
String
msg
;
private
List
<
CollecProduct
>
data
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserInfoByTokenResult.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
pojo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
* @author 苗权威
* @dateTime 19-8-19 下午1:03
*/
@Getter
@Setter
@ToString
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
UserInfoByTokenResult
{
private
Integer
status
;
private
Integer
retcode
;
private
String
message
;
private
String
payload
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/XiaoWuData.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
pojo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.ToString
;
/**
* @author 苗权威
* @dateTime 19-8-17 下午5:07
*/
@Getter
@Setter
@ToString
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
XiaoWuData
{
private
String
worksName
;
private
String
authorName
;
private
String
aipioneerUsername
;
private
Integer
count
;
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java
View file @
fda1e77c
...
@@ -17,4 +17,12 @@ public class Event {
...
@@ -17,4 +17,12 @@ public class Event {
private
String
type
;
private
String
type
;
private
String
componentId
;
private
String
componentId
;
private
Integer
durationInMillisecond
;
private
Integer
durationInMillisecond
;
public
Event
()
{
}
public
Event
(
String
type
,
String
componentId
)
{
this
.
type
=
type
;
this
.
componentId
=
componentId
;
}
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item.java
View file @
fda1e77c
...
@@ -37,10 +37,16 @@ public class Item {
...
@@ -37,10 +37,16 @@ public class Item {
private
String
color
;
private
String
color
;
@JsonProperty
(
"padding-left"
)
@JsonProperty
(
"padding-left"
)
private
String
paddingLeft
;
private
String
paddingLeft
;
@JsonProperty
(
"padding-right"
)
private
String
paddingRight
;
@JsonProperty
(
"margin-left"
)
@JsonProperty
(
"margin-left"
)
private
String
marginLeft
;
private
String
marginLeft
;
@JsonProperty
(
"margin-right"
)
private
String
marginRight
;
@JsonProperty
(
"margin-top"
)
@JsonProperty
(
"margin-top"
)
private
String
marginTop
;
private
String
marginTop
;
@JsonProperty
(
"margin-bottom"
)
private
String
marginBo
;
private
Boolean
looping
;
private
Boolean
looping
;
private
Boolean
autoPlay
;
private
Boolean
autoPlay
;
private
String
audioType
;
private
String
audioType
;
...
@@ -58,6 +64,8 @@ public class Item {
...
@@ -58,6 +64,8 @@ public class Item {
private
String
position
;
private
String
position
;
private
String
top
;
private
String
top
;
private
String
left
;
private
String
left
;
private
String
bottom
;
private
String
right
;
private
String
headerImage
;
private
String
headerImage
;
@JsonProperty
(
"flex-direction"
)
@JsonProperty
(
"flex-direction"
)
private
String
flexDirection
;
private
String
flexDirection
;
...
@@ -77,4 +85,13 @@ public class Item {
...
@@ -77,4 +85,13 @@ public class Item {
private
Boolean
hasBackIcon
;
private
Boolean
hasBackIcon
;
private
String
initialPage
;
private
String
initialPage
;
@JsonProperty
(
"max-lines"
)
private
Integer
maxLines
;
@JsonProperty
(
"align-items"
)
private
String
alignItems
;
@JsonProperty
(
"justify-content"
)
private
String
justify
;
@JsonProperty
(
"text-overflow"
)
private
String
overflow
;
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/AllOnProductInfoRepository.java
→
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/
primary/
AllOnProductInfoRepository.java
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
;
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
.
primary
;
import
ai.qiwu.com.xiaoduhome.entity.OnProductDetail
;
import
ai.qiwu.com.xiaoduhome.entity.
primary.
OnProductDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
import
java.util.List
;
...
@@ -9,6 +10,7 @@ import java.util.List;
...
@@ -9,6 +10,7 @@ import java.util.List;
* @author 苗权威
* @author 苗权威
* @dateTime 19-8-16 下午6:26
* @dateTime 19-8-16 下午6:26
*/
*/
@Repository
public
interface
AllOnProductInfoRepository
extends
JpaRepository
<
OnProductDetail
,
Integer
>
{
public
interface
AllOnProductInfoRepository
extends
JpaRepository
<
OnProductDetail
,
Integer
>
{
List
<
OnProductDetail
>
findAllByApplyStatus
(
Integer
applyStatus
);
List
<
OnProductDetail
>
findAllByApplyStatus
(
Integer
applyStatus
);
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
.
primary
;
import
ai.qiwu.com.xiaoduhome.entity.primary.AppFavoriteTB
;
import
org.springframework.data.domain.Example
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.transaction.annotation.Transactional
;
/**
* @author 苗权威
* @dateTime 19-8-21 下午4:04
*/
@Repository
public
interface
AppFavoriteTBRepository
extends
JpaRepository
<
AppFavoriteTB
,
Integer
>
{
@Query
(
value
=
"INSERT INTO app_favorite_tb (bot_username,module,user_id,gmt_create,gmt_modified) VALUES (?1, 0, ?2, now(), now())"
,
nativeQuery
=
true
)
void
insertFavorite
(
String
botId
,
Integer
userId
);
@Query
(
value
=
"DELETE FROM app_favorite_tb WHERE bot_username=?1 AND user_id=?2"
,
nativeQuery
=
true
)
void
deleteFavorite
(
String
botId
,
Integer
userId
);
AppFavoriteTB
getByUserId
(
Integer
userId
);
@Override
<
S
extends
AppFavoriteTB
>
boolean
exists
(
Example
<
S
>
example
);
@Transactional
@Override
<
S
extends
AppFavoriteTB
>
S
save
(
S
s
);
@Transactional
void
deleteByBotIdAndUserId
(
String
botId
,
Integer
userId
);
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBRepository.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
.
primary
;
import
ai.qiwu.com.xiaoduhome.entity.primary.AppFlowerTB
;
import
org.springframework.data.domain.Example
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.stereotype.Repository
;
/**
* @author 苗权威
* @dateTime 19-8-19 下午8:36
*/
@Repository
public
interface
AppFlowerTBRepository
extends
JpaRepository
<
AppFlowerTB
,
Integer
>
{
@Query
(
value
=
"INSERT INTO app_flower_tb (module,bot_username,user_id,unit_price,number,order_id,status,gmt_create,gmt_modified) VALUES (0,?1,?2,1,1,?3,1,?4,?4)"
,
nativeQuery
=
true
)
void
insertOrder
(
String
botId
,
String
userId
,
String
orderId
,
String
time
);
@Override
<
S
extends
AppFlowerTB
>
S
save
(
S
s
);
@Override
<
S
extends
AppFlowerTB
>
boolean
exists
(
Example
<
S
>
example
);
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBTintRepository.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
.
primary
;
import
ai.qiwu.com.xiaoduhome.entity.primary.AppFlowerTBTiny
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* @author 苗权威
* @dateTime 19-8-22 下午5:18
*/
@Repository
public
interface
AppFlowerTBTintRepository
extends
JpaRepository
<
AppFlowerTBTiny
,
Integer
>
{
AppFlowerTBTiny
getByUserIdAndBotIdAndUnitPrice
(
Integer
userId
,
String
botId
,
Double
unitPrice
);
List
<
AppFlowerTBTiny
>
getByUserIdAndBotId
(
Integer
userId
,
String
botId
);
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppUserTBRepository.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
.
primary
;
import
ai.qiwu.com.xiaoduhome.entity.primary.AppUserTB
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.stereotype.Repository
;
/**
* @author 苗权威
* @dateTime 19-8-19 下午7:29
*/
@Repository
public
interface
AppUserTBRepository
extends
JpaRepository
<
AppUserTB
,
Integer
>
{
AppUserTB
getByPhone
(
String
phone
);
@Query
(
value
=
"INSERT INTO app_user_tb (user_phone,gmt_create) VALUES (?1, now())"
,
nativeQuery
=
true
)
void
insertUser
(
String
phone
);
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/GameProjectTbRepository.java
→
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/
primary/
GameProjectTbRepository.java
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
;
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
.
primary
;
import
ai.qiwu.com.xiaoduhome.entity.GameProjectTb
;
import
ai.qiwu.com.xiaoduhome.entity.
primary.
GameProjectTb
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
import
java.util.List
;
...
@@ -11,6 +12,7 @@ import java.util.List;
...
@@ -11,6 +12,7 @@ import java.util.List;
* @author 苗权威
* @author 苗权威
* @dateTime 19-8-14 下午9:05
* @dateTime 19-8-14 下午9:05
*/
*/
@Repository
public
interface
GameProjectTbRepository
extends
JpaRepository
<
GameProjectTb
,
Integer
>
{
public
interface
GameProjectTbRepository
extends
JpaRepository
<
GameProjectTb
,
Integer
>
{
List
<
GameProjectTb
>
findFirst15ByApplyStatusOrderByWatchDesc
(
Integer
applyStatus
);
List
<
GameProjectTb
>
findFirst15ByApplyStatusOrderByWatchDesc
(
Integer
applyStatus
);
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/ProjectLabelRepository.java
→
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/
primary/
ProjectLabelRepository.java
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
;
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
.
primary
;
import
ai.qiwu.com.xiaoduhome.entity.ProjectLabel
;
import
ai.qiwu.com.xiaoduhome.entity.
primary.
ProjectLabel
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
import
java.util.List
;
...
@@ -11,6 +12,7 @@ import java.util.List;
...
@@ -11,6 +12,7 @@ import java.util.List;
* @author 苗权威
* @author 苗权威
* @dateTime 19-8-15 下午4:03
* @dateTime 19-8-15 下午4:03
*/
*/
@Repository
public
interface
ProjectLabelRepository
extends
JpaRepository
<
ProjectLabel
,
Integer
>
{
public
interface
ProjectLabelRepository
extends
JpaRepository
<
ProjectLabel
,
Integer
>
{
@Query
(
value
=
"SELECT name FROM game_project_label_tb WHERE project_id = :productId"
,
nativeQuery
=
true
)
@Query
(
value
=
"SELECT name FROM game_project_label_tb WHERE project_id = :productId"
,
nativeQuery
=
true
)
...
...
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTBIdRepository.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
.
secondary
;
import
ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderIdTB
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.transaction.annotation.Transactional
;
/**
* @author 苗权威
* @dateTime 19-8-22 下午4:28
*/
@Repository
(
value
=
"xiaoDuOrderTBIdRepository"
)
public
interface
XiaoDuOrderTBIdRepository
extends
JpaRepository
<
XiaoDuOrderIdTB
,
Integer
>
{
XiaoDuOrderIdTB
getByXiaoduUserIdAndBotIdAndUnitPrice
(
String
xiaoduUserId
,
String
botId
,
Integer
unitPrice
);
@Transactional
@Override
<
S
extends
XiaoDuOrderIdTB
>
S
save
(
S
s
);
}
\ No newline at end of file
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
repository
.
secondary
;
import
ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderTB
;
import
org.springframework.data.domain.Example
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.transaction.annotation.Transactional
;
/**
* @author 苗权威
* @dateTime 19-8-22 下午3:59
*/
@Repository
(
value
=
"xiaoDuOrderTbRepository"
)
public
interface
XiaoDuOrderTbRepository
extends
JpaRepository
<
XiaoDuOrderTB
,
Integer
>
{
@Override
<
S
extends
XiaoDuOrderTB
>
boolean
exists
(
Example
<
S
>
example
);
@Transactional
@Override
<
S
extends
XiaoDuOrderTB
>
S
save
(
S
s
);
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
service
;
package
ai
.
qiwu
.
com
.
xiaoduhome
.
service
;
import
ai.qiwu.com.xiaoduhome.common.Constants
;
import
ai.qiwu.com.xiaoduhome.common.*
;
import
ai.qiwu.com.xiaoduhome.common.Utils
;
import
ai.qiwu.com.xiaoduhome.entity.primary.*
;
import
ai.qiwu.com.xiaoduhome.entity.GameProjectTb
;
import
ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderTB
;
import
ai.qiwu.com.xiaoduhome.entity.OnProductDetail
;
import
ai.qiwu.com.xiaoduhome.pojo.*
;
import
ai.qiwu.com.xiaoduhome.pojo.MyParallelCommand
;
import
ai.qiwu.com.xiaoduhome.pojo.QiWuResponse
;
import
ai.qiwu.com.xiaoduhome.pojo.dpl.Data
;
import
ai.qiwu.com.xiaoduhome.pojo.dpl.Data
;
import
ai.qiwu.com.xiaoduhome.pojo.dpl.Item
;
import
ai.qiwu.com.xiaoduhome.pojo.dpl.Item
;
import
ai.qiwu.com.xiaoduhome.pojo.dpl.MyDocument
;
import
ai.qiwu.com.xiaoduhome.pojo.dpl.MyDocument
;
import
ai.qiwu.com.xiaoduhome.repository.primary.AppFavoriteTBRepository
;
import
ai.qiwu.com.xiaoduhome.repository.primary.AppFlowerTBRepository
;
import
ai.qiwu.com.xiaoduhome.repository.primary.AppFlowerTBTintRepository
;
import
ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuOrderTbRepository
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.baidu.dueros.bot.AudioPlayer
;
import
com.baidu.dueros.bot.BaseBot
;
import
com.baidu.dueros.bot.BaseBot
;
import
com.baidu.dueros.data.request.Context
;
import
com.baidu.dueros.data.request.IntentRequest
;
import
com.baidu.dueros.data.request.IntentRequest
;
import
com.baidu.dueros.data.request.LaunchRequest
;
import
com.baidu.dueros.data.request.LaunchRequest
;
import
com.baidu.dueros.data.request.Query
;
import
com.baidu.dueros.data.request.Query
;
import
com.baidu.dueros.data.request.
audioplayer.event.PlaybackFinished
Event
;
import
com.baidu.dueros.data.request.
buy.event.Buy
Event
;
import
com.baidu.dueros.data.request.
audioplayer.event.PlaybackStopp
edEvent
;
import
com.baidu.dueros.data.request.
events.LinkAccountSucceed
edEvent
;
import
com.baidu.dueros.data.response.OutputSpeech
;
import
com.baidu.dueros.data.response.OutputSpeech
;
import
com.baidu.dueros.data.response.directive.audioplayer.AudioPlayerDirective
;
import
com.baidu.dueros.data.response.card.Card
;
import
com.baidu.dueros.data.response.directive.audioplayer.Play
;
import
com.baidu.dueros.data.response.card.LinkAccountCard
;
import
com.baidu.dueros.data.response.directive.dpl.Document
;
import
com.baidu.dueros.data.response.directive.display.Hint
;
import
com.baidu.dueros.data.response.directive.display.PushStack
;
import
com.baidu.dueros.data.response.directive.dpl.ExecuteCommands
;
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.*
;
import
com.baidu.dueros.data.response.directive.dpl.commands.*
;
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.Buy
;
import
com.baidu.dueros.model.Response
;
import
com.baidu.dueros.model.Response
;
import
javafx.scene.media.MediaPlayer
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.data.domain.Example
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.io.*
;
import
java.io.*
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.nio.charset.StandardCharsets
;
import
java.nio.charset.StandardCharsets
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.List
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.locks.LockSupport
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
CATEGORY_IMG_URL
.*;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
DPL_COMPONENT_ID
.*;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
LOAD_INTRO
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
PRODUCT_INTRO
.*;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
REWARD_FLOWER
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
WelcomeWord
.
FAIL_COLLECT
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
common
.
Constants
.
XIAOWU_API
.*;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
service
.
ScheduleService
.
CATEGORY
;
import
static
ai
.
qiwu
.
com
.
xiaoduhome
.
service
.
ScheduleService
.
CATEGORY_PRODUCT_LIST
;
/**
/**
* @author 苗权威
* @author 苗权威
...
@@ -53,14 +63,32 @@ public class DplBotService extends BaseBot {
...
@@ -53,14 +63,32 @@ public class DplBotService extends BaseBot {
private
static
final
MyDocument
PROD_INFO
;
private
static
final
MyDocument
PROD_INFO
;
//private static final double NANO = Math.pow(10,9);
private
static
final
MyDocument
FIRST_PAGE
;
private
static
final
MyDocument
CATEGORY_PROD
;
private
static
final
Item
CATEGORY_PROD_LIST
;
private
static
final
Item
CATEGORY_PROD_HEAD
;
private
static
final
ConcurrentHashMap
<
String
,
String
>
DU_ID_2_US_ID
;
private
static
final
String
[]
PRODUCT_INFO_HINTS
=
{
"打开下一个"
,
"打开推荐作品"
,
"收藏作品"
,
"打开排行榜"
};
private
static
final
Hint
PRODUCT_INFO_HINT
;
static
{
static
{
PLAY_DOCUMENT
=
JSON
.
parseObject
(
getDPLTemple
(
"static/json/play.json"
),
MyDocument
.
class
);
PLAY_DOCUMENT
=
JSON
.
parseObject
(
getDPLTemple
(
"static/json/play.json"
),
MyDocument
.
class
);
LOAD_DOCUMENT
=
JSON
.
parseObject
(
getDPLTemple
(
"static/json/onLunch.json"
),
MyDocument
.
class
);
LOAD_DOCUMENT
=
JSON
.
parseObject
(
getDPLTemple
(
"static/json/onLunch2.json"
),
MyDocument
.
class
);
Item
list
=
LOAD_DOCUMENT
.
getMainTemplate
().
getItems
().
get
(
0
).
getItems
().
get
(
1
).
getItems
().
get
(
2
).
getItems
().
get
(
0
);
List
<
Item
>
thirdRow
=
LOAD_DOCUMENT
.
getMainTemplate
().
getItems
().
get
(
1
).
getItems
().
get
(
1
).
getItems
();
list
.
setData
(
buildDataList
());
thirdRow
.
get
(
0
).
getItems
().
get
(
0
).
setData
(
buildDataList
(
ScheduleService
.
RANKING_LIST
));
thirdRow
.
get
(
1
).
getItems
().
get
(
0
).
setData
(
buildDataList
(
ScheduleService
.
RECOMMEND_LIST
));
thirdRow
.
get
(
2
).
getItems
().
get
(
0
).
setData
(
buildCategoryDataList
());
CATEGORY_PROD
=
JSON
.
parseObject
(
getDPLTemple
(
"static/json/categoryPro.json"
),
MyDocument
.
class
);
List
<
Item
>
container
=
CATEGORY_PROD
.
getMainTemplate
().
getItems
().
get
(
0
).
getItems
();
CATEGORY_PROD_LIST
=
container
.
get
(
2
).
getItems
().
get
(
0
);
CATEGORY_PROD_HEAD
=
container
.
get
(
1
);
PROD_INFO
=
JSON
.
parseObject
(
getDPLTemple
(
"static/json/productInfo.json"
),
MyDocument
.
class
);
PROD_INFO
=
JSON
.
parseObject
(
getDPLTemple
(
"static/json/productInfo.json"
),
MyDocument
.
class
);
FIRST_PAGE
=
JSON
.
parseObject
(
getDPLTemple
(
"static/json/firstPage.json"
),
MyDocument
.
class
);
DU_ID_2_US_ID
=
new
ConcurrentHashMap
<>();
PRODUCT_INFO_HINT
=
new
Hint
(
new
ArrayList
<>(
Arrays
.
asList
(
PRODUCT_INFO_HINTS
)));
}
}
public
DplBotService
(
HttpServletRequest
request
)
throws
IOException
{
public
DplBotService
(
HttpServletRequest
request
)
throws
IOException
{
...
@@ -69,31 +97,7 @@ public class DplBotService extends BaseBot {
...
@@ -69,31 +97,7 @@ public class DplBotService extends BaseBot {
@Override
@Override
public
Response
onLaunch
(
LaunchRequest
launchRequest
)
{
public
Response
onLaunch
(
LaunchRequest
launchRequest
)
{
// Document document = null;
RenderDocument
renderDocument
=
new
RenderDocument
(
FIRST_PAGE
);
// try {
// String str = getJsonFromName("static/json/onLunch.json");
// document = Document.getDocumentFromString(str);
// } catch (IOException e) {
// log.error("初始Loading渲染出错:{}", e.toString());
// }
// ExecuteCommands executeCommands = new ExecuteCommands();
// UpdateComponentCommand update = new UpdateComponentCommand();
// update.setDocument(document);
// update.setComponentId("load");
// SendEventCommand sendEventCommand = new SendEventCommand();
// sendEventCommand.setComponentId("load");
// executeCommands.addCommand(sendEventCommand);
// executeCommands.addCommand(update);
// this.addDirective(executeCommands);
ExecuteCommands
executeCommands
=
new
ExecuteCommands
();
AutoPageCommand
autoPage
=
new
AutoPageCommand
();
autoPage
.
setDurationInMillisecond
(
4000
);
autoPage
.
setComponentId
(
"second"
);
SendEventCommand
sendEvent
=
new
SendEventCommand
();
sendEvent
.
setComponentId
(
"onLunchImageClick"
);
executeCommands
.
addCommand
(
sendEvent
);
executeCommands
.
addCommand
(
autoPage
);
RenderDocument
renderDocument
=
new
RenderDocument
(
LOAD_DOCUMENT
);
this
.
addDirective
(
renderDocument
);
this
.
addDirective
(
renderDocument
);
OutputSpeech
outputSpeech
=
new
OutputSpeech
(
OutputSpeech
.
SpeechType
.
PlainText
,
Constants
.
WelcomeWord
.
WELCOME
);
OutputSpeech
outputSpeech
=
new
OutputSpeech
(
OutputSpeech
.
SpeechType
.
PlainText
,
Constants
.
WelcomeWord
.
WELCOME
);
return
new
Response
(
outputSpeech
);
return
new
Response
(
outputSpeech
);
...
@@ -101,6 +105,9 @@ public class DplBotService extends BaseBot {
...
@@ -101,6 +105,9 @@ public class DplBotService extends BaseBot {
@Override
@Override
protected
Response
onInent
(
IntentRequest
intentRequest
)
{
protected
Response
onInent
(
IntentRequest
intentRequest
)
{
if
(
"load"
.
equals
(
getIntent
().
getName
()))
{
return
load
();
}
String
userId
=
getCustomerId
();
String
userId
=
getCustomerId
();
Query
query
=
intentRequest
.
getQuery
();
Query
query
=
intentRequest
.
getQuery
();
String
userWord
=
null
;
String
userWord
=
null
;
...
@@ -112,30 +119,27 @@ public class DplBotService extends BaseBot {
...
@@ -112,30 +119,27 @@ public class DplBotService extends BaseBot {
QiWuResponse
data
=
null
;
QiWuResponse
data
=
null
;
try
{
try
{
data
=
RequestTerminal
.
requestTerminate
(
userWord
,
userId
);
data
=
RequestTerminal
.
requestTerminate
(
userWord
,
userId
);
}
catch
(
IO
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"请求终端接口出错:"
,
e
.
toString
());
log
.
error
(
"请求终端接口出错:"
,
e
.
toString
());
}
}
if
(
data
==
null
)
{
if
(
data
==
null
)
{
return
buildErrorResponse
(
Constants
.
ErrorMsg
.
SORRY_UNCATCH
);
return
buildErrorResponse
(
Constants
.
ErrorMsg
.
SORRY_UNCATCH
);
}
}
log
.
info
(
"小悟返回:{},时长{}"
,
data
.
getText
(),
data
.
getLength
());
//String wait = new BigDecimal(data.getLength()).setScale(0, RoundingMode.DOWN).toString();
//String wait = new BigDecimal(data.getLength()).setScale(0, RoundingMode.DOWN).toString();
String
text
=
data
.
getText
();
String
text
=
data
.
getText
();
List
<
Item
>
items
=
PLAY_DOCUMENT
.
getMainTemplate
().
getItems
().
get
(
0
).
getItems
().
get
(
1
).
getItems
();
log
.
info
(
"小悟返回:{}"
,
text
);
PLAY_DOCUMENT
.
getMainTemplate
().
getItems
().
get
(
0
).
getItems
().
get
(
2
).
setSrc
(
data
.
getAudio
());
List
<
Item
>
container
=
PLAY_DOCUMENT
.
getMainTemplate
().
getItems
().
get
(
2
).
getItems
();
items
.
get
(
1
).
getItems
().
get
(
0
).
setText
(
text
.
substring
(
text
.
indexOf
(
"】"
)+
1
));
container
.
get
(
1
).
setSrc
(
data
.
getAudio
());
text
=
text
.
substring
(
text
.
indexOf
(
"】"
)+
1
);
container
.
get
(
0
).
getItems
().
get
(
0
).
getItems
().
get
(
0
).
setText
(
text
);
ExecuteCommands
executeCommands
=
new
ExecuteCommands
();
// ExecuteCommands executeCommands = new ExecuteCommands();
UpdateComponentCommand
update
=
new
UpdateComponentCommand
();
// UpdateComponentCommand update = new UpdateComponentCommand();
update
.
setDocument
(
PLAY_DOCUMENT
);
// update.setDocument(PLAY_DOCUMENT);
update
.
setComponentId
(
"whole"
);
// update.setComponentId("whole");
executeCommands
.
addCommand
(
update
);
RenderDocument
render
=
new
RenderDocument
(
PLAY_DOCUMENT
);
SendEventCommand
sendEventCommand
=
new
SendEventCommand
();
this
.
addDirective
(
render
);
sendEventCommand
.
setComponentId
(
"audio"
);
executeCommands
.
addCommand
(
sendEventCommand
);
this
.
addDirective
(
executeCommands
);
long
endTime
=
System
.
currentTimeMillis
()+(
long
)
Double
.
parseDouble
(
data
.
getLength
())*
1000
;
this
.
setSessionAttribute
(
"length"
,
Long
.
toString
(
endTime
));
return
new
Response
();
return
new
Response
();
}
}
...
@@ -152,45 +156,36 @@ public class DplBotService extends BaseBot {
...
@@ -152,45 +156,36 @@ public class DplBotService extends BaseBot {
@Override
@Override
protected
Response
onUserEvent
(
UserEvent
userEvent
)
{
protected
Response
onUserEvent
(
UserEvent
userEvent
)
{
log
.
info
(
"onUserEvent事件触发,token:{}, componentId:{}"
,
userEvent
.
getToken
(),
userEvent
.
getPayload
().
getComponentId
());
log
.
info
(
"onUserEvent事件触发,token:{}, componentId:{}"
,
userEvent
.
getToken
(),
userEvent
.
getPayload
().
getComponentId
());
if
(
getAccessToken
()
!=
null
&&
getSessionAttribute
(
"userId"
)
==
null
)
{
try
{
String
userId
=
getUserIdByToken
(
getAccessToken
());
setSessionAttribute
(
"userId"
,
userId
);
}
catch
(
Exception
e
)
{
log
.
error
(
"新会话设置userId信息失败:{}"
,
e
.
toString
());
}
}
String
componentId
=
userEvent
.
getPayload
().
getComponentId
();
String
componentId
=
userEvent
.
getPayload
().
getComponentId
();
String
componentPrefix
;
String
componentPrefix
;
if
(
"audio"
.
equals
(
componentId
))
{
if
(
"continues"
.
equals
(
componentId
)){
String
endTime
=
this
.
getSessionAttribute
(
"length"
);
long
waitTime
=
Long
.
parseLong
(
endTime
);
//log.info("开麦等待事件触发,等待时长{}",waitTime);
long
wait
;
if
((
wait
=
waitTime
-
System
.
currentTimeMillis
())
>
300
)
{
wait
=
wait
>=
2500
?
2500
:
wait
;
try
{
Thread
.
sleep
(
wait
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
log
.
info
(
"等待结束"
);
ExecuteCommands
executeCommands
=
new
ExecuteCommands
();
SendEventCommand
eventCommand
=
new
SendEventCommand
();
eventCommand
.
setComponentId
(
"audio"
);
executeCommands
.
addCommand
(
eventCommand
);
this
.
addDirective
(
executeCommands
);
this
.
setSessionAttribute
(
"length"
,
endTime
);
return
new
Response
();
}
setExpectSpeech
(
true
);
setExpectSpeech
(
true
);
}
else
if
(
Constants
.
PRE_PRODUCT_IMG
.
equals
((
componentPrefix
=
componentId
.
substring
(
0
,
5
))))
{
}
else
if
(
Constants
.
PRE_PRODUCT_IMG
.
equals
((
componentPrefix
=
componentId
.
substring
(
0
,
5
))))
{
// 作品图片点击事件
// 作品图片点击事件
log
.
info
(
"图片点击触发"
);
log
.
info
(
"图片点击触发"
);
String
productName
=
componentId
.
substring
(
5
);
String
productName
=
componentId
.
substring
(
5
);
OnProductDetail
productDetail
=
ScheduleService
.
PRODUCT_NAME_DETAIL
.
get
(
productName
);
OnProductDetail
productDetail
=
ScheduleService
.
PRODUCT_NAME_DETAIL
.
get
(
productName
);
String
imgUrl
=
new
StringBuilder
(
Constants
.
IMG_PREFIX
).
append
(
productDetail
.
getBannerImgUrl
()).
toString
();
String
imgUrl
=
new
StringBuilder
(
Constants
.
IMG_PREFIX
).
append
(
productDetail
.
getBannerImgUrl
()).
toString
();
Item
container
=
PROD_INFO
.
getMainTemplate
().
getItems
().
get
(
0
);
List
<
Item
>
content
=
PROD_INFO
.
getMainTemplate
().
getItems
().
get
(
2
).
getItems
().
get
(
0
).
getItems
().
get
(
0
).
getItems
();
container
.
getOnClick
().
get
(
0
).
setComponentId
(
new
StringBuilder
(
Constants
.
PRE_ENTER_PRODUCT
).
append
(
correctName
(
productName
)).
toString
());
List
<
Item
>
content
=
container
.
getItems
().
get
(
1
).
getItems
().
get
(
1
).
getItems
();
// product picture
// product picture
content
.
get
(
0
).
setSrc
(
imgUrl
);
content
.
get
(
0
).
setSrc
(
imgUrl
);
// text content
// text content
List
<
Item
>
contentText
=
content
.
get
(
1
).
getItems
();
List
<
Item
>
contentText
=
content
.
get
(
1
).
getItems
();
// product name
// product name
productName
=
correctName
(
productName
);
contentText
.
get
(
0
).
setText
(
productName
);
contentText
.
get
(
0
).
setText
(
productName
);
// product create time
// product create time
...
@@ -209,19 +204,61 @@ public class DplBotService extends BaseBot {
...
@@ -209,19 +204,61 @@ public class DplBotService extends BaseBot {
contentText
.
get
(
2
).
getItems
().
get
(
0
).
setText
(
labels
.
toString
());
contentText
.
get
(
2
).
getItems
().
get
(
0
).
setText
(
labels
.
toString
());
// product introduction
// product introduction
contentText
.
get
(
3
).
setText
(
productDetail
.
getIntro
());
contentText
.
get
(
3
).
getItems
().
get
(
0
).
setText
(
productDetail
.
getIntro
());
ExecuteCommands
executeCommands
=
new
ExecuteCommands
();
List
<
Item
>
icons
=
contentText
.
get
(
4
).
getItems
();
UpdateComponentCommand
update
=
new
UpdateComponentCommand
();
// "start product" container button
update
.
setDocument
(
PROD_INFO
);
String
enterProName
=
new
StringBuilder
(
Constants
.
PRE_ENTER_PRODUCT
).
append
(
productName
).
toString
();
update
.
setComponentId
(
"whole"
);
icons
.
get
(
0
).
setComponentId
(
enterProName
);
executeCommands
.
addCommand
(
update
);
icons
.
get
(
0
).
getOnClick
().
get
(
0
).
setComponentId
(
enterProName
);
SendEventCommand
click
=
new
SendEventCommand
();
click
.
setComponentId
(
"whole"
);
String
accessToken
=
getAccessToken
();
executeCommands
.
addCommand
(
click
);
if
(
accessToken
!=
null
)
{
this
.
addDirective
(
executeCommands
);
// flower container button
Integer
count
=
getUserSendFlowerNum
(
String
.
valueOf
(
productDetail
.
getBotId
()));
Item
flower
=
icons
.
get
(
1
);
flower
.
getItems
().
get
(
1
).
setText
(
USER_SEND_FLOWER
+
count
);
String
flowerReward
=
new
StringBuilder
(
FLOWE
).
append
(
productDetail
.
getBotId
()).
toString
();
flower
.
setComponentId
(
flowerReward
);
flower
.
getOnClick
().
get
(
0
).
setComponentId
(
flowerReward
);
// collection container button
boolean
collec
=
didUserCollecThisProduct
(
String
.
valueOf
(
productDetail
.
getBotId
()));
Item
collecButton
=
icons
.
get
(
2
);
if
(
collec
)
{
collecButton
.
getItems
().
get
(
1
).
setText
(
COLLECED
);
collecButton
.
getItems
().
get
(
0
).
setSrc
(
COLLECTED_IMG_URL
);
String
unCollecId
=
new
StringBuilder
(
UN_COLLEC_ID
).
append
(
productDetail
.
getBotId
()).
toString
();
//collecButton.setComponentId(unCollecId);
collecButton
.
getOnClick
().
get
(
0
).
setComponentId
(
unCollecId
);
}
else
{
collecButton
.
getItems
().
get
(
1
).
setText
(
UN_COLLEC
);
collecButton
.
getItems
().
get
(
0
).
setSrc
(
UN_COLLECTED_IMG_URL
);
String
collecId
=
new
StringBuilder
(
COLLEC_ID
).
append
(
productDetail
.
getBotId
()).
toString
();
//collecButton.setComponentId(collecId);
collecButton
.
getOnClick
().
get
(
0
).
setComponentId
(
collecId
);
}
}
else
{
Item
flower
=
icons
.
get
(
1
);
flower
.
getItems
().
get
(
1
).
setText
(
FLOWER
);
flower
.
setComponentId
(
FLOWER_LOAD
);
flower
.
getOnClick
().
get
(
0
).
setComponentId
(
FLOWER_LOAD
);
Item
collecButton
=
icons
.
get
(
2
);
collecButton
.
getItems
().
get
(
1
).
setText
(
UN_COLLEC
);
collecButton
.
getItems
().
get
(
0
).
setSrc
(
UN_COLLECTED_IMG_URL
);
collecButton
.
setComponentId
(
FLOWER_LOAD
);
collecButton
.
getOnClick
().
get
(
0
).
setComponentId
(
FLOWER_LOAD
);
}
RenderDocument
renderDocument
=
new
RenderDocument
(
PROD_INFO
);
this
.
addDirective
(
renderDocument
);
this
.
addDirective
(
new
PushStack
());
this
.
addDirective
(
PRODUCT_INFO_HINT
);
return
new
Response
();
}
else
if
(
Constants
.
PRE_ENTER_PRODUCT
.
equals
(
componentPrefix
))
{
}
else
if
(
Constants
.
PRE_ENTER_PRODUCT
.
equals
(
componentPrefix
))
{
String
enterProductWord
=
new
StringBuilder
(
Constants
.
PRE_PRODUCT_PLAY
).
append
(
componentId
.
substring
(
5
)).
toString
();
String
productName
=
componentId
.
substring
(
5
);
String
enterProductWord
=
new
StringBuilder
(
Constants
.
PRE_PRODUCT_PLAY
).
append
(
productName
).
toString
();
log
.
info
(
"进入作品语句:{}"
,
enterProductWord
);
log
.
info
(
"进入作品语句:{}"
,
enterProductWord
);
QiWuResponse
data
=
null
;
QiWuResponse
data
=
null
;
try
{
try
{
...
@@ -233,58 +270,352 @@ public class DplBotService extends BaseBot {
...
@@ -233,58 +270,352 @@ public class DplBotService extends BaseBot {
return
buildErrorResponse
(
Constants
.
ErrorMsg
.
SORRY_UNCATCH
);
return
buildErrorResponse
(
Constants
.
ErrorMsg
.
SORRY_UNCATCH
);
}
}
String
text
=
data
.
getText
();
String
text
=
data
.
getText
();
List
<
Item
>
items
=
PLAY_DOCUMENT
.
getMainTemplate
().
getItems
().
get
(
0
).
getItems
().
get
(
1
).
getItems
();
text
=
text
.
substring
(
text
.
indexOf
(
"】"
)+
1
);
//items.get(2).setSrc(data.getAudio());
PLAY_DOCUMENT
.
getMainTemplate
().
getItems
().
get
(
1
).
setHeaderTitle
(
productName
);
PLAY_DOCUMENT
.
getMainTemplate
().
getItems
().
get
(
0
).
getItems
().
get
(
2
).
setSrc
(
data
.
getAudio
());
List
<
Item
>
container
=
PLAY_DOCUMENT
.
getMainTemplate
().
getItems
().
get
(
2
).
getItems
();
items
.
get
(
1
).
getItems
().
get
(
0
).
setText
(
text
.
substring
(
text
.
indexOf
(
"】"
)+
1
));
container
.
get
(
1
).
setSrc
(
data
.
getAudio
());
ExecuteCommands
executeCommands
=
new
ExecuteCommands
();
container
.
get
(
0
).
getItems
().
get
(
0
).
getItems
().
get
(
0
).
setText
(
text
);
UpdateComponentCommand
update
=
new
UpdateComponentCommand
();
update
.
setDocument
(
PLAY_DOCUMENT
);
RenderDocument
render
=
new
RenderDocument
(
PLAY_DOCUMENT
);
update
.
setComponentId
(
"whole"
);
this
.
addDirective
(
render
);
executeCommands
.
addCommand
(
update
);
}
else
if
(
FLOWE
.
equals
(
componentPrefix
))
{
SendEventCommand
sendEventCommand
=
new
SendEventCommand
();
if
(
FLOWER_LOAD
.
equals
(
componentId
))
{
sendEventCommand
.
setComponentId
(
"audio"
);
return
load
();
executeCommands
.
addCommand
(
sendEventCommand
);
}
else
{
this
.
addDirective
(
executeCommands
);
Buy
buy
=
new
Buy
(
FLOWER_PRODUCT_ID
);
long
endTime
=
System
.
currentTimeMillis
()+(
long
)
Double
.
parseDouble
(
data
.
getLength
())*
1000
;
String
token
=
new
String
(
Base64
.
getEncoder
().
encode
(
componentId
.
substring
(
5
).
getBytes
()),
StandardCharsets
.
UTF_8
);
this
.
setSessionAttribute
(
"length"
,
Long
.
toString
(
endTime
));
buy
.
setToken
(
token
);
addDirective
(
buy
);
OutputSpeech
outputSpeech
=
new
OutputSpeech
(
OutputSpeech
.
SpeechType
.
PlainText
,
REWARD_FLOWER
);
return
new
Response
(
outputSpeech
);
}
}
else
if
(
"loadingPage"
.
equals
(
componentId
))
{
RenderDocument
renderDocument
=
new
RenderDocument
(
LOAD_DOCUMENT
);
this
.
addDirective
(
new
PushStack
());
this
.
addDirective
(
renderDocument
);
return
new
Response
();
return
new
Response
();
}
else
if
(
PRE_COLLE
.
equals
(
componentPrefix
))
{
boolean
isUnCollect
=
"Un"
.
equals
(
componentId
.
substring
(
5
,
7
));
String
botId
=
componentId
.
substring
(
7
);
if
(
isUnCollect
)
{
//取消收藏
try
{
String
userId
=
getUsUserId
();
if
(
userId
==
null
)
throw
new
IllegalStateException
(
"通过accessToken获取用户id失败"
);
new
UnCollectThread
(
botId
,
userId
).
start
();
// QiWuResponse response = RequestTerminal.requestTerminate(CHAT_COLLECT, userId);
// log.info("chat 取消收藏 的返回{}", response);
}
catch
(
Exception
e
)
{
log
.
info
(
"取消收藏失败:{}"
,
e
.
toString
());
OutputSpeech
outputSpeech
=
new
OutputSpeech
(
OutputSpeech
.
SpeechType
.
PlainText
,
FAIL_COLLECT
);
return
new
Response
(
outputSpeech
);
}
changeIconIdTextAfterCollect
(
false
,
botId
);
}
else
{
//收藏
try
{
String
userId
=
getUsUserId
();
if
(
userId
==
null
)
throw
new
IllegalStateException
(
"通过accessToken获取用户id失败"
);
new
CollectThread
(
botId
,
userId
).
start
();
// QiWuResponse response = RequestTerminal.requestTerminate(CHAT_COLLECT, userId);
// log.info("chat 我要收藏 的返回{}", response);
}
catch
(
Exception
e
)
{
log
.
info
(
"收藏失败:{}"
,
e
.
toString
());
OutputSpeech
outputSpeech
=
new
OutputSpeech
(
OutputSpeech
.
SpeechType
.
PlainText
,
FAIL_COLLECT
);
return
new
Response
(
outputSpeech
);
}
changeIconIdTextAfterCollect
(
true
,
botId
);
}
}
else
if
(
PRE_CATEGORY
.
equals
(
componentPrefix
))
{
String
category
=
componentId
.
substring
(
5
);
displayCategoryProd
(
category
);
CATEGORY_PROD_HEAD
.
setHeaderTitle
(
category
);
RenderDocument
render
=
new
RenderDocument
(
CATEGORY_PROD
);
this
.
addDirective
(
render
);
this
.
addDirective
(
new
PushStack
());
// ExecuteCommands execute = new ExecuteCommands();
// UpdateComponentCommand update = new UpdateComponentCommand();
// update.setComponentId("whole");
// update.setDocument(CATEGORY_PROD);
// execute.addCommand(update);
// this.addDirective(execute);
}
}
// else if ("load".equals(componentId)) {
// log.info("初始加载触发");
// try {
// String str = getJsonFromName("static/json/home.json");
// MyDocument document = JSON.parseObject(str, MyDocument.class);
// Item list = document.getMainTemplate().getItems().get(2).getItems().get(0);
// list.setData(buildDataList());
// RenderDocument render = new RenderDocument();
// render.setDocument(document);
// this.addDirective(render);
// Thread.sleep(3000);
// } catch (InterruptedException e) {
// log.error("等待被中断");
// } catch (IOException e) {
// log.error("初始Loading渲染出错:{}", e.toString());
// }
// OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, Constants.WelcomeWord.GUIDE_WORD);
// return new Response(outputSpeech);
// }
return
new
Response
();
return
new
Response
();
}
}
private
static
List
<
Data
>
buildDataList
()
{
@Override
protected
Response
onBuyEvent
(
BuyEvent
buyEvent
)
{
com
.
baidu
.
dueros
.
data
.
request
.
buy
.
event
.
Payload
payload
=
buyEvent
.
getPayload
();
String
result
=
payload
.
getPurchaseResult
().
getPurchaseResult
();
log
.
info
(
"此次支付结果:"
+
result
+
";msg: "
+
payload
.
getMessage
());
if
(
result
.
equals
(
"SUCCESS"
))
{
log
.
info
(
"支付成功"
);
new
SendFlowerThread
(
buyEvent
).
start
();
return
buildErrorResponse
(
"感谢大人赏的花"
);
}
return
buildErrorResponse
(
"哎呀,没有支付成功"
);
}
class
SendFlowerThread
extends
Thread
{
BuyEvent
buyEvent
;
SendFlowerThread
(
BuyEvent
buyEvent
)
{
super
(
"SendFlower"
);
this
.
buyEvent
=
buyEvent
;
}
@Override
public
void
run
()
{
String
baiduOrderReferenceId
=
buyEvent
.
getPayload
().
getBaiduOrderReferenceId
();
String
timeStamp
=
buyEvent
.
getTimestamp
();
String
botId
=
new
String
(
Base64
.
getDecoder
().
decode
(
buyEvent
.
getToken
()),
StandardCharsets
.
UTF_8
);
String
userId
=
getSessionAttribute
(
"userId"
);
Integer
unitePrice
=
Integer
.
parseInt
(
Config
.
getProperty
(
"unitPrice"
,
"1"
));
try
{
if
(
userId
==
null
)
userId
=
getUserIdByToken
(
getAccessToken
());
if
(
userId
==
null
)
throw
new
Exception
(
"未获取到用户id"
);
AppFlowerTBTintRepository
tinyRepository
=
BaseHolder
.
getBean
(
"appFlowerTBTintRepository"
);
AppFlowerTBTiny
tiny
=
tinyRepository
.
getByUserIdAndBotIdAndUnitPrice
(
Integer
.
parseInt
(
userId
),
botId
,
unitePrice
/
100.0
);
if
(
tiny
==
null
)
{
AppFlowerTBRepository
flowerRepository
=
BaseHolder
.
getBean
(
"appFlowerTBRepository"
);
AppFlowerTB
flowerTB
=
new
AppFlowerTB
();
flowerTB
.
setNumber
(
1
);
flowerTB
.
setModule
(
0
);
flowerTB
.
setBotName
(
botId
);
flowerTB
.
setUserId
(
Integer
.
parseInt
(
userId
));
flowerTB
.
setStatus
(
1
);
flowerTB
.
setUnitPrice
(
unitePrice
/
100.0
);
flowerTB
.
setCreateTime
(
new
Date
(
Integer
.
parseInt
(
timeStamp
)*
1000
));
flowerTB
.
setOrderId
(
0
);
AppFlowerTB
response
=
flowerRepository
.
save
(
flowerTB
);
if
(
response
==
null
)
throw
new
Exception
(
"向app_flower_tb中插入数据失败"
);
}
else
{
AppFlowerTBRepository
flowerRepository
=
BaseHolder
.
getBean
(
"appFlowerTBRepository"
);
AppFlowerTB
flowerTB
=
new
AppFlowerTB
();
flowerTB
.
setId
(
tiny
.
getId
());
int
preNumber
=
tiny
.
getNumber
();
flowerTB
.
setNumber
(
preNumber
+
1
);
AppFlowerTB
response
=
flowerRepository
.
save
(
flowerTB
);
if
(
response
==
null
||
response
.
getNumber
()
==
preNumber
)
throw
new
Exception
(
"向app_flower_tb中更新数据失败"
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"用户成功支付,game_flower_tb操作出现错误:{}"
,
e
.
toString
());
}
try
{
if
(
userId
==
null
)
userId
=
getUserIdByToken
(
getAccessToken
());
if
(
userId
==
null
)
throw
new
Exception
(
"未获取到用户id"
);
XiaoDuOrderTbRepository
repository
=
BaseHolder
.
getBean
(
"xiaoDuOrderTbRepository"
);
XiaoDuOrderTB
orderTB
=
new
XiaoDuOrderTB
();
orderTB
.
setAppUserId
(
userId
);
orderTB
.
setBotId
(
botId
);
orderTB
.
setNumber
(
1
);
orderTB
.
setIsBuy
(
true
);
orderTB
.
setOrderId
(
baiduOrderReferenceId
);
orderTB
.
setTimestamp
(
timeStamp
);
orderTB
.
setUnitPrice
(
unitePrice
);
orderTB
.
setXiaoduUserId
(
getUserId
());
XiaoDuOrderTB
response
=
repository
.
save
(
orderTB
);
if
(
response
==
null
)
throw
new
Exception
(
"向interface_db中的xiaodu_order_tb插入数据失败"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"用户成功支付,xiaodu_order_tb操作出现错误:{}"
,
e
.
toString
());
}
}
}
private
void
changeIconIdTextAfterCollect
(
boolean
collect
,
String
botId
)
{
ExecuteCommands
executeCommands
=
new
ExecuteCommands
();
SetStateCommand
setText
=
new
SetStateCommand
();
SetStateCommand
setImg
=
new
SetStateCommand
();
SetStateCommand
setId
=
new
SetStateCommand
();
SetStateCommand
setOnclick
=
new
SetStateCommand
();
String
srcValue
;
String
textValue
;
String
idValue
;
String
previousClickId
;
String
unCollectId
=
new
StringBuilder
(
UN_COLLEC_ID
).
append
(
botId
).
toString
();
String
collectId
=
new
StringBuilder
(
COLLEC_ID
).
append
(
botId
).
toString
();
if
(
collect
)
{
srcValue
=
COLLECTED_IMG_URL
;
textValue
=
COLLECED
;
idValue
=
collectId
;
previousClickId
=
unCollectId
;
}
else
{
srcValue
=
UN_COLLECTED_IMG_URL
;
textValue
=
UN_COLLEC
;
idValue
=
unCollectId
;
previousClickId
=
collectId
;
}
setImg
.
setComponentId
(
COLLECT_IMAGE_ID
);
setImg
.
setState
(
"src"
);
setImg
.
setValue
(
srcValue
);
setText
.
setComponentId
(
COLLECT_TEXT_ID
);
setText
.
setState
(
"text"
);
setText
.
setValue
(
textValue
);
setId
.
setComponentId
(
previousClickId
);
setId
.
setState
(
"componentId"
);
setId
.
setValue
(
idValue
);
// setOnclick.setComponentId(previousClickId);
// setOnclick.setState("onClick");
// setOnclick.setValue(String.format(CLICK_PATTERN, idValue));
executeCommands
.
addCommand
(
setId
);
executeCommands
.
addCommand
(
setImg
);
executeCommands
.
addCommand
(
setText
);
executeCommands
.
addCommand
(
setOnclick
);
this
.
addDirective
(
executeCommands
);
}
private
String
getUsUserId
()
throws
IOException
{
String
usId
=
DU_ID_2_US_ID
.
get
(
getCustomerId
());
if
(
usId
==
null
)
usId
=
getUserIdByToken
(
getAccessToken
());
return
usId
;
}
private
String
getUserIdByToken
(
String
accessToken
)
throws
IOException
{
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"App-Channel-Id"
,
"JIAOYOUTIANXIA"
);
headers
.
put
(
"Authorization"
,
new
StringBuilder
(
BEARER
).
append
(
accessToken
).
toString
());
String
str
=
OkHttp3Utils
.
doGet
(
USER_ID_BY_TOKEN
,
new
HashMap
<>(),
headers
);
log
.
info
(
"getUserIdByToken:{}"
,
str
);
UserInfoByTokenResult
info
=
JSON
.
parseObject
(
str
,
UserInfoByTokenResult
.
class
);
if
(
info
.
getRetcode
()
==
0
)
{
Payload
payload
=
JSON
.
parseObject
(
info
.
getPayload
(),
Payload
.
class
);
String
userId
=
payload
.
getInfoId
();
log
.
info
(
"通过Token获取的用户在app端的id:{}"
,
userId
);
DU_ID_2_US_ID
.
put
(
getCustomerId
(),
userId
);
return
userId
;
}
else
{
log
.
error
(
"通过accessToken获取用户id出错:{}"
,
str
);
return
null
;
}
}
private
Response
load
()
{
Card
card
=
new
LinkAccountCard
();
Response
response
=
buildErrorResponse
(
LOAD_INTRO
);
response
.
setCard
(
card
);
return
response
;
}
private
static
List
<
Data
>
buildDataList
(
List
<
GameProjectTb
>
list
)
{
ArrayList
<
Data
>
dataList
=
new
ArrayList
<>();
ArrayList
<
Data
>
dataList
=
new
ArrayList
<>();
for
(
GameProjectTb
projectInfo
:
ScheduleService
.
RANKING_LIST
)
{
for
(
GameProjectTb
projectInfo
:
list
)
{
String
imgUrl
=
projectInfo
.
getBannerImgUrl
();
String
productName
=
correctName
(
projectInfo
.
getName
());
String
productName
=
correctName
(
projectInfo
.
getName
());
String
imageId
=
new
StringBuilder
(
Constants
.
PRE_PRODUCT_IMG
).
append
(
projectInfo
.
getName
()).
toString
();
String
imageId
=
new
StringBuilder
(
Constants
.
PRE_PRODUCT_IMG
).
append
(
projectInfo
.
getName
()).
toString
();
String
src
=
new
StringBuilder
(
Constants
.
IMG_PREFIX
).
append
(
imgUrl
).
toString
();
String
src
=
new
StringBuilder
(
Constants
.
IMG_PREFIX
).
append
(
projectInfo
.
getBannerImgUrl
()
).
toString
();
Data
data
=
new
Data
(
src
,
productName
,
imageId
);
Data
data
=
new
Data
(
src
,
productName
,
imageId
);
dataList
.
add
(
data
);
dataList
.
add
(
data
);
}
}
return
dataList
;
return
dataList
;
}
}
private
static
List
<
Data
>
buildCategoryDataList
()
{
ArrayList
<
Data
>
dataList
=
new
ArrayList
<>();
for
(
String
cateName
:
CATEGORY
)
{
String
imageId
=
new
StringBuilder
(
PRE_CATEGORY
).
append
(
cateName
).
toString
();
Data
data
=
new
Data
(
GU_FENG
,
cateName
,
imageId
);
dataList
.
add
(
data
);
}
return
dataList
;
}
private
void
displayCategoryProd
(
String
categoryName
)
{
ArrayList
<
Data
>
dataList
=
new
ArrayList
<>();
for
(
GameProjectTb
projectInfo
:
CATEGORY_PRODUCT_LIST
.
get
(
categoryName
))
{
String
productName
=
correctName
(
projectInfo
.
getName
());
String
imageId
=
new
StringBuilder
(
Constants
.
PRE_PRODUCT_IMG
).
append
(
projectInfo
.
getName
()).
toString
();
String
src
=
new
StringBuilder
(
Constants
.
IMG_PREFIX
).
append
(
projectInfo
.
getBannerImgUrl
()).
toString
();
Data
data
=
new
Data
(
src
,
productName
,
imageId
);
dataList
.
add
(
data
);
}
CATEGORY_PROD_LIST
.
setData
(
dataList
);
}
private
Integer
getUserSendFlowerNum
(
String
productId
)
{
AppFlowerTBTintRepository
repository
=
BaseHolder
.
getBean
(
"appFlowerTBTintRepository"
);
String
userId
=
getSessionAttribute
(
"userId"
);
int
count
=
0
;
try
{
if
(
userId
==
null
)
userId
=
getUserIdByToken
(
getAccessToken
());
if
(
userId
==
null
)
throw
new
Exception
(
"未获取到用户id"
);
List
<
AppFlowerTBTiny
>
tinies
=
repository
.
getByUserIdAndBotId
(
Integer
.
parseInt
(
userId
),
productId
);
if
(
tinies
!=
null
)
{
for
(
AppFlowerTBTiny
tiny:
tinies
)
{
count
+=
tiny
.
getNumber
();
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"获取用户送花数目失败:{}"
,
e
.
toString
());
}
return
count
;
}
private
Integer
getUserSendFlowerNum
(
String
productId
,
String
accessToken
)
{
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"module"
,
"works"
);
params
.
put
(
"aipioneerUsername"
,
productId
);
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded;charset=utf-8"
);
headers
.
put
(
"Authorization"
,
new
StringBuilder
(
BEARER
).
append
(
accessToken
).
toString
());
CodeMsgData
response
;
try
{
String
flowerRes
=
OkHttp3Utils
.
doGet
(
FLOWER_INTERFACE
,
params
,
headers
);
response
=
JSON
.
parseObject
(
flowerRes
,
CodeMsgData
.
class
);
}
catch
(
IOException
e
)
{
log
.
error
(
"请求用户送花数出错"
);
return
null
;
}
log
.
info
(
"调用获取用户送花数接口结果:{}"
,
response
);
if
(
response
==
null
||
response
.
getCode
()
!=
1
)
return
null
;
return
response
.
getData
().
getCount
();
}
private
boolean
didUserCollecThisProduct
(
String
productId
)
{
AppFavoriteTBRepository
repository
=
BaseHolder
.
getBean
(
"appFavoriteTBRepository"
);
String
userId
=
getSessionAttribute
(
"userId"
);
if
(
userId
==
null
)
{
try
{
userId
=
getUserIdByToken
(
getAccessToken
());
}
catch
(
IOException
e
)
{
return
false
;
}
if
(
userId
==
null
)
return
false
;
}
AppFavoriteTB
favorite
=
new
AppFavoriteTB
();
favorite
.
setUserId
(
Integer
.
parseInt
(
userId
));
favorite
.
setBotId
(
productId
);
Example
<
AppFavoriteTB
>
example
=
Example
.
of
(
favorite
);
return
repository
.
exists
(
example
);
}
private
List
<
CollecProduct
>
getUserProductList
(
String
accessToken
)
{
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"module"
,
"works"
);
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded;charset=utf-8"
);
headers
.
put
(
"Authorization"
,
new
StringBuilder
(
BEARER
).
append
(
accessToken
).
toString
());
UserCollecResult
result
;
try
{
String
resStr
=
OkHttp3Utils
.
doGet
(
Constants
.
XIAOWU_API
.
USER_CLOOEC_LIST
,
params
,
headers
);
result
=
JSON
.
parseObject
(
resStr
,
UserCollecResult
.
class
);
}
catch
(
Exception
e
)
{
log
.
error
(
"调用获取用户收藏作品列表接口出错:{}"
,
e
.
toString
());
return
null
;
}
if
(
result
.
getCode
()
==
1
)
return
result
.
getData
();
else
{
log
.
error
(
"获取用户收藏作品列表出错,错误码:{}, 错误信息:{}"
,
result
.
getCode
(),
result
.
getMsg
());
return
null
;
}
}
private
static
String
correctName
(
String
name
)
{
private
static
String
correctName
(
String
name
)
{
int
brace
=
name
.
indexOf
(
"{"
);
int
brace
=
name
.
indexOf
(
"{"
);
if
(
brace
!=
-
1
)
name
=
name
.
substring
(
0
,
brace
);
if
(
brace
!=
-
1
)
name
=
name
.
substring
(
0
,
brace
);
...
@@ -292,6 +623,19 @@ public class DplBotService extends BaseBot {
...
@@ -292,6 +623,19 @@ public class DplBotService extends BaseBot {
}
}
@Override
@Override
protected
Response
onLinkAccountSucceededEvent
(
LinkAccountSucceededEvent
linkAccountSucceededEvent
)
{
log
.
info
(
"登录成功返回信息:{}"
,
linkAccountSucceededEvent
);
try
{
String
userId
=
getUserIdByToken
(
getAccessToken
());
setSessionAttribute
(
"userId"
,
userId
);
return
buildErrorResponse
(
"您已登录成功"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"获取用户id失败:{}"
,
e
.
toString
());
return
buildErrorResponse
(
"好像出了什么问题,请重新登录"
);
}
}
@Override
protected
Response
onDefaultEvent
()
{
protected
Response
onDefaultEvent
()
{
log
.
info
(
"未拦截的事件类型:"
+
getEventType
(
this
.
getStrRequest
()));
log
.
info
(
"未拦截的事件类型:"
+
getEventType
(
this
.
getStrRequest
()));
this
.
waitAnswer
();
this
.
waitAnswer
();
...
@@ -332,9 +676,61 @@ public class DplBotService extends BaseBot {
...
@@ -332,9 +676,61 @@ public class DplBotService extends BaseBot {
return
builder
.
toString
();
return
builder
.
toString
();
}
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
new
BigDecimal
(
"14.836"
).
setScale
(
0
,
RoundingMode
.
DOWN
).
toString
());
class
CollectThread
extends
Thread
{
System
.
out
.
println
(
Math
.
pow
(
10
,
2
));
String
botId
;
System
.
out
.
println
(
correctName
(
"清新传{/zhuan4/}"
));
String
userId
;
CollectThread
(
String
botId
,
String
userId
)
{
super
(
"CollectThread"
);
this
.
botId
=
botId
;
this
.
userId
=
userId
;
}
@Override
public
void
run
()
{
int
user_id
=
Integer
.
parseInt
(
userId
);
AppFavoriteTB
entity
=
new
AppFavoriteTB
();
entity
.
setBotId
(
botId
);
entity
.
setUserId
(
user_id
);
Example
<
AppFavoriteTB
>
example
=
Example
.
of
(
entity
);
AppFavoriteTBRepository
repository
=
BaseHolder
.
getBean
(
"appFavoriteTBRepository"
);
boolean
exist
=
repository
.
exists
(
example
);
log
.
info
(
"2333:{}"
,
exist
);
if
(!
exist
)
{
entity
.
setModule
(
0
);
repository
.
save
(
entity
);
}
}
}
class
UnCollectThread
extends
Thread
{
String
botId
;
String
userId
;
UnCollectThread
(
String
botId
,
String
userId
)
{
super
(
"UnCollectThread"
);
this
.
botId
=
botId
;
this
.
userId
=
userId
;
}
@Override
public
void
run
()
{
// AppFavoriteTB entity = new AppFavoriteTB();
// entity.setBotId(botId);
// entity.setUserId(Integer.parseInt(userId));
AppFavoriteTBRepository
repository
=
BaseHolder
.
getBean
(
"appFavoriteTBRepository"
);
repository
.
deleteByBotIdAndUserId
(
botId
,
Integer
.
parseInt
(
userId
));
//repository.deleteFavorite(userId, userid);
}
}
public
static
void
main
(
String
[]
args
)
throws
IOException
{
// System.out.println(new BigDecimal("14.836").setScale(0, RoundingMode.DOWN).toString());
// System.out.println(Math.pow(10,2));
// System.out.println(correctName("清新传{/zhuan4/}"));
//getUserIdByToken("a6b78cc5-55f6-456a-a6f1-6254d677d952");
}
}
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java
0 → 100644
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
service
;
import
ai.qiwu.com.xiaoduhome.common.Constants.XIAOWU_API
;
import
ai.qiwu.com.xiaoduhome.common.OkHttp3Utils
;
import
ai.qiwu.com.xiaoduhome.common.TokenHolder
;
import
ai.qiwu.com.xiaoduhome.common.Utils
;
import
ai.qiwu.com.xiaoduhome.entity.primary.AppUserTB
;
import
ai.qiwu.com.xiaoduhome.pojo.CaptchaSmsResponse
;
import
ai.qiwu.com.xiaoduhome.pojo.TokenResponse
;
import
ai.qiwu.com.xiaoduhome.repository.primary.AppUserTBRepository
;
import
com.alibaba.fastjson.JSON
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.io.IOException
;
import
java.util.HashMap
;
import
java.util.concurrent.ConcurrentHashMap
;
/**
* 处理验证码,令牌的请求
* @author 苗权威
* @dateTime 19-7-17 下午5:53
*/
@Service
@Slf4j
public
class
LoadBySMS
{
// private static final ConcurrentHashMap<String, TokenHolder> USER_TOKEN = new ConcurrentHashMap<>();
private
final
AppUserTBRepository
appUserTBRepository
;
/**
* 手机号到TOKEN信息之间的映射
*/
private
static
final
ConcurrentHashMap
<
String
,
TokenHolder
>
CODE_TOKEN
=
new
ConcurrentHashMap
<>();
@Autowired
public
LoadBySMS
(
AppUserTBRepository
appUserTBRepository
)
{
this
.
appUserTBRepository
=
appUserTBRepository
;
}
// /**
// * 登录成功后每次请求都会携带AccessToken,这里存储AccessToken到手机号的映射,用于之后令牌过期取RefreshToken使用
// */
// private static final ConcurrentHashMap<String, String> ACCESSTOKEN_PHONENUM = new ConcurrentHashMap<>();
/**
* 通过电话号码获取短信验证码
* @param phoneNumber
* @return 是否成功获取
* @throws IOException
*/
public
Boolean
requireCaptcha
(
String
phoneNumber
)
throws
IOException
{
// 校验手机号
phoneNumber
=
phoneNumber
.
trim
();
if
(!
Utils
.
verifyPhoneNumber
(
phoneNumber
))
{
return
false
;
}
String
authorization
=
Utils
.
captchaAuthorization
(
phoneNumber
);
int
retCode
=
getCaptchaRequest
(
authorization
);
if
(
retCode
==
0
)
{
new
Thread
(
new
InsertUserInfoToAppUserTB
(
phoneNumber
)).
start
();
}
return
retCode
==
0
;
}
class
InsertUserInfoToAppUserTB
implements
Runnable
{
String
phone
;
InsertUserInfoToAppUserTB
(
String
phone
)
{
this
.
phone
=
phone
;
}
@Override
public
void
run
()
{
AppUserTB
userInfo
=
appUserTBRepository
.
getByPhone
(
phone
);
if
(
userInfo
==
null
)
{
appUserTBRepository
.
insertUser
(
phone
);
}
}
}
// 该方法用于TextCard触发登录以绕过小度的第三方登录模式
// public Boolean requireToken(String phoneNumber, String captcha, String userId) throws IOException {
// // 获取token
// Request request = new Request.Builder().url(XIAOWU_API.SDK_TOKEN)
// .addHeader("App-Channel-Id", "JIAOYOUTIANXIA")
// .addHeader("Authorization", tokenAuthorization(phoneNumber, captcha))
// .addHeader("Content-Type","application/json; charset=utf-8")
// .get().build();
// try (Response response = client.newCall(request).execute()){
// log.info("获取Token返回");
// TokenResponse tokenResponse = JSON.parseObject(response.body().string(), TokenResponse.class);
// log.info("获取Token返回信息:{}", tokenResponse);
// if (tokenResponse.getRetcode() == 0) {
// updateUserToken(userId, tokenResponse);
// return true;
// }else {
// return false;
// }
// }
// }
/**
* Oauth2Controller类调用的方法,根据电话号码与短信验证码向郊游天下请求令牌
* 我们将令牌信息与电话号码间构成map,用于之后Dueros请求Token时查找
* @param phoneNumber
* @param captcha 验证码
* @return 是否成功从平台获取到令牌信息
* @throws IOException
*/
public
boolean
requireCodeToken
(
String
phoneNumber
,
String
captcha
)
throws
IOException
{
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"App-Channel-Id"
,
"JIAOYOUTIANXIA"
);
headers
.
put
(
"Content-Type"
,
"application/json;charset=utf-8"
);
headers
.
put
(
"Authorization"
,
Utils
.
tokenAuthorization
(
phoneNumber
,
captcha
));
String
tokenStr
=
OkHttp3Utils
.
doGet
(
XIAOWU_API
.
SDK_TOKEN
,
new
HashMap
<>(),
headers
);
// log.info("获取Token返回");
TokenResponse
tokenResponse
=
JSON
.
parseObject
(
tokenStr
,
TokenResponse
.
class
);
log
.
info
(
"获取Token返回信息:{}"
,
tokenResponse
);
if
(
tokenResponse
.
getRetcode
()
==
0
)
{
updateCodeToken
(
phoneNumber
,
tokenResponse
);
return
true
;
}
else
{
return
false
;
}
}
/**
* 发起验证码获取请求
* @param authorization
* @throws IOException
*/
private
Integer
getCaptchaRequest
(
String
authorization
)
throws
IOException
{
HashMap
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"App-Channel-Id"
,
"JIAOYOUTIANXIA"
);
headers
.
put
(
"Content-Type"
,
"application/json;charset=utf-8"
);
headers
.
put
(
"Authorization"
,
authorization
);
String
smsStr
=
OkHttp3Utils
.
doGet
(
XIAOWU_API
.
CAPTCHA_SMS
,
new
HashMap
<>(),
headers
);
// log.info("发送验证码成功");
CaptchaSmsResponse
captchaResponse
=
JSON
.
parseObject
(
smsStr
,
CaptchaSmsResponse
.
class
);
// log.info("获取验证码返回信息:{}", captchaResponse);
return
captchaResponse
.
getRetcode
();
}
//该方法是更新USER_TOKEN的
// private void updateUserToken(String userId, TokenResponse tokenResponse) {
// TokenHolder tokenHolder = USER_TOKEN.get(userId);
// if (tokenHolder == null) {
// tokenHolder = new TokenHolder();
// }
// tokenHolder.setUserId(userId);
// tokenHolder.setAccessToken(tokenResponse.getAccessToken());
// tokenHolder.setRefreshToken(tokenResponse.getRefreshToken());
// }
/**
* 更新token缓存信息
* @param phoneNumber
* @param tokenResponse
*/
private
void
updateCodeToken
(
String
phoneNumber
,
TokenResponse
tokenResponse
)
{
TokenHolder
tokenHolder
=
CODE_TOKEN
.
get
(
phoneNumber
);
if
(
tokenHolder
==
null
)
{
tokenHolder
=
new
TokenHolder
();
CODE_TOKEN
.
put
(
phoneNumber
,
tokenHolder
);
}
tokenHolder
.
setExpire
(
tokenResponse
.
getExpire
());
tokenHolder
.
setAccessToken
(
tokenResponse
.
getAccessToken
());
tokenHolder
.
setRefreshToken
(
tokenResponse
.
getRefreshToken
());
}
// static ConcurrentHashMap<String, TokenHolder> getUserToken() {
// return USER_TOKEN;
// }
/**
* 获取code-token的缓存map
* @return
*/
public
static
ConcurrentHashMap
<
String
,
TokenHolder
>
getCodeToken
()
{
return
CODE_TOKEN
;
}
// /**
// * 获取accesstoken-phonenumber的缓存map
// * @return
// */
// public static ConcurrentHashMap<String, String> getAccesstokenPhonenum() {
// return ACCESSTOKEN_PHONENUM;
// }
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java
View file @
fda1e77c
...
@@ -29,6 +29,7 @@ class RequestTerminal {
...
@@ -29,6 +29,7 @@ class RequestTerminal {
headers
.
put
(
"Content-Type"
,
"application/json;charset=utf-8"
);
headers
.
put
(
"Content-Type"
,
"application/json;charset=utf-8"
);
log
.
info
(
"向小悟发送的请求信息:{}"
,
requestJsonStr
);
log
.
info
(
"向小悟发送的请求信息:{}"
,
requestJsonStr
);
String
resStr
=
OkHttp3Utils
.
doPostJsonStr
(
Constants
.
QI_WU_INTERFACE
,
headers
,
requestJsonStr
);
String
resStr
=
OkHttp3Utils
.
doPostJsonStr
(
Constants
.
QI_WU_INTERFACE
,
headers
,
requestJsonStr
);
log
.
info
(
"返回信息:{}"
,
resStr
);
return
JSON
.
parseObject
(
resStr
,
QiWuResponse
.
class
);
return
JSON
.
parseObject
(
resStr
,
QiWuResponse
.
class
);
}
}
}
}
xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java
View file @
fda1e77c
package
ai
.
qiwu
.
com
.
xiaoduhome
.
service
;
package
ai
.
qiwu
.
com
.
xiaoduhome
.
service
;
import
ai.qiwu.com.xiaoduhome.entity.GameProjectTb
;
import
ai.qiwu.com.xiaoduhome.entity.
primary.
GameProjectTb
;
import
ai.qiwu.com.xiaoduhome.entity.OnProductDetail
;
import
ai.qiwu.com.xiaoduhome.entity.
primary.
OnProductDetail
;
import
ai.qiwu.com.xiaoduhome.repository.AllOnProductInfoRepository
;
import
ai.qiwu.com.xiaoduhome.repository.
primary.
AllOnProductInfoRepository
;
import
ai.qiwu.com.xiaoduhome.repository.GameProjectTbRepository
;
import
ai.qiwu.com.xiaoduhome.repository.
primary.
GameProjectTbRepository
;
import
ai.qiwu.com.xiaoduhome.repository.ProjectLabelRepository
;
import
ai.qiwu.com.xiaoduhome.repository.
primary.
ProjectLabelRepository
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -28,8 +28,8 @@ public class ScheduleService implements InitializingBean {
...
@@ -28,8 +28,8 @@ public class ScheduleService implements InitializingBean {
static
volatile
List
<
OnProductDetail
>
ALL_ON_PRODUCT
=
new
ArrayList
<>();
static
volatile
List
<
OnProductDetail
>
ALL_ON_PRODUCT
=
new
ArrayList
<>();
static
final
HashMap
<
String
,
OnProductDetail
>
PRODUCT_NAME_DETAIL
=
new
HashMap
<>();
static
final
HashMap
<
String
,
OnProductDetail
>
PRODUCT_NAME_DETAIL
=
new
HashMap
<>();
//static final Map<String, List<String>> PRODUCT_LABELS = new HashMap<>();
//static final Map<String, List<String>> PRODUCT_LABELS = new HashMap<>();
private
static
final
String
[]
CATEGORY
=
{
"古风"
,
"科幻"
,
"占星"
,
"恋爱"
,
"灾难"
,
"架空"
,
"儿童"
,
"经营"
,
"冒险"
,
"武侠"
};
static
final
String
[]
CATEGORY
=
{
"古风"
,
"科幻"
,
"占星"
,
"恋爱"
,
"灾难"
,
"架空"
,
"儿童"
,
"经营"
,
"冒险"
,
"武侠"
};
private
static
final
ConcurrentHashMap
<
String
,
List
<
GameProjectTb
>>
CATEGORY_PRODUCT_LIST
=
new
ConcurrentHashMap
<>();
static
final
ConcurrentHashMap
<
String
,
List
<
GameProjectTb
>>
CATEGORY_PRODUCT_LIST
=
new
ConcurrentHashMap
<>();
private
final
GameProjectTbRepository
gameProjectTbRepository
;
private
final
GameProjectTbRepository
gameProjectTbRepository
;
...
...
xiaoduhome/src/main/resources/application.yml
View file @
fda1e77c
...
@@ -3,10 +3,17 @@ server:
...
@@ -3,10 +3,17 @@ server:
spring
:
spring
:
datasource
:
datasource
:
username
:
root
primary
:
password
:
3g9^pWQs#ft7
jdbc-url
:
jdbc:mysql://localhost:3306/game_editor_db?useUnicode=true&characterEncoding=utf-8
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
url
:
jdbc:mysql://localhost:3306/game_editor_db?characterEncoding=utf-8
password
:
3g9^pWQs#ft7
driver-class-name
:
com.mysql.cj.jdbc.Driver
secondary
:
jdbc-url
:
jdbc:mysql://localhost:3306/interface_db?useUnicode=true&characterEncoding=utf-8
username
:
root
password
:
3g9^pWQs#ft7
driver-class-name
:
com.mysql.cj.jdbc.Driver
# username: root
# username: root
# password: mysql
# password: mysql
# driver-class-name: com.mysql.cj.jdbc.Driver
# driver-class-name: com.mysql.cj.jdbc.Driver
...
...
xiaoduhome/src/main/resources/static/json/categoryPro.json
0 → 100644
View file @
fda1e77c
{
"type"
:
"DPL"
,
"version"
:
"1.0"
,
"mainTemplate"
:
{
"parameters"
:
[
"payload"
],
"items"
:
[
{
"type"
:
"Container"
,
"height"
:
"100%"
,
"width"
:
"100%"
,
"items"
:
[
{
"type"
:
"Image"
,
"position"
:
"absolute"
,
"top"
:
"0dp"
,
"left"
:
"0dp"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg"
,
"height"
:
"100%"
,
"width"
:
"100%"
},
{
"type"
:
"Header"
,
"headerImage"
:
"https://skillstore.cdn.bcebos.com/icon/23/fc7581b7-b505-1f44-ab52-3d9f5e567dfd.png"
,
"headerTitle"
:
"横向列表"
,
"hasBackIcon"
:
true
},
{
"type"
:
"Container"
,
"height"
:
"100%"
,
"width"
:
"100%"
,
"componentId"
:
"whole"
,
"margin-top"
:
"65dp"
,
"items"
:
[
{
"type"
:
"List"
,
"height"
:
"100%"
,
"width"
:
"100%"
,
"direction"
:
"horizontal"
,
"items"
:
[
{
"type"
:
"Container"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
,
"margin-left"
:
"40dp"
,
"items"
:
[
{
"type"
:
"Image"
,
"width"
:
"220dp"
,
"height"
:
"220dp"
,
"componentId"
:
"${data.imageId}"
,
"scale-type"
:
"fitXY"
,
"border-radius"
:
"10dp"
,
"src"
:
"${data.imageSrc}"
,
"onClick"
:
[
{
"type"
:
"SendEvent"
,
"componentId"
:
"${data.imageId}"
}
]
},
{
"type"
:
"Text"
,
"font-size"
:
"30dp"
,
"letter-spacing"
:
"3dp"
,
"margin-top"
:
"10dp"
,
"text"
:
"${data.imageName}"
}
]
}
]
}
]
}
]
},
{
"type"
:
"Container"
,
"position"
:
"absolute"
,
"width"
:
"100%"
,
"left"
:
"0"
,
"bottom"
:
"0"
,
"items"
:
[
{
"type"
:
"Footer"
,
"hints"
:
[
"打开推荐作品"
,
"下一个分类"
,
"打开排行榜"
]
}
]
}
]
}
}
\ No newline at end of file
xiaoduhome/src/main/resources/static/json/firstPage.json
0 → 100644
View file @
fda1e77c
{
"type"
:
"DPL"
,
"version"
:
"1.0"
,
"mainTemplate"
:
{
"parameters"
:
[
"payload"
],
"items"
:
[
{
"type"
:
"Image"
,
"position"
:
"absolute"
,
"componentId"
:
"loadingPage"
,
"top"
:
"0dp"
,
"left"
:
"0dp"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/Loading.png"
,
"height"
:
"100%"
,
"width"
:
"100%"
,
"onLoaded"
:
[
{
"type"
:
"SendEvent"
,
"componentId"
:
"loadingPage"
}
]
}
]
}
}
\ No newline at end of file
xiaoduhome/src/main/resources/static/json/onLunch.json
View file @
fda1e77c
...
@@ -13,6 +13,13 @@
...
@@ -13,6 +13,13 @@
"width"
:
"100%"
,
"width"
:
"100%"
,
"initialPage"
:
"0"
,
"initialPage"
:
"0"
,
"componentId"
:
"whole"
,
"componentId"
:
"whole"
,
"onLoaded"
:
[
{
"type"
:
"AutoPage"
,
"componentId"
:
"whole"
,
"durationInMillisecond"
:
3000
}
],
"items"
:
[
"items"
:
[
{
{
"type"
:
"Image"
,
"type"
:
"Image"
,
...
@@ -34,7 +41,6 @@
...
@@ -34,7 +41,6 @@
"type"
:
"Image"
,
"type"
:
"Image"
,
"position"
:
"absolute"
,
"position"
:
"absolute"
,
"left"
:
"0dp"
,
"left"
:
"0dp"
,
"opacity"
:
"0.5"
,
"top"
:
"0dp"
,
"top"
:
"0dp"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg"
,
"height"
:
"100%"
,
"height"
:
"100%"
,
...
...
xiaoduhome/src/main/resources/static/json/onLunch2.json
0 → 100644
View file @
fda1e77c
{
"type"
:
"DPL"
,
"version"
:
"1.0"
,
"mainTemplate"
:
{
"parameters"
:
[
"payload"
],
"items"
:
[
{
"type"
:
"Image"
,
"position"
:
"absolute"
,
"top"
:
"0dp"
,
"left"
:
"0dp"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg"
,
"height"
:
"100%"
,
"width"
:
"100%"
},
{
"type"
:
"Container"
,
"height"
:
"100%"
,
"width"
:
"100%"
,
"padding-right"
:
"20dp"
,
"componentId"
:
"whole"
,
"items"
:
[
{
"type"
:
"Header"
,
"headerImage"
:
"https://aliyun-hz1.chewrobot.com/xiaodu/image/5b2d0a11/lvzhou/15640330891628686.jpg"
,
"headerTitle"
:
"交游天下"
},
{
"type"
:
"ScrollView"
,
"direction"
:
"vertical"
,
"height"
:
"100%"
,
"width"
:
"100%"
,
"items"
:
[
{
"type"
:
"Container"
,
"height"
:
"250dp"
,
"width"
:
"100%"
,
"items"
:
[
{
"type"
:
"List"
,
"height"
:
"250dp"
,
"width"
:
"100%"
,
"direction"
:
"horizontal"
,
"items"
:
[
{
"type"
:
"Container"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
,
"margin-left"
:
"30dp"
,
"items"
:
[
{
"type"
:
"Image"
,
"componentId"
:
"${data.imageId}"
,
"width"
:
"160dp"
,
"height"
:
"160dp"
,
"border-radius"
:
"15dp"
,
"src"
:
"${data.imageSrc}"
,
"scale-type"
:
"fitXY"
,
"onClick"
:
[
{
"type"
:
"SendEvent"
,
"componentId"
:
"${data.imageId}"
}
]
},
{
"type"
:
"Text"
,
"font-size"
:
"24dp"
,
"letter-spacing"
:
"3dp"
,
"margin-top"
:
"10dp"
,
"text"
:
"${data.imageName}"
}
]
}
]
}
]
},
{
"type"
:
"Container"
,
"height"
:
"250dp"
,
"width"
:
"100%"
,
"items"
:
[
{
"type"
:
"List"
,
"height"
:
"100%"
,
"width"
:
"100%"
,
"direction"
:
"horizontal"
,
"items"
:
[
{
"type"
:
"Container"
,
"margin-left"
:
"30dp"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
,
"items"
:
[
{
"type"
:
"Image"
,
"componentId"
:
"${data.imageId}"
,
"width"
:
"160dp"
,
"height"
:
"160dp"
,
"border-radius"
:
"15dp"
,
"src"
:
"${data.imageSrc}"
,
"scale-type"
:
"fitXY"
,
"onClick"
:
[
{
"type"
:
"SendEvent"
,
"componentId"
:
"${data.imageId}"
}
]
},
{
"type"
:
"Text"
,
"font-size"
:
"24dp"
,
"letter-spacing"
:
"3dp"
,
"margin-top"
:
"10dp"
,
"text"
:
"${data.imageName}"
}
]
}
]
}
]
},
{
"type"
:
"Container"
,
"height"
:
"250dp"
,
"width"
:
"100%"
,
"items"
:
[
{
"type"
:
"List"
,
"height"
:
"100%"
,
"width"
:
"100%"
,
"direction"
:
"horizontal"
,
"items"
:
[
{
"type"
:
"Container"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
,
"margin-left"
:
"30dp"
,
"items"
:
[
{
"type"
:
"Image"
,
"componentId"
:
"${data.imageId}"
,
"width"
:
"160dp"
,
"height"
:
"160dp"
,
"border-radius"
:
"15dp"
,
"src"
:
"${data.imageSrc}"
,
"scale-type"
:
"fitXY"
,
"onClick"
:
[
{
"type"
:
"SendEvent"
,
"componentId"
:
"${data.imageId}"
}
]
},
{
"type"
:
"Text"
,
"font-size"
:
"24dp"
,
"letter-spacing"
:
"3dp"
,
"margin-top"
:
"10dp"
,
"text"
:
"${data.imageName}"
}
]
}
]
}
]
},
{
"type"
:
"Container"
,
"height"
:
"50dp"
,
"width"
:
"100%"
}
]
}
]
}
]
}
}
\ No newline at end of file
xiaoduhome/src/main/resources/static/json/play.json
View file @
fda1e77c
...
@@ -7,42 +7,46 @@
...
@@ -7,42 +7,46 @@
],
],
"items"
:
[
"items"
:
[
{
{
"type"
:
"Image"
,
"position"
:
"absolute"
,
"top"
:
"0dp"
,
"left"
:
"0dp"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg"
,
"height"
:
"100%"
,
"width"
:
"100%"
},
{
"type"
:
"Header"
,
"headerTitle"
:
"交游天下"
,
"headerImage"
:
"https://aliyun-hz1.chewrobot.com/xiaodu/image/5b2d0a11/lvzhou/15640330891628686.jpg"
,
"hasBackIcon"
:
true
},
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"height"
:
"100%"
,
"height"
:
"100%"
,
"width"
:
"100%"
,
"width"
:
"100%"
,
"componentId"
:
"whole"
,
"componentId"
:
"whole"
,
"
items
"
:
[
"
onClick
"
:
[
{
{
"type"
:
"Image"
,
"type"
:
"SendEvent"
,
"position"
:
"absolute"
,
"componentId"
:
"continues"
"top"
:
"0dp"
,
}
"left"
:
"0dp"
,
],
"opacity"
:
"0.4"
,
"items"
:
[
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg"
,
"height"
:
"100%"
,
"width"
:
"100%"
},
{
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"width"
:
"100%"
,
"width"
:
"100%"
,
"height"
:
"100%"
,
"height"
:
"100%"
,
"items"
:
[
"items"
:
[
{
{
"type"
:
"Header"
,
"headerTitle"
:
"交游天下"
,
"headerImage"
:
"https://aliyun-hz1.chewrobot.com/xiaodu/image/5b2d0a11/lvzhou/15640330891628686.jpg"
,
"hasBackIcon"
:
true
},
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"height"
:
"
80%
"
,
"height"
:
"
280dp
"
,
"width"
:
"90%"
,
"width"
:
"90%"
,
"margin-left"
:
"5%"
,
"align-items"
:
"flex-end"
,
"margin-top"
:
"5%"
,
"items"
:
[
"items"
:
[
{
{
"type"
:
"Text"
,
"type"
:
"Text"
,
"font-size"
:
"
4
5dp"
,
"font-size"
:
"
3
5dp"
,
"font-style"
:
"normal"
,
"font-style"
:
"normal"
,
"letter-spacing"
:
"3dp"
"letter-spacing"
:
"3dp"
}
}
...
@@ -55,7 +59,7 @@
...
@@ -55,7 +59,7 @@
"componentId"
:
"audio"
,
"componentId"
:
"audio"
,
"looping"
:
"false"
,
"looping"
:
"false"
,
"autoplay"
:
"true"
,
"autoplay"
:
"true"
,
"on
Prepare
d"
:
[
"on
En
d"
:
[
{
{
"type"
:
"SendEvent"
,
"type"
:
"SendEvent"
,
"componentId"
:
"audio"
"componentId"
:
"audio"
...
@@ -63,6 +67,21 @@
...
@@ -63,6 +67,21 @@
]
]
}
}
]
]
},
{
"type"
:
"Container"
,
"position"
:
"absolute"
,
"width"
:
"100%"
,
"left"
:
"0"
,
"bottom"
:
"0"
,
"items"
:
[
{
"type"
:
"Footer"
,
"hints"
:
[
"送花"
,
"收藏作品"
,
"回到首页"
]
}
]
}
}
]
]
}
}
...
...
xiaoduhome/src/main/resources/static/json/productInfo.json
View file @
fda1e77c
...
@@ -7,36 +7,32 @@
...
@@ -7,36 +7,32 @@
],
],
"items"
:
[
"items"
:
[
{
{
"type"
:
"Image"
,
"position"
:
"absolute"
,
"top"
:
"0dp"
,
"left"
:
"0dp"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg"
,
"height"
:
"100%"
,
"width"
:
"100%"
},
{
"type"
:
"Header"
,
"headerImage"
:
"https://skillstore.cdn.bcebos.com/icon/23/fc7581b7-b505-1f44-ab52-3d9f5e567dfd.png"
,
"headerTitle"
:
"交游天下"
,
"hasBackIcon"
:
true
},
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"width"
:
"100%"
,
"width"
:
"100%"
,
"height"
:
"100%"
,
"height"
:
"100%"
,
"componentId"
:
"whole"
,
"componentId"
:
"whole"
,
"onClick"
:
[
{
"type"
:
"SendEvent"
}
],
"items"
:
[
"items"
:
[
{
{
"type"
:
"Image"
,
"height"
:
"100%"
,
"width"
:
"100%"
,
"opacity"
:
"0.4"
,
"position"
:
"absolute"
,
"left"
:
"0dp"
,
"top"
:
"0dp"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg"
},
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"width"
:
"100%"
,
"width"
:
"100%"
,
"height"
:
"100%"
,
"height"
:
"100%"
,
"items"
:
[
"items"
:
[
{
{
"type"
:
"Header"
,
"headerImage"
:
"https://skillstore.cdn.bcebos.com/icon/23/fc7581b7-b505-1f44-ab52-3d9f5e567dfd.png"
},
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"flex-direction"
:
"row"
,
"flex-direction"
:
"row"
,
"width"
:
"100%"
,
"width"
:
"100%"
,
...
@@ -44,123 +40,166 @@
...
@@ -44,123 +40,166 @@
"items"
:
[
"items"
:
[
{
{
"type"
:
"Image"
,
"type"
:
"Image"
,
"
margin-top"
:
"5%
"
,
"
height"
:
"280dp
"
,
"
height"
:
"40
0dp"
,
"
width"
:
"28
0dp"
,
"
width"
:
"38
0dp"
,
"
border-radius"
:
"3
0dp"
,
"scale-type"
:
"fitCenter"
,
"scale-type"
:
"fitCenter"
,
"margin-left"
:
"35dp"
"margin-left"
:
"50dp"
,
"margin-top"
:
"12dp"
},
},
{
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"
margin-top"
:
"7%
"
,
"
flex-direction"
:
"column
"
,
"width"
:
"6
5%
"
,
"width"
:
"6
00dp
"
,
"height"
:
"100%"
,
"height"
:
"100%"
,
"items"
:
[
"items"
:
[
{
{
"type"
:
"Text"
,
"type"
:
"Text"
,
"font-size"
:
"30dp"
,
"margin-top"
:
"10dp"
,
"letter-spacing"
:
"10dp"
,
"font-size"
:
"38dp"
,
"margin-left"
:
"7%"
"letter-spacing"
:
"15dp"
,
"margin-left"
:
"5%"
},
},
{
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"
padding-top"
:
"2%
"
,
"
margin-top"
:
"10dp
"
,
"flex-direction"
:
"row"
,
"flex-direction"
:
"row"
,
"items"
:[
"items"
:[
{
{
"type"
:
"Text"
,
"type"
:
"Text"
,
"text"
:
"发表时间:2019.5.8"
,
"text"
:
"发表时间:2019.5.8"
,
"font-size"
:
"22dp"
,
"font-size"
:
"22dp"
,
"letter-spacing"
:
"4dp"
,
"letter-spacing"
:
"
1
4dp"
,
"margin-left"
:
"
7
%"
"margin-left"
:
"
5
%"
},
},
{
{
"type"
:
"Text"
,
"type"
:
"Text"
,
"text"
:
"作者:小艾"
,
"text"
:
"作者:小艾"
,
"font-size"
:
"22dp"
,
"font-size"
:
"22dp"
,
"letter-spacing"
:
"4dp"
,
"letter-spacing"
:
"
1
4dp"
,
"margin-left"
:
"
7
%"
"margin-left"
:
"
10
%"
}
}
]
]
},
},
{
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"
padding-top"
:
"2%
"
,
"
margin-top"
:
"6dp
"
,
"flex-direction"
:
"row"
,
"flex-direction"
:
"row"
,
"items"
:[
"items"
:[
{
{
"type"
:
"Text"
,
"type"
:
"Text"
,
"max-lines"
:
1
,
"text"
:
"相关标签: 都市 社会 生活"
,
"text"
:
"相关标签: 都市 社会 生活"
,
"font-size"
:
"2
6
dp"
,
"font-size"
:
"2
2
dp"
,
"letter-spacing"
:
"4dp"
,
"letter-spacing"
:
"
1
4dp"
,
"margin-left"
:
"
7
%"
"margin-left"
:
"
5
%"
}
}
]
]
},
},
{
{
"type"
:
"Text"
,
"type"
:
"Container"
,
"font-size"
:
"25dp"
,
"margin-top"
:
"9dp"
,
"letter-spacing"
:
"4dp"
,
"margin-right"
:
"26dp"
,
"margin-top"
:
"30dp"
,
"items"
:
[
"margin-left"
:
"7%"
{
"type"
:
"Text"
,
"font-size"
:
"25dp"
,
"line-height"
:
"50dp"
,
"letter-spacing"
:
"50dp"
,
"margin-top"
:
"30dp"
,
"max-lines"
:
3
,
"text-overflow"
:
"ellipsis"
,
"margin-left"
:
"5%"
}
]
},
},
{
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"flex-direction"
:
"row"
,
"flex-direction"
:
"row"
,
"width"
:
"100%"
,
"height"
:
"100%"
,
"items"
:
[
"items"
:
[
{
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"margin-left"
:
"50dp"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
,
"onClick"
:
[
{
"type"
:
"SendEvent"
}
],
"items"
:
[
"items"
:
[
{
{
"type"
:
"Image"
,
"type"
:
"Image"
,
"height"
:
"30dp"
,
"height"
:
"60dp"
,
"width"
:
"30dp"
,
"width"
:
"60dp"
,
"margin-bottom"
:
"20dp"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/feel.png"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/feel.png"
,
"scale-type"
:
"fitCenter"
"scale-type"
:
"fitCenter"
},
},
{
{
"type"
:
"Text"
,
"type"
:
"Text"
,
"text"
:
"开始体验"
,
"text"
:
"开始体验"
,
"font-size"
:
"10dp"
,
"margin-top"
:
"10dp"
,
"letter-spacing"
:
"2dp"
"font-size"
:
"20dp"
,
"letter-spacing"
:
"12dp"
}
}
]
]
},
},
{
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"margin-left"
:
"130dp"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
,
"onClick"
:
[
{
"type"
:
"SendEvent"
}
],
"items"
:
[
"items"
:
[
{
{
"type"
:
"Image"
,
"type"
:
"Image"
,
"height"
:
"30dp"
,
"height"
:
"60dp"
,
"width"
:
"30dp"
,
"width"
:
"60dp"
,
"margin-bottom"
:
"20dp"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/flower.png"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/flower.png"
,
"scale-type"
:
"fitCenter"
"scale-type"
:
"fitCenter"
},
},
{
{
"type"
:
"Text"
,
"type"
:
"Text"
,
"text"
:
"打赏鲜花"
,
"text"
:
"打赏鲜花"
,
"font-size"
:
"10dp"
,
"margin-top"
:
"10dp"
,
"letter-spacing"
:
"2dp"
"font-size"
:
"20dp"
,
"letter-spacing"
:
"12dp"
}
}
]
]
},
},
{
{
"type"
:
"Container"
,
"type"
:
"Container"
,
"margin-left"
:
"130dp"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
,
"onClick"
:
[
{
"type"
:
"SendEvent"
}
],
"items"
:
[
"items"
:
[
{
{
"type"
:
"Image"
,
"type"
:
"Image"
,
"height"
:
"30dp"
,
"height"
:
"60dp"
,
"width"
:
"30dp"
,
"width"
:
"60dp"
,
"margin-bottom"
:
"20dp"
,
"componentId"
:
"collectImage"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/share.png"
,
"src"
:
"https://aliyun-hz1.chewrobot.com/xiaoduhome/image/share.png"
,
"scale-type"
:
"fitCenter"
"scale-type"
:
"fitCenter"
},
},
{
{
"type"
:
"Text"
,
"type"
:
"Text"
,
"text"
:
"分享"
,
"componentId"
:
"collectText"
,
"font-size"
:
"10dp"
,
"margin-top"
:
"10dp"
,
"letter-spacing"
:
"2dp"
"text"
:
"收藏"
,
"font-size"
:
"20dp"
,
"letter-spacing"
:
"49dp"
}
}
]
]
}
}
...
@@ -169,13 +208,25 @@
...
@@ -169,13 +208,25 @@
]
]
}
}
]
]
},
{
"type"
:
"Footer"
}
}
]
]
}
}
]
]
},
{
"type"
:
"Container"
,
"position"
:
"absolute"
,
"width"
:
"100%"
,
"left"
:
"0"
,
"bottom"
:
"0"
,
"items"
:
[
{
"type"
:
"Footer"
,
"hints"
:
[
"送花"
,
"收藏作品"
,
"回到首页"
]
}
]
}
}
]
]
}
}
...
...
xiaoduhome/src/main/resources/templates/LoadFailed.html
0 → 100644
View file @
fda1e77c
<!DOCTYPE html>
<html
lang=
"en"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
/>
<title>
Title
</title>
</head>
<body>
<span>
登录失败,请返回
</span>
</body>
</html>
\ No newline at end of file
xiaoduhome/src/main/resources/templates/Oauth2_load.html
0 → 100644
View file @
fda1e77c
<!DOCTYPE html>
<html
lang=
"en"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
/>
<title>
登录
</title>
<script
type=
"text/javascript"
>
function
getToken
()
{
var
state
=
document
.
getElementById
(
"state"
).
value
;
var
phoneNum
=
document
.
getElementById
(
"phoneNum"
).
value
;
var
captcha
=
document
.
getElementById
(
"getCaptcha"
).
value
;
// alert("phone:"+phoneNum+",captcha:"+captcha);
var
ajaxObj
=
new
XMLHttpRequest
();
//var uri = '/xiaodu/security/token?phoneNumber='+phoneNum+'&captcha='+captcha;
ajaxObj
.
open
(
'get'
,
'/xiaodu/security/token?phoneNumber='
+
phoneNum
+
'&captcha='
+
captcha
);
ajaxObj
.
send
();
ajaxObj
.
onreadystatechange
=
function
()
{
if
(
ajaxObj
.
readyState
===
4
&&
ajaxObj
.
status
===
200
)
{
if
(
ajaxObj
.
responseText
===
"1"
)
{
// alert(1);
//var redirectUri = "https://xiaodu-dbp.baidu.com/saiya/auth/3428011e7f55ec4c10b2da1b00a1675b?code="+phoneNum;
//var redirectUri = "https://xiaodu.baidu.com/saiya/auth/3428011e7f55ec4c10b2da1b00a1675b?code="+phoneNum;
var
redirectUri
=
"https://xiaodu-dbp.baidu.com/saiya/auth/15966f1c8158104bd82712f95d8a1150?code="
+
phoneNum
;
if
(
state
!==
undefined
&&
state
!==
null
&&
state
!==
""
)
{
redirectUri
=
redirectUri
+
"&state"
+
state
;
}
window
.
location
.
href
=
redirectUri
;
}
}
}
}
function
getCaptcha
()
{
var
phoneNum
=
document
.
getElementById
(
"phoneNum"
).
value
;
var
ajaxObj
=
new
XMLHttpRequest
();
ajaxObj
.
open
(
'get'
,
'/xiaodu/security/captcha?phoneNumber='
+
phoneNum
);
ajaxObj
.
send
();
ajaxObj
.
onreadystatechange
=
function
()
{
if
(
ajaxObj
.
readyState
===
4
&&
ajaxObj
.
status
===
200
)
{
document
.
getElementById
(
"captchaView"
).
hidden
=
true
;
document
.
getElementById
(
"tokenView"
).
hidden
=
false
;
}
}
}
</script>
<style
type=
"text/css"
>
body
{
padding-top
:
40px
;
padding-bottom
:
40px
;
background-color
:
#eee
;
margin
:
0
;
}
.container
{
width
:
80%
;
padding-left
:
15px
;
padding-right
:
15px
;
margin-right
:
auto
;
margin-left
:
auto
;
}
.whole
{
text-align
:
center
;
padding
:
10px
;
margin
:
0
auto
;
}
.title
{
margin-top
:
20px
;
margin-bottom
:
10px
;
font-size
:
26px
;
}
.input
{
margin-bottom
:
-1px
;
border-radius
:
4px
;
height
:
auto
;
width
:
88%
;
padding
:
10px
;
font-size
:
16px
;
color
:
#555
;
background-color
:
#fff
;
border
:
1px
solid
#ccc
;
}
.click
{
display
:
block
;
font-size
:
16px
;
border-radius
:
4px
;
color
:
#fff
;
background-color
:
#337ab7
;
padding
:
6px
12px
;
font-weight
:
400
;
text-align
:
center
;
white-space
:
nowrap
;
vertical-align
:
middle
;
cursor
:
pointer
;
border
:
1px
solid
transparent
;
margin
:
10px
auto
;
width
:
96%
;
}
</style>
</head>
<body>
<div
class=
"container"
>
<input
type=
"text"
id=
"state"
th:hidden=
"true"
th:default=
"*{userInfo.state}"
/>
<div
class=
"whole"
th:hidden=
"false"
id=
"captchaView"
>
<h2
class=
"title"
>
获取验证码
</h2>
<input
type=
"text"
id=
"phoneNum"
name=
"phone"
class=
"input"
placeholder=
"请输入手机号"
/>
<input
type=
"button"
onclick=
"getCaptcha()"
name=
"captcha"
id=
"captcha"
class=
"click"
value=
"点击获取验证码"
/>
</div>
<div
class=
"whole"
th:hidden=
"true"
id=
"tokenView"
>
<h2
class=
"title"
>
请输入验证码
</h2>
<input
type=
"text"
id=
"getCaptcha"
name=
"phone"
class=
"input"
placeholder=
"请输入短信验证码"
/>
<input
type=
"button"
id=
"toLoad"
name=
"to_load"
class=
"click"
value=
"点击登录"
onclick=
"getToken()"
/>
</div>
</div>
</body>
</html>
\ No newline at end of file
xiaoduhome/src/main/resources/templates/home_load.html
0 → 100644
View file @
fda1e77c
<!DOCTYPE html>
<html
lang=
"en"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
/>
<title>
登录
</title>
<script
type=
"text/javascript"
>
function
getToken
()
{
var
state
=
document
.
getElementById
(
"state"
).
value
;
var
phoneNum
=
document
.
getElementById
(
"phoneNum"
).
value
;
var
captcha
=
document
.
getElementById
(
"getCaptcha"
).
value
;
// alert("phone:"+phoneNum+",captcha:"+captcha);
var
ajaxObj
=
new
XMLHttpRequest
();
//var uri = '/xiaodu/security/token?phoneNumber='+phoneNum+'&captcha='+captcha;
ajaxObj
.
open
(
'get'
,
'/xiaodu/security/token?phoneNumber='
+
phoneNum
+
'&captcha='
+
captcha
);
ajaxObj
.
send
();
ajaxObj
.
onreadystatechange
=
function
()
{
if
(
ajaxObj
.
readyState
===
4
&&
ajaxObj
.
status
===
200
)
{
if
(
ajaxObj
.
responseText
===
"1"
)
{
// alert(1);
//var redirectUri = "https://xiaodu-dbp.baidu.com/saiya/auth/3428011e7f55ec4c10b2da1b00a1675b?code="+phoneNum;
//var redirectUri = "https://xiaodu.baidu.com/saiya/auth/3428011e7f55ec4c10b2da1b00a1675b?code="+phoneNum;
var
redirectUri
=
"https://xiaodu-dbp.baidu.com/saiya/auth/15966f1c8158104bd82712f95d8a1150?code="
+
phoneNum
;
if
(
state
!==
undefined
&&
state
!==
null
&&
state
!==
""
)
{
redirectUri
=
redirectUri
+
"&state"
+
state
;
}
window
.
location
.
href
=
redirectUri
;
}
}
}
}
function
getCaptcha
()
{
var
phoneNum
=
document
.
getElementById
(
"phoneNum"
).
value
;
var
ajaxObj
=
new
XMLHttpRequest
();
ajaxObj
.
open
(
'get'
,
'/xiaodu/security/captcha?phoneNumber='
+
phoneNum
);
ajaxObj
.
send
();
ajaxObj
.
onreadystatechange
=
function
()
{
if
(
ajaxObj
.
readyState
===
4
&&
ajaxObj
.
status
===
200
)
{
document
.
getElementById
(
"captchaView"
).
hidden
=
true
;
document
.
getElementById
(
"tokenView"
).
hidden
=
false
;
}
}
}
</script>
<style
type=
"text/css"
>
body
{
padding-top
:
40px
;
padding-bottom
:
40px
;
background-color
:
#eee
;
margin
:
0
;
}
.container
{
margin-top
:
200px
;
width
:
80%
;
padding-left
:
15px
;
padding-right
:
15px
;
margin-right
:
auto
;
margin-left
:
auto
;
}
.whole
{
text-align
:
center
;
padding
:
10px
;
margin
:
0
auto
;
}
.title
{
margin-top
:
20px
;
margin-bottom
:
30px
;
font-size
:
40px
;
}
.input
{
margin-bottom
:
-1px
;
border-radius
:
4px
;
height
:
80px
;
width
:
88%
;
padding
:
10px
;
font-size
:
40px
;
color
:
#555
;
background-color
:
#fff
;
border
:
1px
solid
#ccc
;
}
.click
{
display
:
block
;
font-size
:
40px
;
border-radius
:
4px
;
color
:
#fff
;
background-color
:
#337ab7
;
padding
:
6px
12px
;
font-weight
:
400
;
text-align
:
center
;
white-space
:
nowrap
;
vertical-align
:
middle
;
cursor
:
pointer
;
border
:
1px
solid
transparent
;
margin
:
50px
auto
;
width
:
90%
;
height
:
80px
;
}
</style>
</head>
<body>
<div
class=
"container"
>
<input
type=
"text"
id=
"state"
th:hidden=
"true"
th:default=
"*{userInfo.state}"
/>
<div
class=
"whole"
th:hidden=
"false"
id=
"captchaView"
>
<h2
class=
"title"
>
获取验证码
</h2>
<input
type=
"text"
id=
"phoneNum"
name=
"phone"
class=
"input"
placeholder=
"请输入手机号"
/>
<input
type=
"button"
onclick=
"getCaptcha()"
name=
"captcha"
id=
"captcha"
class=
"click"
value=
"点击获取验证码"
/>
</div>
<div
class=
"whole"
th:hidden=
"true"
id=
"tokenView"
>
<h2
class=
"title"
>
请输入验证码
</h2>
<input
type=
"text"
id=
"getCaptcha"
name=
"phone"
class=
"input"
placeholder=
"请输入短信验证码"
/>
<input
type=
"button"
id=
"toLoad"
name=
"to_load"
class=
"click"
value=
"点击登录"
onclick=
"getToken()"
/>
</div>
</div>
</body>
</html>
\ No newline at end of file
xiaoduhome/src/main/resources/xiaodu.properties
0 → 100644
View file @
fda1e77c
unitPrice
=
1
\ No newline at end of file
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