Commit a1aa3fa5 by 苗权威

8.29

parent fda1e77c
...@@ -3,41 +3,31 @@ ...@@ -3,41 +3,31 @@
<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/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/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/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/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/common/OkHttp3Utils.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/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/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$/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$/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/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/resources/templates/Product.html" beforeDir="false" afterPath="$PROJECT_DIR$/xiaodu/src/main/resources/templates/Product.html" 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/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/common/OkHttp3Utils.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/ServiceUtil.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/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/primary/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/primary/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/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/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/pojo/dpl/MyMainTemplate.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/MyMainTemplate.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/primary/AppFavoriteTBRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.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/repository/primary/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/secondary/XiaoDuOrderTBIdRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTBIdRepository.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.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/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/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/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml" 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/categoryPro.json" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/categoryPro.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.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/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" /> <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>
...@@ -82,110 +72,68 @@ ...@@ -82,110 +72,68 @@
</component> </component>
<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="true">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="7854"> <state relative-caret-position="157">
<caret line="716" selection-start-line="716" selection-end-line="716" /> <caret line="1345" column="23" selection-start-line="1345" selection-start-column="23" selection-end-line="1345" selection-end-column="23" />
</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>
<element signature="e#23314#23360#0" />
<element signature="e#24229#24343#0" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="132">
<caret line="53" column="75" selection-start-line="53" selection-start-column="75" selection-end-line="53" selection-end-column="75" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Runtime.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="327"> <state relative-caret-position="345">
<caret line="616" column="42" selection-start-line="616" selection-start-column="34" selection-end-line="616" selection-end-column="42" /> <caret line="28" selection-start-line="28" selection-end-line="28" />
<folding>
<element signature="e#1272#1273#0" expanded="true" />
<element signature="e#1309#1310#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.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/nlu/ConfirmationStatus.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="366">
<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>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<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="88"> <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" /> <caret line="7" column="12" selection-start-line="7" selection-start-column="12" selection-end-line="7" selection-end-column="12" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/playUpdate.json">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308"> <state relative-caret-position="308">
<caret line="14" column="22" selection-start-line="14" selection-start-column="22" selection-end-line="14" selection-end-column="22" /> <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>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/ProcessBuilder.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="-641"> <state relative-caret-position="594">
<caret line="179" column="32" selection-start-line="179" selection-start-column="25" selection-end-line="179" selection-end-column="32" /> <caret line="27" column="31" selection-start-line="27" selection-start-column="31" selection-end-line="27" selection-end-column="31" />
</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/Utils.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="2024"> <state relative-caret-position="525">
<caret line="103" column="50" selection-start-line="103" selection-start-column="50" selection-end-line="103" selection-end-column="50" /> <caret line="66" column="55" selection-start-line="66" selection-start-column="55" selection-end-line="66" selection-end-column="55" />
</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$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="4004"> <state relative-caret-position="261">
<caret line="182" column="51" selection-start-line="182" selection-start-column="51" selection-end-line="182" selection-end-column="51" /> <caret line="60" column="47" selection-start-line="60" selection-start-column="47" selection-end-line="60" selection-end-column="47" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -197,36 +145,13 @@ ...@@ -197,36 +145,13 @@
<list> <list>
<option value="Enum" /> <option value="Enum" />
<option value="HTML File" /> <option value="HTML File" />
<option value="Class" />
<option value="Interface" /> <option value="Interface" />
<option value="Class" />
</list> </list>
</option> </option>
</component> </component>
<component name="FindInProjectRecents"> <component name="FindInProjectRecents">
<findStrings> <findStrings>
<find>max-lines</find>
<find>log.info</find>
<find>flower</find>
<find>getUserIdByToken</find>
<find>changeIconIdTextAfterCollect</find>
<find>system</find>
<find>log</find>
<find>specing</find>
<find>align</find>
<find>margin-right</find>
<find>align-items</find>
<find>CATEGORY_PROD_LIST</find>
<find>line-height</find>
<find>hasBackIcon</find>
<find>productName</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>letter</find>
<find>margin-bottom</find> <find>margin-bottom</find>
<find>TTSResponse</find> <find>TTSResponse</find>
...@@ -234,6 +159,29 @@ ...@@ -234,6 +159,29 @@
<find>componentId</find> <find>componentId</find>
<find>CallP</find> <find>CallP</find>
<find>AUDIO_DIR</find> <find>AUDIO_DIR</find>
<find>log.info</find>
<find>log.error</find>
<find>scale-type</find>
<find>first</find>
<find>firstItem</find>
<find>letter-spacing</find>
<find>line-height</find>
<find>version</find>
<find>ite</find>
<find>border-radius</find>
<find>position</find>
<find>margin</find>
<find>padding</find>
<find>bottom</find>
<find>code</find>
<find>flex-direction</find>
<find>data.</find>
<find>botAccount</find>
<find>productDetail</find>
<find>BACK_TRACE</find>
<find>directives</find>
<find>LAST_OUTTIME_RESULT</find>
<find>botAcc</find>
</findStrings> </findStrings>
<replaceStrings> <replaceStrings>
<replace>OPENID_CACHE</replace> <replace>OPENID_CACHE</replace>
...@@ -249,57 +197,57 @@ ...@@ -249,57 +197,57 @@
<component name="IdeDocumentHistory"> <component name="IdeDocumentHistory">
<option name="CHANGED_PATHS"> <option name="CHANGED_PATHS">
<list> <list>
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/Payload.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/categoryPro.json" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/collect.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/play.json" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectPagePojo.java" />
<option value="$PROJECT_DIR$/tts_service/pom.xml" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectDocument.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/BaseHolder.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/ServiceUtil.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/AppUserTB.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/AppFavoriteTB.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/DataSourceConfig.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/entity/secondary/XiaoDuBuyOrderTB.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XioaDuOrderTbRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Config.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/xiaodu.properties" />
<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/entity/AppFlowerTBTiny.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/AppFavoriteTBRepository.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/repository/AppFlowerTBTintRepository.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/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/java/ai/qiwu/com/xiaoduhome/common/config/PrimaryConfig.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTBIdRepository.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTBIdRepository.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/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/common/temple/CollectMainTemplate.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/common/temple/HistoryMainTemplate.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/HistoryDocument.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectHistoryDocument.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/QiWuResponse.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuResponse.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ResponseEncapsulation.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/collectPage.json" />
<option value="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService.java" /> <option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.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/controller/TTSController.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/entity/primary/GameProjectTb.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/primary/GameProjectTbRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml" />
<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/entity/secondary/XiaoDuHistoryTB.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/ranking.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingMainTemplate.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankBotInfo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandMainTemplate.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandBotInfo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingPojo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandPojo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandDocument.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingDocument.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryBotTimeRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryBotIdTime.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/history.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectHistoryPagePojo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/pageData/HistoryData.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/OnProductDetail.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/pojo/OverTimeDetail.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/service/RequestTerminal.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/play.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/playUpdate.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/playUpdate/PlayUpdatePojo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/playUpdate/PlayUpdateMainTemplate.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/playUpdate/PlayUpdateDocument.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.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>
...@@ -317,15 +265,6 @@ ...@@ -317,15 +265,6 @@
<expand> <expand>
<path> <path>
<item name="" type="16c1761:MavenProjectsStructure$RootNode" /> <item name="" type="16c1761:MavenProjectsStructure$RootNode" />
<item name="tts_service" type="9519ce18:MavenProjectsStructure$ProjectNode" />
</path>
<path>
<item name="" type="16c1761:MavenProjectsStructure$RootNode" />
<item name="tts_service" type="9519ce18:MavenProjectsStructure$ProjectNode" />
<item name="Lifecycle" type="58874e2:MavenProjectsStructure$LifecycleNode" />
</path>
<path>
<item name="" type="16c1761:MavenProjectsStructure$RootNode" />
<item name="xiaoduhome" type="9519ce18:MavenProjectsStructure$ProjectNode" /> <item name="xiaoduhome" type="9519ce18:MavenProjectsStructure$ProjectNode" />
</path> </path>
<path> <path>
...@@ -341,10 +280,10 @@ ...@@ -341,10 +280,10 @@
<option name="skipTests" value="true" /> <option name="skipTests" value="true" />
</component> </component>
<component name="ProjectFrameBounds"> <component name="ProjectFrameBounds">
<option name="x" value="15" /> <option name="x" value="262" />
<option name="y" value="194" /> <option name="y" value="24" />
<option name="width" value="1416" /> <option name="width" value="1416" />
<option name="height" value="1055" /> <option name="height" value="990" />
</component> </component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true"> <component name="ProjectLevelVcsManager" settingsEditedManually="true">
<ConfirmationsSetting value="1" id="Add" /> <ConfirmationsSetting value="1" id="Add" />
...@@ -355,6 +294,7 @@ ...@@ -355,6 +294,7 @@
</navigator> </navigator>
<panes> <panes>
<pane id="Scope" /> <pane id="Scope" />
<pane id="PackagesPane" />
<pane id="ProjectPane"> <pane id="ProjectPane">
<subPane> <subPane>
<expand> <expand>
...@@ -365,83 +305,37 @@ ...@@ -365,83 +305,37 @@
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" /> <item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" /> <item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" /> <item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" /> <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="java" 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="tts_service" 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" />
<item name="tts_service" 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="tts_service" 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" /> <item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" 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" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" /> <item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" 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" /> <item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="service" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
</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" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" /> <item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<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" />
...@@ -450,6 +344,8 @@ ...@@ -450,6 +344,8 @@
<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" />
<item name="common" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
...@@ -459,6 +355,8 @@ ...@@ -459,6 +355,8 @@
<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" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
...@@ -468,7 +366,7 @@ ...@@ -468,7 +366,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" /> <item name="controller" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
...@@ -478,8 +376,7 @@ ...@@ -478,8 +376,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" /> <item name="entity" 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" />
...@@ -489,7 +386,8 @@ ...@@ -489,7 +386,8 @@
<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="controller" type="462c0819:PsiDirectoryNode" /> <item name="entity" type="462c0819:PsiDirectoryNode" />
<item name="primary" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
...@@ -500,6 +398,7 @@ ...@@ -500,6 +398,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="entity" type="462c0819:PsiDirectoryNode" /> <item name="entity" type="462c0819:PsiDirectoryNode" />
<item name="secondary" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
...@@ -519,8 +418,7 @@ ...@@ -519,8 +418,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="pojo" type="462c0819:PsiDirectoryNode" /> <item name="repository" type="462c0819:PsiDirectoryNode" />
<item name="dpl" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
...@@ -531,6 +429,7 @@ ...@@ -531,6 +429,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="repository" type="462c0819:PsiDirectoryNode" /> <item name="repository" type="462c0819:PsiDirectoryNode" />
<item name="primary" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
...@@ -583,7 +482,6 @@ ...@@ -583,7 +482,6 @@
<select /> <select />
</subPane> </subPane>
</pane> </pane>
<pane id="PackagesPane" />
</panes> </panes>
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
...@@ -597,7 +495,7 @@ ...@@ -597,7 +495,7 @@
<property name="RequestMappingsPanelWidth2" value="75" /> <property name="RequestMappingsPanelWidth2" value="75" />
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" /> <property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1566613933141" /> <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1566998569131" />
<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" />
...@@ -649,7 +547,7 @@ ...@@ -649,7 +547,7 @@
</list> </list>
</option> </option>
</component> </component>
<component name="RunManager" selected="Application.Utils"> <component name="RunManager" selected="Application.RequestTerminal">
<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" />
...@@ -663,12 +561,12 @@ ...@@ -663,12 +561,12 @@
<option name="Make" enabled="true" /> <option name="Make" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="LoadBySMS" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> <configuration name="OverTimeDetail" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="ai.qiwu.com.xiaoduhome.service.LoadBySMS" /> <option name="MAIN_CLASS_NAME" value="ai.qiwu.com.xiaoduhome.pojo.OverTimeDetail" />
<module name="xiaoduhome" /> <module name="xiaoduhome" />
<extension name="coverage"> <extension name="coverage">
<pattern> <pattern>
<option name="PATTERN" value="ai.qiwu.com.xiaoduhome.service.*" /> <option name="PATTERN" value="ai.qiwu.com.xiaoduhome.pojo.*" />
<option name="ENABLED" value="true" /> <option name="ENABLED" value="true" />
</pattern> </pattern>
</extension> </extension>
...@@ -689,12 +587,12 @@ ...@@ -689,12 +587,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="ScheduleService" 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.ScheduleService" />
<module name="tts_service" /> <module name="xiaoduhome" />
<extension name="coverage"> <extension name="coverage">
<pattern> <pattern>
<option name="PATTERN" value="ai.qiwu.com.tts_service.common.*" /> <option name="PATTERN" value="ai.qiwu.com.xiaoduhome.service.*" />
<option name="ENABLED" value="true" /> <option name="ENABLED" value="true" />
</pattern> </pattern>
</extension> </extension>
...@@ -702,12 +600,12 @@ ...@@ -702,12 +600,12 @@
<option name="Make" enabled="true" /> <option name="Make" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="Utils" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> <configuration name="TempleUtils" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="ai.qiwu.com.xiaoduhome.common.Utils" /> <option name="MAIN_CLASS_NAME" value="ai.qiwu.com.xiaoduhome.common.temple.TempleUtils" />
<module name="xiaoduhome" /> <module name="xiaoduhome" />
<extension name="coverage"> <extension name="coverage">
<pattern> <pattern>
<option name="PATTERN" value="ai.qiwu.com.xiaoduhome.common.config.*" /> <option name="PATTERN" value="ai.qiwu.com.xiaoduhome.common.temple.*" />
<option name="ENABLED" value="true" /> <option name="ENABLED" value="true" />
</pattern> </pattern>
</extension> </extension>
...@@ -1024,11 +922,11 @@ ...@@ -1024,11 +922,11 @@
</method> </method>
</configuration> </configuration>
<list> <list>
<item itemvalue="Application.DplBotService" /> <item itemvalue="Application.TempleUtils" />
<item itemvalue="Application.LoadBySMS" /> <item itemvalue="Application.ScheduleService" />
<item itemvalue="Application.RequestTerminal" /> <item itemvalue="Application.RequestTerminal" />
<item itemvalue="Application.Utils" /> <item itemvalue="Application.DplBotService" />
<item itemvalue="Application.TTSUtils" /> <item itemvalue="Application.OverTimeDetail" />
<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" />
...@@ -1052,11 +950,11 @@ ...@@ -1052,11 +950,11 @@
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Application.Utils" />
<item itemvalue="Application.TTSUtils" />
<item itemvalue="Application.RequestTerminal" /> <item itemvalue="Application.RequestTerminal" />
<item itemvalue="Application.OverTimeDetail" />
<item itemvalue="Application.DplBotService" /> <item itemvalue="Application.DplBotService" />
<item itemvalue="Application.LoadBySMS" /> <item itemvalue="Application.TempleUtils" />
<item itemvalue="Application.ScheduleService" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
...@@ -1132,7 +1030,11 @@ ...@@ -1132,7 +1030,11 @@
<workItem from="1566350897016" duration="39445000" /> <workItem from="1566350897016" duration="39445000" />
<workItem from="1566437460123" duration="34976000" /> <workItem from="1566437460123" duration="34976000" />
<workItem from="1566524520543" duration="36419000" /> <workItem from="1566524520543" duration="36419000" />
<workItem from="1566609607491" duration="4612000" /> <workItem from="1566609607491" duration="33323000" />
<workItem from="1566783313961" duration="35629000" />
<workItem from="1566869850611" duration="35719000" />
<workItem from="1566955559016" duration="33091000" />
<workItem from="1567042986481" duration="2558000" />
</task> </task>
<servers /> <servers />
</component> </component>
...@@ -1142,7 +1044,7 @@ ...@@ -1142,7 +1044,7 @@
</history-entry> </history-entry>
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="1516634000" /> <option name="totallyTimeSpent" value="1652342000" />
</component> </component>
<component name="TodoView"> <component name="TodoView">
<todo-panel id="selected-file"> <todo-panel id="selected-file">
...@@ -1154,10 +1056,9 @@ ...@@ -1154,10 +1056,9 @@
</todo-panel> </todo-panel>
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="15" y="194" width="1416" height="1055" extended-state="0" /> <frame x="262" y="24" width="1416" height="990" extended-state="0" />
<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.5099778" side_tool="true" weight="0.21052632" />
<window_info id="Designer" order="1" /> <window_info id="Designer" order="1" />
<window_info id="Image Layers" order="2" /> <window_info id="Image Layers" order="2" />
<window_info id="Capture Tool" order="3" /> <window_info id="Capture Tool" order="3" />
...@@ -1165,10 +1066,10 @@ ...@@ -1165,10 +1066,10 @@
<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.20760234" /> <window_info content_ui="combo" id="Project" order="8" sideWeight="0.49002218" weight="0.21052632" />
<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.26053214" /> <window_info anchor="bottom" id="Find" order="1" weight="0.2580645" />
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.3736142" /> <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.37275985" />
<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" />
...@@ -1181,11 +1082,11 @@ ...@@ -1181,11 +1082,11 @@
<window_info anchor="bottom" id="Database Changes" order="12" show_stripe_button="false" /> <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.28603104" /> <window_info anchor="bottom" id="Messages" order="15" weight="0.28554362" />
<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 active="true" anchor="right" id="Maven" order="3" visible="true" weight="0.20248538" /> <window_info 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.32748538" /> <window_info anchor="right" id="Database" order="6" weight="0.32748538" />
...@@ -1199,432 +1100,397 @@ ...@@ -1199,432 +1100,397 @@
<option name="version" value="1" /> <option name="version" value="1" />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/ProjectLabelRepository.java"> <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="176"> <state relative-caret-position="198">
<caret line="14" column="11" selection-start-line="14" selection-start-column="11" selection-end-line="14" selection-end-column="11" /> <caret line="9" column="28" selection-start-line="9" selection-start-column="17" selection-end-line="9" selection-end-column="28" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java"> <entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/AbstractStringBuilder.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="107"> <state relative-caret-position="261">
<caret line="16" column="32" lean-forward="true" selection-start-line="16" selection-start-column="32" selection-end-line="16" selection-end-column="32" /> <caret line="490" column="34" selection-start-line="490" selection-start-column="34" selection-end-line="490" selection-end-column="34" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderIdTB.java"> <entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/StringBuilder.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308"> <state relative-caret-position="283">
<caret line="14" column="5" lean-forward="true" selection-start-line="14" selection-start-column="5" selection-end-line="14" selection-end-column="5" /> <caret line="135" column="18" lean-forward="true" selection-start-line="135" selection-start-column="18" selection-end-line="135" 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/XiaoduhomeApplication.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/OnProductDetail.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="-3">
<caret line="20" column="1" lean-forward="true" selection-start-line="20" selection-start-column="1" selection-end-line="20" selection-end-column="1" /> <caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/SecondaryConfig.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/collectPage.json">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="61"> <state relative-caret-position="902">
<caret line="23" column="3" selection-start-line="23" selection-start-column="3" selection-end-line="23" selection-end-column="3" /> <caret line="41" column="19" selection-start-line="41" selection-start-column="19" selection-end-line="41" selection-end-column="19" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<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"> <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="154"> <state relative-caret-position="377">
<caret line="15" column="87" selection-start-line="15" selection-start-column="87" selection-end-line="15" selection-end-column="87" /> <caret line="317" column="40" selection-start-line="317" selection-start-column="40" selection-end-line="317" selection-end-column="40" />
<folding>
<element signature="e#23363#23409#0" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<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"> <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="132"> <state relative-caret-position="726">
<caret line="13" column="17" selection-start-line="13" selection-start-column="17" selection-end-line="13" selection-end-column="17" /> <caret line="157" column="20" lean-forward="true" selection-start-line="157" selection-start-column="20" selection-end-line="157" selection-end-column="20" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/PrimaryConfig.java"> <entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/com/squareup/okhttp3/okhttp/4.0.0/okhttp-4.0.0.jar!/okhttp3/Call.class">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="682"> <state relative-caret-position="220">
<caret line="65" column="1" selection-start-line="65" selection-start-column="1" selection-end-line="65" selection-end-column="1" /> <caret line="10" column="24" selection-start-line="10" selection-start-column="24" selection-end-line="10" selection-end-column="24" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/DataSourceConfig.java"> <entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/QiWuRequest.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="503"> <state relative-caret-position="242">
<caret line="32" column="50" selection-start-line="32" selection-start-column="50" selection-end-line="32" selection-end-column="50" /> <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
<folding>
<element signature="imports" expanded="true" />
<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>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/QiWuRequest.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="19" column="41" selection-start-line="19" selection-start-column="41" selection-end-line="19" selection-end-column="41" /> <caret line="14" column="25" selection-start-line="14" selection-start-column="25" selection-end-line="14" selection-end-column="25" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374"> <state relative-caret-position="261">
<caret line="17" column="18" selection-start-line="17" selection-start-column="18" selection-end-line="17" selection-end-column="18" /> <caret line="83" column="66" selection-start-line="83" selection-start-column="66" selection-end-line="83" selection-end-column="66" />
<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/secondary/XiaoDuOrderTBIdRepository.java"> <entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/RequestTerminateFail.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="132">
<caret line="16" column="18" selection-start-line="16" selection-start-column="18" selection-end-line="16" selection-end-column="18" /> <caret line="6" column="13" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.java"> <entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="476"> <state relative-caret-position="418">
<caret line="22" column="46" lean-forward="true" selection-start-line="22" selection-start-column="46" selection-end-line="22" selection-end-column="46" /> <caret line="19" column="5" lean-forward="true" selection-start-line="19" selection-start-column="5" selection-end-line="19" selection-end-column="5" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/ServiceUtil.java"> <entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/Utils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="211"> <state relative-caret-position="176">
<caret line="27" column="47" selection-start-line="27" selection-start-column="47" selection-end-line="27" selection-end-column="47" /> <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBTintRepository.java"> <entry file="file://$PROJECT_DIR$/xiaoai/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="198"> <state relative-caret-position="2970">
<caret line="13" column="42" selection-start-line="13" selection-start-column="17" selection-end-line="13" selection-end-column="42" /> <caret line="158" column="22" selection-start-line="158" selection-start-column="22" selection-end-line="158" selection-end-column="22" />
<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/primary/AppFlowerTBRepository.java"> <entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/RequestTerminal.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="440">
<caret line="16" column="16" selection-start-line="16" selection-start-column="16" selection-end-line="16" selection-end-column="16" /> <caret line="26" column="37" selection-start-line="26" selection-start-column="37" selection-end-line="26" selection-end-column="37" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTB.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/model/Response.class">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="594"> <state relative-caret-position="264">
<caret line="36" column="29" selection-start-line="36" selection-start-column="29" selection-end-line="36" selection-end-column="29" /> <caret line="18" column="11" selection-start-line="18" selection-start-column="11" selection-end-line="18" 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/entity/primary/AppFavoriteTB.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="264"> <state relative-caret-position="270">
<caret line="21" column="28" selection-start-line="21" selection-start-column="28" selection-end-line="21" selection-end-column="28" /> <caret line="24" column="37" selection-start-line="24" selection-start-column="37" selection-end-line="24" selection-end-column="37" />
<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/request/Session.class"> <entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0.jar!/com/baidu/dueros/data/request/Session.class">
<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="198">
<caret line="18" column="42" selection-start-line="18" selection-start-column="32" selection-end-line="18" selection-end-column="42" /> <caret line="15" column="13" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
<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="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTBTiny.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/Context.class">
<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="198">
<caret line="28" column="23" selection-start-line="28" selection-start-column="23" selection-end-line="28" selection-end-column="23" /> <caret line="15" column="13" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.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/RequestBody.class">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="440"> <state relative-caret-position="270">
<caret line="28" column="37" lean-forward="true" selection-start-line="28" selection-start-column="37" selection-end-line="28" selection-end-column="37" /> <caret line="47" column="22" selection-start-line="47" selection-start-column="22" selection-end-line="47" selection-end-column="22" />
</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$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Map.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="270">
<caret line="19" column="6" selection-start-line="19" selection-start-column="6" selection-end-line="19" selection-end-column="6" /> <caret line="271" column="6" selection-start-line="271" selection-start-column="6" selection-end-line="271" selection-end-column="6" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/ProductController.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/history.json">
<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="309">
<caret line="43" column="41" selection-start-line="43" selection-start-column="41" selection-end-line="43" selection-end-column="41" /> <caret line="47" column="19" selection-start-line="47" selection-start-column="19" selection-end-line="47" selection-end-column="19" />
</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$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/OkHttp3Utils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="229"> <state relative-caret-position="418">
<caret line="45" column="31" selection-start-line="45" selection-start-column="31" selection-end-line="45" selection-end-column="31" /> <caret line="76" column="44" selection-start-line="76" selection-start-column="44" selection-end-line="76" selection-end-column="44" />
</state> </state>
</provider> </provider>
</entry> </entry>
<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"> <entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0.jar!/com/baidu/dueros/model/Request.class">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="132"> <state relative-caret-position="726">
<caret line="13" column="17" selection-start-line="13" selection-start-column="17" selection-end-line="13" selection-end-column="17" /> <caret line="44" column="19" selection-start-line="44" selection-start-column="19" selection-end-line="44" selection-end-column="19" />
<folding>
<element signature="e#1352#1353#0" expanded="true" />
<element signature="e#1387#1388#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSResponse.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/OverTimeDetail.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374"> <state relative-caret-position="352">
<caret line="22" column="11" selection-start-line="22" selection-start-column="11" selection-end-line="22" selection-end-column="11" /> <caret line="16" column="27" selection-start-line="16" selection-start-column="13" selection-end-line="16" selection-end-column="27" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json"> <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/Session.class">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-2354"> <state relative-caret-position="264">
<caret line="18" column="28" selection-start-line="18" selection-start-column="28" selection-end-line="18" selection-end-column="28" /> <caret line="16" column="31" selection-start-line="16" selection-start-column="31" selection-end-line="16" selection-end-column="31" />
<folding>
<element signature="e#363#364#0" expanded="true" />
<element signature="e#401#402#0" expanded="true" />
</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="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">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="242"> <state relative-caret-position="648">
<caret line="14" column="26" lean-forward="true" selection-start-line="14" selection-start-column="26" selection-end-line="14" selection-end-column="26" /> <caret line="100" column="31" selection-start-line="100" selection-start-column="31" selection-end-line="100" selection-end-column="31" />
</state> </state>
</provider> </provider>
</entry> </entry>
<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/controller/XiaoDuHomeController.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1785"> <state relative-caret-position="397">
<caret line="186" column="41" lean-forward="true" selection-start-line="186" selection-start-column="41" selection-end-line="186" selection-end-column="41" /> <caret line="28" column="35" lean-forward="true" selection-start-line="28" selection-start-column="35" selection-end-line="28" selection-end-column="35" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/play.json"> <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="946"> <state relative-caret-position="213">
<caret line="56" column="11" selection-start-line="56" selection-start-column="11" selection-end-line="56" selection-end-column="11" /> <caret line="27" column="48" selection-start-line="27" selection-start-column="48" selection-end-line="27" selection-end-column="48" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/GeneralMP3Data.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="443"> <state relative-caret-position="437">
<caret line="26" column="11" selection-start-line="26" selection-start-column="11" selection-end-line="26" selection-end-column="11" /> <caret line="95" column="48" selection-start-line="95" selection-start-column="48" selection-end-line="95" selection-end-column="48" />
<folding>
<element signature="e#4007#4008#0" expanded="true" />
<element signature="e#4055#4056#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java"> <entry file="jar://$PROJECT_DIR$/third_party_load/src/main/resources/static/bot-sdk-1.2.0.jar!/com/baidu/dueros/samples/dpl/Video.class">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="154"> <state relative-caret-position="88">
<caret line="7" column="4" lean-forward="true" selection-start-line="7" selection-start-column="4" selection-end-line="7" selection-end-column="4" /> <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/service/XiaoAiService.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/pageData/HistoryData.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="787"> <state relative-caret-position="587">
<caret line="159" column="9" selection-start-line="159" selection-start-column="9" selection-end-line="159" selection-end-column="9" /> <caret line="29" column="27" selection-start-line="29" selection-start-column="27" selection-end-line="29" selection-end-column="27" />
<folding> <folding>
<element signature="e#5548#5549#0" expanded="true" /> <element signature="imports" expanded="true" />
<element signature="e#5606#5607#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/controller/XiaoAiController.java"> <entry file="jar://$PROJECT_DIR$/third_party_load/src/main/resources/static/bot-sdk-1.2.0.jar!/com/baidu/dueros/data/response/directive/dpl/Document.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="270">
<caret line="29" column="8" selection-start-line="29" selection-start-column="8" selection-end-line="29" selection-end-column="8" /> <caret line="31" column="27" selection-start-line="31" selection-start-column="27" selection-end-line="31" selection-end-column="27" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/io/File.java"> <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">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="291"> <state relative-caret-position="374">
<caret line="1005" column="19" selection-start-line="1005" selection-start-column="19" selection-end-line="1005" selection-end-column="19" /> <caret line="173" column="44" lean-forward="true" selection-start-line="173" selection-start-column="20" selection-end-line="173" selection-end-column="44" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/sound/Call.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandPojo.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="462"> <state relative-caret-position="462">
<caret line="23" column="11" selection-start-line="23" selection-start-column="11" selection-end-line="23" selection-end-column="11" /> <caret line="29" column="31" lean-forward="true" selection-start-line="29" selection-start-column="31" selection-end-line="29" selection-end-column="31" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/ChangeSound.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingMainTemplate.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="437"> <state relative-caret-position="374">
<caret line="78" column="33" selection-start-line="78" selection-start-column="33" selection-end-line="78" selection-end-column="33" /> <caret line="21" column="5" lean-forward="true" selection-start-line="21" selection-start-column="5" selection-end-line="21" selection-end-column="5" />
</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/SetStateCommand.class"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/playUpdate/PlayUpdateMainTemplate.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374"> <state relative-caret-position="396">
<caret line="24" column="27" selection-start-line="24" selection-start-column="27" selection-end-line="24" selection-end-column="27" /> <caret line="18" lean-forward="true" selection-start-line="18" selection-end-line="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/common/Constants.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingDocument.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="503"> <state relative-caret-position="374">
<caret line="45" column="28" selection-start-line="45" selection-start-column="15" selection-end-line="45" selection-end-column="28" /> <caret line="23" column="1" lean-forward="true" selection-start-line="23" selection-start-column="1" selection-end-line="23" selection-end-column="1" />
</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$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankBotInfo.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-377"> <state relative-caret-position="198">
<caret line="116" column="39" selection-start-line="116" selection-start-column="39" selection-end-line="116" selection-end-column="39" /> <caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Utils.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/playUpdate/PlayUpdateDocument.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2024"> <state relative-caret-position="286">
<caret line="103" column="50" selection-start-line="103" selection-start-column="50" selection-end-line="103" selection-end-column="50" /> <caret line="13" column="48" lean-forward="true" selection-start-line="13" selection-start-column="48" selection-end-line="13" selection-end-column="48" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/playUpdate/PlayUpdatePojo.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="4004"> <state relative-caret-position="235">
<caret line="182" column="51" selection-start-line="182" selection-start-column="51" selection-end-line="182" selection-end-column="51" /> <caret line="19" column="29" lean-forward="true" selection-start-line="19" selection-start-column="29" selection-end-line="19" selection-end-column="29" />
<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/service/DplBotService.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/nlu/Intent.class">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="7854"> <state relative-caret-position="270">
<caret line="716" selection-start-line="716" selection-end-line="716" /> <caret line="48" column="29" selection-start-line="48" selection-start-column="11" selection-end-line="48" selection-end-column="29" />
<folding>
<element signature="e#1469#1470#0" expanded="true" />
<element signature="e#1515#1516#0" expanded="true" />
</folding>
</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/nlu/ConfirmationStatus.class">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="291"> <state relative-caret-position="88">
<caret line="214" column="23" selection-start-line="214" selection-start-column="23" selection-end-line="214" selection-end-column="23" /> <caret line="7" column="12" selection-start-line="7" selection-start-column="12" selection-end-line="7" selection-end-column="12" />
</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/resources/static/json/playUpdate.json">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="370"> <state relative-caret-position="308">
<caret line="549" column="45" selection-start-line="549" selection-start-column="45" selection-end-line="549" selection-end-column="45" /> <caret line="14" column="11" selection-start-line="14" selection-start-column="11" selection-end-line="14" selection-end-column="11" />
<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$/tts_service/src/main/resources/tts.properties"> <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="308"> <state relative-caret-position="594">
<caret line="14" column="22" selection-start-line="14" selection-start-column="22" selection-end-line="14" selection-end-column="22" /> <caret line="27" column="31" selection-start-line="27" selection-start-column="31" selection-end-line="27" selection-end-column="31" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFavoriteTB.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="366"> <state relative-caret-position="261">
<caret line="199" column="36" selection-start-line="199" selection-start-column="25" selection-end-line="199" selection-end-column="36" /> <caret line="21" column="13" selection-start-line="21" selection-start-column="13" selection-end-line="21" selection-end-column="13" />
<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="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Runtime.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="327"> <state relative-caret-position="345">
<caret line="616" column="42" selection-start-line="616" selection-start-column="34" selection-end-line="616" selection-end-column="42" /> <caret line="28" selection-start-line="28" selection-end-line="28" />
<folding>
<element signature="e#1272#1273#0" expanded="true" />
<element signature="e#1309#1310#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/ProcessBuilder.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-641"> <state relative-caret-position="261">
<caret line="179" column="32" selection-start-line="179" selection-start-column="25" selection-end-line="179" selection-end-column="32" /> <caret line="60" column="47" selection-start-line="60" selection-start-column="47" selection-end-line="60" selection-end-column="47" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.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="132"> <state relative-caret-position="525">
<caret line="53" column="75" selection-start-line="53" selection-start-column="75" selection-end-line="53" selection-end-column="75" /> <caret line="66" column="55" selection-start-line="66" selection-start-column="55" selection-end-line="66" selection-end-column="55" />
</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/DplBotService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="88"> <state relative-caret-position="157">
<caret line="4" column="28" lean-forward="true" selection-start-line="4" selection-start-column="28" selection-end-line="4" selection-end-column="28" /> <caret line="1345" column="23" selection-start-line="1345" selection-start-column="23" selection-end-line="1345" selection-end-column="23" />
</state> </state>
</provider> </provider>
</entry> </entry>
......
...@@ -56,6 +56,7 @@ public class CallPython { ...@@ -56,6 +56,7 @@ public class CallPython {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
Process process = null; Process process = null;
try { try {
//long startTime = System.currentTimeMillis();
process = processBuilder.start(); process = processBuilder.start();
process.waitFor(); process.waitFor();
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream())); BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
...@@ -72,8 +73,11 @@ public class CallPython { ...@@ -72,8 +73,11 @@ public class CallPython {
while ((line = reader.readLine()) != null) { while ((line = reader.readLine()) != null) {
builder.append(line); builder.append(line);
} }
if (builder.length() != 0){
log.info("sox返回信息:{}", builder.toString()); log.info("sox返回信息:{}", builder.toString());
} }
}
//log.info(Thread.currentThread().getName()+"耗时:"+(System.currentTimeMillis()-startTime));
} catch (IOException e) { } catch (IOException e) {
log.info("Error while running Sox. {}",e.getMessage()); log.info("Error while running Sox. {}",e.getMessage());
return "0"; return "0";
...@@ -91,6 +95,7 @@ public class CallPython { ...@@ -91,6 +95,7 @@ public class CallPython {
InputStream inputStream = null; InputStream inputStream = null;
InputStream errorStream = null; InputStream errorStream = null;
try { try {
long startTime = System.currentTimeMillis();
Process process = Runtime.getRuntime().exec(arg); Process process = Runtime.getRuntime().exec(arg);
inputStream = process.getInputStream(); inputStream = process.getInputStream();
...@@ -137,6 +142,7 @@ public class CallPython { ...@@ -137,6 +142,7 @@ public class CallPython {
// } // }
// }).start(); // }).start();
process.waitFor(); process.waitFor();
log.info(Thread.currentThread().getName()+"耗时:"+(System.currentTimeMillis()-startTime));
process.destroy(); process.destroy();
} catch (Exception e) { } catch (Exception e) {
log.error("调用sox出错:{}",e.toString()); log.error("调用sox出错:{}",e.toString());
...@@ -187,7 +193,9 @@ public class CallPython { ...@@ -187,7 +193,9 @@ public class CallPython {
log.error("读取Process error流出错:{}",e.toString()); log.error("读取Process error流出错:{}",e.toString());
} }
}).start(); }).start();
long startTime = System.currentTimeMillis();
process.waitFor(); process.waitFor();
log.info(Thread.currentThread().getName()+"耗时:"+(System.currentTimeMillis()-startTime));
process.destroy(); process.destroy();
} catch (Exception e) { } catch (Exception e) {
try { try {
...@@ -200,9 +208,9 @@ public class CallPython { ...@@ -200,9 +208,9 @@ public class CallPython {
log.error("关闭Process的流出错:{}",e1.toString()); log.error("关闭Process的流出错:{}",e1.toString());
} }
} }
if (successResult.length() != 0) return successResult.toString(); if (successResult.length() == 0) return successResult.toString();
else { else {
log.error("打印Process的错误流信息:{}", failResult.toString()); log.error("打印Process的错误流信息:fsfs-{}-sfs, successResult:sfd-{}-sgs", failResult.toString(), successResult.toString());
return null; return null;
} }
} }
...@@ -259,4 +267,15 @@ public class CallPython { ...@@ -259,4 +267,15 @@ public class CallPython {
} }
} }
public static void main(String[] args) {
int i = 7;
// while (i-- >= 0) {
// new Thread(() -> processUtilInJava("sleep 3")).start();
// }
// i = 7;
while (i-- >= 0) {
new Thread(() -> execute("sleep 3")).start();
}
}
} }
...@@ -71,4 +71,14 @@ public class TTSController { ...@@ -71,4 +71,14 @@ public class TTSController {
public ChatBotResponse chatbot(@RequestBody ChatBotRequest request) { public ChatBotResponse chatbot(@RequestBody ChatBotRequest request) {
return ttService.chatbot(request); return ttService.chatbot(request);
} }
@PostMapping("/api/update_db_var")
public void updateCache(HttpServletResponse response) {
try {
ttService.updateCache();
} catch (Exception e) {
response.setStatus(555);
}
response.setStatus(200);
}
} }
...@@ -171,6 +171,7 @@ public class TTService { ...@@ -171,6 +171,7 @@ public class TTService {
for (TextInfo info : infoList) { for (TextInfo info : infoList) {
// person没有值或是不存在则赋予init_person // person没有值或是不存在则赋予init_person
String person = info.getPerson(); String person = info.getPerson();
//log.info("person:{}", person);
// text 字段不为空 // text 字段不为空
String text = info.getText(); String text = info.getText();
...@@ -678,4 +679,8 @@ public class TTService { ...@@ -678,4 +679,8 @@ public class TTService {
} }
return new ResponseCodeWithData(555, "调用第三方生成wav文件失败"); return new ResponseCodeWithData(555, "调用第三方生成wav文件失败");
} }
public void updateCache() throws Exception {
initialize.afterPropertiesSet();
}
} }
...@@ -19,16 +19,16 @@ spring: ...@@ -19,16 +19,16 @@ spring:
ansi: ansi:
enabled: detect enabled: detect
logging: logging:
#path: /home/ubuntu/project/tts/logs path: /home/ubuntu/project/tts/logs
path: /root/GameEditor/mqw/project/ttsTest/logs #path: /root/GameEditor/mqw/project/ttsTest/logs
level: level:
root: info root: info
server: server:
#port: 9663 port: 9663
port: 8188 #port: 8188
tomcat: tomcat:
accesslog: accesslog:
enabled: true enabled: true
pattern: '%h %l %u %t "%r" %s %b bytes %D ms' pattern: '%h %l %u %t "%r" %s %b bytes %D ms'
#directory: /home/ubuntu/project/tts/tomcat directory: /home/ubuntu/project/tts/tomcat
directory: /root/GameEditor/mqw/project/ttsTest/tomcat #directory: /root/GameEditor/mqw/project/ttsTest/tomcat
\ No newline at end of file \ No newline at end of file
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://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/TTS-service/audio
audio_dir=/root/GameEditor/mqw/project/tts/audio #audio_dir=/root/GameEditor/mqw/project/tts/audio
online_sever=http://dev01.centaurstech.com online_sever=http://dev01.centaurstech.com
offline_server=http://dev01.centaurstech.com:9001 offline_server=http://dev01.centaurstech.com:9001
#offline_server=http://aliyun-hz1.chewrobot.com:9001 #offline_server=http://aliyun-hz1.chewrobot.com:9001
......
...@@ -40,10 +40,11 @@ public interface Constants { ...@@ -40,10 +40,11 @@ public interface Constants {
String UN_COLLEC_ID = "colleUn"; String UN_COLLEC_ID = "colleUn";
String COLLECT_IMAGE_ID = "collectImage"; String COLLECT_IMAGE_ID = "collectImage";
String COLLECT_TEXT_ID = "collectText"; String COLLECT_TEXT_ID = "collectText";
String BACK_TRACE = "trace";
String PRE_CATEGORY = "categ"; String PRE_CATEGORY = "categ";
String CLICK_PATTERN = "[{\"type\": \"SendEvent\",\"componentId\":\"%s\"}]"; String CLICK_PATTERN = "[{type: SendEvent,componentId:%s}]";
String COLLECTED_IMG_URL = "https://aliyun-hz1.chewrobot.com/xiaoduhome/image/collec.png"; 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"; String UN_COLLECTED_IMG_URL = "https://aliyun-hz1.chewrobot.com/xiaoduhome/image/uncollec.png";
...@@ -60,6 +61,10 @@ public interface Constants { ...@@ -60,6 +61,10 @@ public interface Constants {
String UN_COLLEC = "收藏"; String UN_COLLEC = "收藏";
String CHAT_COLLECT = "我要收藏"; String CHAT_COLLECT = "我要收藏";
String CHAT_UN_COLLECT = "取消收藏"; String CHAT_UN_COLLECT = "取消收藏";
String COLLECT_BOT_WORD = "已为您收藏该作品";
String COLLECT_BOT_WORD_MG = "已将%s加入您的收藏";
String UN_COLLECT_BOT_WORD = "已将该作品移出您的收藏列表";
String UN_COLLECT_BOT_WORD_MG = "已将%s移出您的收藏列表";
} }
interface CATEGORY_IMG_URL { interface CATEGORY_IMG_URL {
...@@ -97,11 +102,14 @@ public interface Constants { ...@@ -97,11 +102,14 @@ public interface Constants {
} }
interface ErrorMsg { interface ErrorMsg {
String SORRY_UNCATCH = "我好意思我没听清,请再说一遍吧"; String SORRY_UNCATCH = "不好意思我没听清,请再说一遍吧";
String INTERNAL_ERROR = "其他DuerOS系统错误"; String INTERNAL_ERROR = "其他DuerOS系统错误";
String INVALID_RESPONSE = "技能返回了无效的响应,可能技能响应数据量超过24KB,或是技能在request的dialogState为COMPLETED时仍然发送Dialog.Delegate指令等"; String INVALID_RESPONSE = "技能返回了无效的响应,可能技能响应数据量超过24KB,或是技能在request的dialogState为COMPLETED时仍然发送Dialog.Delegate指令等";
String DEVICE_COMMUNICATION_ERROR = "DuerOS与端通信异常"; String DEVICE_COMMUNICATION_ERROR = "DuerOS与端通信异常";
String COLLECT_FAIL = "你可以在作品介绍页收藏该作品";
String UN_COLLECT_FAIL = "你可以在该作品的介绍页进行取消操作";
String INTERFACE_ERROR = "终端接口请求出错"; String INTERFACE_ERROR = "终端接口请求出错";
String HTTP_CONNECTION_CLOSE_FAILED = "与终端的链接关闭错误"; String HTTP_CONNECTION_CLOSE_FAILED = "与终端的链接关闭错误";
} }
......
package ai.qiwu.com.xiaoduhome.common; package ai.qiwu.com.xiaoduhome.common;
import lombok.extern.slf4j.Slf4j;
import okhttp3.*; import okhttp3.*;
import org.jetbrains.annotations.NotNull;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.net.SocketTimeoutException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
import java.util.Map; import java.util.Map;
import java.util.concurrent.TimeUnit;
/** /**
* @author 苗权威 * @author 苗权威
* @dateTime 19-7-18 上午10:54 * @dateTime 19-7-18 上午10:54
*/ */
@Slf4j
public class OkHttp3Utils { public class OkHttp3Utils {
private static OkHttpClient client = new OkHttpClient(); private static final OkHttpClient client = new OkHttpClient.Builder()
.connectTimeout(15, TimeUnit.SECONDS)
.readTimeout(15, TimeUnit.SECONDS)
.build();
public static String doGet(String url) throws IOException { public static String doGet(String url) throws IOException {
return doGet(url, new HashMap<>()); return doGet(url, new HashMap<>());
...@@ -53,19 +61,49 @@ public class OkHttp3Utils { ...@@ -53,19 +61,49 @@ public class OkHttp3Utils {
return doPost(url , new HashMap<>(), new HashMap<>(), file); return doPost(url , new HashMap<>(), new HashMap<>(), file);
} }
public static String doPostJsonStr(String url, Map<String, String> headers, String requestJsonStr) throws IOException { public static String doPostJsonStr(String url, String requestJsonStr) throws IOException {
Request.Builder builder = new Request.Builder(); Request.Builder builder = new Request.Builder();
Request request = builder.url(url).build(); Request request = builder.url(url).build();
Headers.Builder headBuilder = request.headers().newBuilder(); Headers.Builder headBuilder = request.headers().newBuilder();
headBuilder.add("Content-Type", "application/json;charset=utf-8");
Iterator<Map.Entry<String, String>> headIterator = headers.entrySet().iterator(); // Iterator<Map.Entry<String, String>> headIterator = headers.entrySet().iterator();
headIterator.forEachRemaining(e -> headBuilder.add(e.getKey(), e.getValue())); // headIterator.forEachRemaining(e -> headBuilder.add(e.getKey(), e.getValue()));
builder.headers(headBuilder.build()).post(RequestBody.create(MediaType.parse("application/json; charset=utf-8"), requestJsonStr)); builder.headers(headBuilder.build()).post(RequestBody.create(MediaType.parse("application/json; charset=utf-8"), requestJsonStr));
try (Response response = client.newCall(builder.build()).execute()){ try (Response response = client.newCall(builder.build()).execute()){
return response.body().string(); return response.body().string();
}catch (SocketTimeoutException e) {
log.error("捕获到SocketTimeoutException:{}", e.toString());
client.dispatcher().cancelAll();
client.connectionPool().evictAll();
}
return null;
}
public static void backPostAsync(String url, String requestJsonStr) {
Request.Builder builder = new Request.Builder();
// builder.url(url);
// builder.addHeader("Content-Type", "application/json;charset=utf-8");
Request request = builder.url(url).build();
Headers.Builder headBuilder = request.headers().newBuilder();
headBuilder.add("Content-Type", "application/json;charset=utf-8");
//RequestBody requestBody = FormBody.create(MediaType.parse("application/json; charset=utf-8"), requestJsonStr);
builder.post(RequestBody.create(MediaType.parse("application/json; charset=utf-8"), requestJsonStr));
client.newCall(builder.build()).enqueue(new Callback() {
@Override
public void onFailure(@NotNull Call call, @NotNull IOException e) {
log.info("退出失败");
}
@Override
public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
log.info("退出成功");
} }
});
} }
public static String doPost(String url, Map<String, String> headers, Map<String, String> params, File file) throws IOException { public static String doPost(String url, Map<String, String> headers, Map<String, String> params, File file) throws IOException {
......
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 {
}
}
package ai.qiwu.com.xiaoduhome.common.temple;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-24 下午3:11
*/
public interface Agent {
}
package ai.qiwu.com.xiaoduhome.common.temple;
import com.baidu.dueros.data.response.directive.dpl.Document;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* @author 苗权威
* @dateTime 19-8-24 下午5:38
*/
@Getter
@Setter
@ToString
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class CollectHistoryDocument extends Document{
private CollectHistoryMainTemplate mainTemplate;
@JsonIgnore
private String idToken;
}
package ai.qiwu.com.xiaoduhome.common.temple;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.ArrayList;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-24 下午5:42
*/
@Getter
@Setter
@ToString
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class CollectHistoryMainTemplate implements CustomMainTemplateInterface{
private List<String> parameters = new ArrayList<>();
private List<CollectHistoryPagePojo> items;
public CollectHistoryMainTemplate() {
this.parameters.add("payload");
this.items = new ArrayList<>();
}
}
package ai.qiwu.com.xiaoduhome.common.temple;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
import ai.qiwu.com.xiaoduhome.pojo.pageData.HistoryData;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-24 下午4:57
*/
@Getter
@Setter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class CollectHistoryPagePojo {
private String type;
private String position;
private String left;
private String width;
private String height;
private String src;
private String top;
private String headerImage;
private String headerTitle;
@JsonProperty("margin-left")
private String marginLeft;
@JsonProperty("margin-top")
private String marginTop;
private String padding;
private List<CollectHistoryPagePojo> items;
private String direction;
@JsonProperty("font-size")
private String fontSize;
@JsonProperty("flex-direction")
private String flexDirection;
private String text;
@JsonProperty("border-radius")
private String borderRadius;
private List<HistoryData> data;
@JsonProperty("text-overflow")
private String textOverflow;
@JsonProperty("max-lines")
private Integer maxLines;
private List<Event> onClick;
}
package ai.qiwu.com.xiaoduhome.common.temple;
/**
* @author 苗权威
* @dateTime 19-8-24 下午5:41
*/
public interface CustomMainTemplateInterface {
}
package ai.qiwu.com.xiaoduhome.common.temple;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Item;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-24 下午2:54
*/
@Getter
@Setter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class FrameTemple implements Agent{
private String type;
@JsonProperty("flex-direction")
private String flexDirection;
private List<FrameTemple> items;
private String text;
@JsonProperty("font-size")
private String fontSize;
@JsonProperty("margin-left")
private String marginLeft;
@JsonProperty("margin-bottom")
private String marginBottom;
private String width;
private String height;
@JsonProperty("border-width")
private String borderWidth;
@JsonProperty("border-top-left-radius")
private String borderTopLeftRadius;
@JsonProperty("border-top-right-radius")
private String borderTopRightRadius;
@JsonProperty("border-bottom-right-radius")
private String borderBottomRightRadius;
@JsonProperty("padding-vertical")
private String paddingVertical;
@JsonProperty("padding-horizontal")
private String paddingHorizontal;
@JsonProperty("border-color")
private String borderColor;
@JsonProperty("background-color")
private String backgroundColor;
private String color;
}
package ai.qiwu.com.xiaoduhome.common.temple;
import ai.qiwu.com.xiaoduhome.common.BaseHolder;
import ai.qiwu.com.xiaoduhome.common.Constants;
import ai.qiwu.com.xiaoduhome.common.temple.playUpdate.PlayUpdateDocument;
import ai.qiwu.com.xiaoduhome.common.temple.playUpdate.PlayUpdatePojo;
import ai.qiwu.com.xiaoduhome.common.temple.rank.RankBotInfo;
import ai.qiwu.com.xiaoduhome.common.temple.rank.RankingDocument;
import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommandBotInfo;
import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommandDocument;
import ai.qiwu.com.xiaoduhome.entity.primary.GameProjectTb;
import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuHistoryBotIdTime;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Item;
import ai.qiwu.com.xiaoduhome.pojo.dpl.MyDocument;
import ai.qiwu.com.xiaoduhome.pojo.pageData.HistoryData;
import ai.qiwu.com.xiaoduhome.repository.primary.AppFavoriteTBRepository;
import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuHistoryBotTimeRepository;
import ai.qiwu.com.xiaoduhome.service.ScheduleService;
import com.alibaba.fastjson.JSON;
import com.baidu.dueros.data.response.directive.dpl.Document;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-24 下午2:03
*/
@Slf4j
@Component
public class TempleUtils {
private static FrameTemple FRAME_RAKKING;
private static FrameTemple FRAME_RECOMMAND;
private static FrameTemple FRAME_CATEGORY;
private static RankingDocument RANKING_DOCUMENT;
static {
FRAME_RAKKING = JSON.parseObject(getDPLTemple("static/json/frame.json"), FrameTemple.class);
FRAME_RAKKING.getItems().get(1).getItems().get(0).setText("小度小度,打开排行榜");
FRAME_RECOMMAND = JSON.parseObject(getDPLTemple("static/json/frame.json"), FrameTemple.class);
FRAME_RECOMMAND.getItems().get(1).getItems().get(0).setText("小度小度,打开推荐");
FRAME_CATEGORY = JSON.parseObject(getDPLTemple("static/json/frame.json"), FrameTemple.class);
FRAME_CATEGORY.getItems().get(1).getItems().get(0).setText("小度小度,打开古风");
}
public static PlayUpdateDocument getPlayUpdate(String audio, String text) {
PlayUpdateDocument document = JSON.parseObject(getDPLTemple("static/json/playUpdate.json"), PlayUpdateDocument.class);
List<PlayUpdatePojo> whole = document.getMainTemplate().getItems().get(0).getItems();
whole.get(0).getItems().get(0).setText(text);
whole.get(1).setSrc(audio);
return document;
}
public static RankingDocument getRanking() {
if (RANKING_DOCUMENT != null) {
return RANKING_DOCUMENT;
}
RANKING_DOCUMENT = JSON.parseObject(getDPLTemple("static/json/ranking.json"), RankingDocument.class);
List<RankBotInfo> datas = new ArrayList<>();
StringBuilder botIds = new StringBuilder();
for (GameProjectTb bot:ScheduleService.getRankingList()) {
botIds.append(bot.getBotAccount()).append(File.separator);
String imgSrc = new StringBuilder(Constants.IMG_PREFIX).append(bot.getBannerImgUrl()).toString();
String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString();
RankBotInfo rankBotInfo = new RankBotInfo(imgSrc, imageId, correctName(bot.getName()));
datas.add(rankBotInfo);
}
if (botIds.length() != 0) {
botIds.deleteCharAt(botIds.length()-1);
String idToken = Base64.getEncoder().encodeToString(botIds.toString().getBytes());
RANKING_DOCUMENT.setRankBotIds(idToken);
}
RANKING_DOCUMENT.getMainTemplate().getItems().get(0).getItems().get(2).getItems().get(0).setData(datas);
return RANKING_DOCUMENT;
}
public static RecommandDocument getRecommend() {
RecommandDocument document = JSON.parseObject(getDPLTemple("static/json/recommand.json"), RecommandDocument.class);
List<RecommandBotInfo> datas = new ArrayList<>();
StringBuilder botIds = new StringBuilder();
for (GameProjectTb bot:ScheduleService.getRecommendList()) {
botIds.append(bot.getBotAccount()).append(File.separator);
String imgSrc = new StringBuilder(Constants.IMG_PREFIX).append(bot.getBannerImgUrl()).toString();
String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString();
RecommandBotInfo recommend = new RecommandBotInfo(imgSrc, imageId, correctName(bot.getName()));
datas.add(recommend);
}
if (botIds.length() != 0) {
botIds.deleteCharAt(botIds.length()-1);
String idToken = Base64.getEncoder().encodeToString(botIds.toString().getBytes());
document.setRecommendIdList(idToken);
}
document.getMainTemplate().getItems().get(0).getItems().get(2).getItems().get(0).setData(datas);
return document;
}
public static CollectHistoryDocument getHistory(String userId) {
CollectHistoryDocument historyDocument = JSON.parseObject(getDPLTemple("static/json/history.json"), CollectHistoryDocument.class);
XiaoDuHistoryBotTimeRepository historyTBRepository = BaseHolder.getBean("xiaoDuHistoryBotTimeRepository");
List<XiaoDuHistoryBotIdTime> historyProInfo = historyTBRepository.getByXiaoduUserId(userId);
ArrayList<HistoryData> projectInfoList = new ArrayList<>();
int i = 1;
final StringBuilder build = new StringBuilder();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
for (XiaoDuHistoryBotIdTime historyInfo: historyProInfo) {
String botAccount = historyInfo.getBotId();
build.append(botAccount).append(File.separator);
OnProductDetail productDetail = ScheduleService.getProductIdDetail().get(botAccount);
String intro = productDetail.getIntro();
if (StringUtils.isBlank(intro)) intro = "作者太懒没写介绍";
String imgUrl = new StringBuilder(Constants.IMG_PREFIX).append(productDetail.getBannerImgUrl()).toString();
String botAccountId = new StringBuilder(Constants.PRE_ENTER_PRODUCT).append(correctName(productDetail.getName())).toString();
String lastTime = sdf.format(new java.sql.Date(historyInfo.getLastTime()));
String name = productDetail.getName();
HistoryData data = new HistoryData(botAccountId, i++, imgUrl, correctName(name), intro);
data.setLastTime(lastTime);
projectInfoList.add(data);
}
String idToken;
if (build.length() != 0) {
build.deleteCharAt(build.length()-1);
idToken = Base64.getEncoder().encodeToString(build.toString().getBytes());
historyDocument.setIdToken(idToken);
}
CollectHistoryMainTemplate collectHistoryMainTemplate = historyDocument.getMainTemplate();
collectHistoryMainTemplate.getItems().get(2).getItems().get(0).setData(projectInfoList);
return historyDocument;
}
public static CollectHistoryDocument getCollectPage(Integer userId) {
CollectHistoryDocument collectHistoryDocument = JSON.parseObject(getDPLTemple("static/json/collectPage.json"), CollectHistoryDocument.class);
AppFavoriteTBRepository favorite = BaseHolder.getBean("appFavoriteTBRepository");
List<String> favoriteProducts = favorite.getFavoriteBotIds(userId);
ArrayList<HistoryData> projectInfoList = new ArrayList<>();
int i = 1;
log.info("id list:{}", favoriteProducts);
final StringBuilder build = new StringBuilder();
for (String botAccount :favoriteProducts) {
build.append(botAccount).append(File.separator);
OnProductDetail productDetail = ScheduleService.getProductIdDetail().get(botAccount);
String intro = productDetail.getIntro();
if (StringUtils.isBlank(intro)) intro = "作者太懒没写介绍";
String imgUrl = new StringBuilder(Constants.IMG_PREFIX).append(productDetail.getBannerImgUrl()).toString();
String botAccountId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(correctName(productDetail.getName())).toString();
String name = productDetail.getName();
HistoryData data = new HistoryData(botAccountId, i++, imgUrl, correctName(name), intro);
data.setAuthorName(productDetail.getAuthorName());
projectInfoList.add(data);
}
String idToken;
if (build.length() != 0) {
build.deleteCharAt(build.length()-1);
idToken = Base64.getEncoder().encodeToString(build.toString().getBytes());
collectHistoryDocument.setIdToken(idToken);
}
CollectHistoryMainTemplate collectHistoryMainTemplate = collectHistoryDocument.getMainTemplate();
collectHistoryMainTemplate.getItems().get(2).getItems().get(0).setData(projectInfoList);
return collectHistoryDocument;
}
private static MyDocument buildCollectTemple() {
return JSON.parseObject(getDPLTemple("static/json/collect.json"), MyDocument.class);
}
public static MyDocument getCollectIcon(String componentId, String imgSrc, String txt) {
MyDocument collect = buildCollectTemple();
Item container = collect.getMainTemplate().getItems().get(0);
container.setComponentId(componentId);
container.getOnClick().get(0).setComponentId(componentId);
Item image = container.getItems().get(0);
image.setSrc(imgSrc);
Item text = container.getItems().get(1);
text.setText(txt);
return collect;
}
private static String correctName(String name) {
int brace = name.indexOf("{");
if (brace != -1) name = name.substring(0, brace);
return name;
}
private static String getDPLTemple(String path) {
String temple = null;
try {
temple = getJsonFromName(path);
} catch (IOException e) {
log.error("没有获取到json字符串:{}", e.toString());
}
return temple;
}
private static String getJsonFromName(String filename) throws IOException {
InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(filename);
InputStreamReader reader = new InputStreamReader(inputStream);
char[] buffer = new char[512];
int ln;
StringBuilder builder = new StringBuilder();
while ((ln = reader.read(buffer)) != -1) {
builder.append(buffer, 0, ln);
}
return builder.toString();
}
public static FrameTemple getFrameRakking() {
return FRAME_RAKKING;
}
public static FrameTemple getFrameRecommand() {
return FRAME_RECOMMAND;
}
public static FrameTemple getFrameCategory() {
return FRAME_CATEGORY;
}
public static void main(String[] args) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
System.out.println(sdf.format(new java.sql.Date(1566887509312L)));
}
}
package ai.qiwu.com.xiaoduhome.common.temple;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Data;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Item;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-24 下午1:57
*/
@Getter
@Setter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class collectIcon {
private String type;
private String width;
private String height;
private String src;
@JsonProperty("scale-type")
private String scaleType;
private String text;
@JsonProperty("margin-left")
private String marginLeft;
@JsonProperty("align-items")
private String alignItems;
@JsonProperty("justify-content")
private String justify;
private List<Event> onClick;
private List<Item> items;
@JsonProperty("margin-bottom")
private String marginBo;
private String componentId;
@JsonProperty("margin-top")
private String marginTop;
@JsonProperty("font-size")
private String fontSize;
@JsonProperty("letter-spacing")
private String LetterSpace;
}
package ai.qiwu.com.xiaoduhome.common.temple.playUpdate;
import com.baidu.dueros.data.response.directive.dpl.Document;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
/**
* @author 苗权威
* @dateTime 19-8-28 下午6:39
*/
@Data
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class PlayUpdateDocument extends Document {
private PlayUpdateMainTemplate mainTemplate;
}
package ai.qiwu.com.xiaoduhome.common.temple.playUpdate;
import ai.qiwu.com.xiaoduhome.common.temple.rank.RankingPojo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-28 下午6:38
*/
@Data
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class PlayUpdateMainTemplate {
private List<String> parameters = new ArrayList<>();
private List<PlayUpdatePojo> items;
public PlayUpdateMainTemplate() {
this.parameters.add("payload");
this.items = new ArrayList<>();
}
}
package ai.qiwu.com.xiaoduhome.common.temple.playUpdate;
import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommandBotInfo;
import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommandPojo;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-28 下午6:31
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class PlayUpdatePojo {
private String type;
private String height;
private String width;
private String componentId;
private List<PlayUpdatePojo> items;
private String padding;
private String position;
private String bottom;
private String text;
@JsonProperty("font-size")
private String fontSize;
@JsonProperty("font-style")
private String fontStyle;
private String looping;
private String autoplay;
private String src;
private List<Event> onEnd;
}
package ai.qiwu.com.xiaoduhome.common.temple.rank;
import lombok.Data;
/**
* @author 苗权威
* @dateTime 19-8-27 上午10:35
*/
@Data
public class RankBotInfo {
private String imageSrc;
private String imageId;
private String imageName;
public RankBotInfo(String imageSrc, String imageId, String imageName) {
this.imageSrc = imageSrc;
this.imageId = imageId;
this.imageName = imageName;
}
}
package ai.qiwu.com.xiaoduhome.common.temple.rank;
import com.baidu.dueros.data.response.directive.dpl.Document;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* @author 苗权威
* @dateTime 19-8-27 上午10:23
*/
@Getter
@Setter
@ToString
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class RankingDocument extends Document {
private RankingMainTemplate mainTemplate;
@JsonIgnore
private String rankBotIds;
}
package ai.qiwu.com.xiaoduhome.common.temple.rank;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-27 上午10:21
*/
@Data
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class RankingMainTemplate {
private List<String> parameters = new ArrayList<>();
private List<RankingPojo> items;
public RankingMainTemplate() {
this.parameters.add("payload");
this.items = new ArrayList<>();
}
}
package ai.qiwu.com.xiaoduhome.common.temple.rank;
import ai.qiwu.com.xiaoduhome.common.temple.CollectHistoryPagePojo;
import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommandBotInfo;
import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-27 上午10:13
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class RankingPojo {
private String type;
private String height;
private String width;
private List<RankingPojo> items;
private String position;
private String top;
private String left;
private String src;
private String headerImage;
private String headerTitle;
private Boolean hasBackIcon;
private String componentId;
@JsonProperty("margin-top")
private String marginTop;
private String direction;
@JsonProperty("align-items")
private String alignItems;
@JsonProperty("margin-left")
private String marginLeft;
@JsonProperty("scale-type")
private String scaleType;
@JsonProperty("border-radius")
private String borderRadius;
private List<Event> onClick;
@JsonProperty("font-size")
private String fontSize;
private String text;
private String bottom;
private List<String> hints;
private List<RankBotInfo> data;
}
package ai.qiwu.com.xiaoduhome.common.temple.recommand;
import lombok.Data;
/**
* @author 苗权威
* @dateTime 19-8-27 上午10:52
*/
@Data
public class RecommandBotInfo {
private String imageSrc;
private String imageId;
private String imageName;
public RecommandBotInfo(String imageSrc, String imageId, String imageName) {
this.imageSrc = imageSrc;
this.imageId = imageId;
this.imageName = imageName;
}
}
package ai.qiwu.com.xiaoduhome.common.temple.recommand;
import com.baidu.dueros.data.response.directive.dpl.Document;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* @author 苗权威
* @dateTime 19-8-27 上午10:50
*/
@Getter
@Setter
@ToString
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class RecommandDocument extends Document {
private RecommandMainTemplate mainTemplate;
@JsonIgnore
private String recommendIdList;
}
package ai.qiwu.com.xiaoduhome.common.temple.recommand;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-27 上午10:49
*/
@Data
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class RecommandMainTemplate {
private List<String> parameters = new ArrayList<>();
private List<RecommandPojo> items;
public RecommandMainTemplate() {
this.parameters.add("payload");
this.items = new ArrayList<>();
}
}
package ai.qiwu.com.xiaoduhome.common.temple.recommand;
import ai.qiwu.com.xiaoduhome.common.temple.rank.RankBotInfo;
import ai.qiwu.com.xiaoduhome.common.temple.rank.RankingPojo;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-27 上午10:48
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class RecommandPojo {
private String type;
private String height;
private String width;
private List<RecommandPojo> items;
private String position;
private String top;
private String left;
private String src;
private String headerImage;
private String headerTitle;
private Boolean hasBackIcon;
private String componentId;
@JsonProperty("margin-top")
private String marginTop;
private String direction;
@JsonProperty("align-items")
private String alignItems;
@JsonProperty("margin-left")
private String marginLeft;
@JsonProperty("scale-type")
private String scaleType;
@JsonProperty("border-radius")
private String borderRadius;
private List<Event> onClick;
@JsonProperty("font-size")
private String fontSize;
private String text;
private String bottom;
private List<String> hints;
private List<RecommandBotInfo> data;
}
...@@ -143,7 +143,7 @@ public class Oauth2Controller { ...@@ -143,7 +143,7 @@ public class Oauth2Controller {
*/ */
@RequestMapping("/accessToken") @RequestMapping("/accessToken")
public @ResponseBody TokenDuerosResponse returnTokenToDueros(@RequestParam String grant_type, public @ResponseBody TokenDuerosResponse returnTokenToDueros(@RequestParam String grant_type,
@RequestParam String code, @RequestParam String client_id, @RequestParam(required = false) String code, @RequestParam String client_id,
@RequestParam String client_secret, @RequestParam String redirect_uri) { @RequestParam String client_secret, @RequestParam String redirect_uri) {
log.info("小度请求Token,client_id:{};client_secret:{};redirect_uri:{};code:{}", log.info("小度请求Token,client_id:{};client_secret:{};redirect_uri:{};code:{}",
client_id, client_secret, redirect_uri, code); client_id, client_secret, redirect_uri, code);
......
...@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.io.File; import java.io.File;
import java.util.Map;
/** /**
* @author 苗权威 * @author 苗权威
...@@ -21,6 +22,7 @@ public class XiaoDuHomeController { ...@@ -21,6 +22,7 @@ public class XiaoDuHomeController {
@RequestMapping("/xiaoduhome/chat") @RequestMapping("/xiaoduhome/chat")
public String chat() { public String chat() {
try { try {
log.info("--------------分界线-------------------");
DplBotService service = new DplBotService(Utils.getHttpServletRequest()); DplBotService service = new DplBotService(Utils.getHttpServletRequest());
log.info("请求信息中的attributes:{}", service.getRequest().getSession().getAttributes()); log.info("请求信息中的attributes:{}", service.getRequest().getSession().getAttributes());
//service.disableVerify(); //service.disableVerify();
......
...@@ -35,4 +35,10 @@ public class GameProjectTb { ...@@ -35,4 +35,10 @@ public class GameProjectTb {
@Column(name = "apply_status") @Column(name = "apply_status")
private Integer applyStatus; private Integer applyStatus;
@Column(name = "bot_account")
private String botAccount;
@Column(name = "user_nickname")
private String authorName;
} }
...@@ -43,8 +43,8 @@ public class OnProductDetail { ...@@ -43,8 +43,8 @@ public class OnProductDetail {
@Column(name = "user_nickname") @Column(name = "user_nickname")
private String authorName; private String authorName;
@Column(name = "bot_id") @Column(name = "bot_account")
private Integer botId; private String botAccount;
@Transient @Transient
private List<String> labels; private List<String> labels;
......
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-27 下午5:28
*/
@Entity
@Table(name = "xiaodu_history_tb")
@Data
public class XiaoDuHistoryBotIdTime {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "bot_id")
private String botId;
@Column(name = "last_time")
private Long lastTime;
@Column(name = "xiaodu_user_id")
private String xiaoduUserId;
}
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-26 下午2:19
*/
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "xiaodu_history_tb")
@Data
public class XiaoDuHistoryTB {
@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 = "last_time")
private Long lastTime;
@CreatedDate
@Column(name = "create_time",nullable = false,updatable = false)
private Date createTime;
@Column(name = "update_time")
@LastModifiedDate
private Date updateTime;
}
package ai.qiwu.com.xiaoduhome.pojo;
import com.baidu.dueros.data.response.directive.Directive;
import com.baidu.dueros.model.Response;
import lombok.Data;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author 苗权威
* @dateTime 19-8-28 下午3:22
*/
@Data
public class OverTimeDetail {
private final List<Directive> directives = new ArrayList<>();
private final Map<String, String> attributes = new HashMap<>();
private Response response = new Response();
}
...@@ -13,4 +13,5 @@ public class QiWuResponse { ...@@ -13,4 +13,5 @@ public class QiWuResponse {
private String audio; private String audio;
private String text; private String text;
private String length; private String length;
private String aipioneerUsername;
} }
package ai.qiwu.com.xiaoduhome.pojo.dpl; package ai.qiwu.com.xiaoduhome.pojo.dpl;
import ai.qiwu.com.xiaoduhome.common.temple.Agent;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;
...@@ -18,7 +19,7 @@ import java.util.List; ...@@ -18,7 +19,7 @@ import java.util.List;
@ToString @ToString
@JsonIgnoreProperties(ignoreUnknown = true) @JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class Item { public class Item implements Agent {
private Integer duration; private Integer duration;
private String type; private String type;
private String width; private String width;
...@@ -27,18 +28,19 @@ public class Item { ...@@ -27,18 +28,19 @@ public class Item {
@JsonProperty("scale-type") @JsonProperty("scale-type")
private String scaleType; private String scaleType;
@JsonProperty("border-bottom-right-radius") @JsonProperty("border-bottom-right-radius")
private String borderBrr; private String borderBottomRightRadius;
private Double opacity; private Double opacity;
private String text; private String text;
@JsonProperty("line-height") @JsonProperty("line-height")
private String lineHeight; private String lineHeight;
@JsonProperty("letter-spacing") @JsonProperty("letter-spacing")
private String LetterSpace; private String LetterSpacing;
private String color; private String color;
@JsonProperty("padding-left") @JsonProperty("padding-left")
private String paddingLeft; private String paddingLeft;
@JsonProperty("padding-right") @JsonProperty("padding-right")
private String paddingRight; private String paddingRight;
private String padding;
@JsonProperty("margin-left") @JsonProperty("margin-left")
private String marginLeft; private String marginLeft;
@JsonProperty("margin-right") @JsonProperty("margin-right")
...@@ -46,7 +48,7 @@ public class Item { ...@@ -46,7 +48,7 @@ public class Item {
@JsonProperty("margin-top") @JsonProperty("margin-top")
private String marginTop; private String marginTop;
@JsonProperty("margin-bottom") @JsonProperty("margin-bottom")
private String marginBo; private String marginBottom;
private Boolean looping; private Boolean looping;
private Boolean autoPlay; private Boolean autoPlay;
private String audioType; private String audioType;
...@@ -91,7 +93,9 @@ public class Item { ...@@ -91,7 +93,9 @@ public class Item {
@JsonProperty("align-items") @JsonProperty("align-items")
private String alignItems; private String alignItems;
@JsonProperty("justify-content") @JsonProperty("justify-content")
private String justify; private String justifyContent;
@JsonProperty("text-overflow") @JsonProperty("text-overflow")
private String overflow; private String textOverflow;
private List<Agent> firstItem;
} }
package ai.qiwu.com.xiaoduhome.pojo.dpl; package ai.qiwu.com.xiaoduhome.pojo.dpl;
import ai.qiwu.com.xiaoduhome.common.temple.Agent;
import ai.qiwu.com.xiaoduhome.common.temple.CustomMainTemplateInterface;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import lombok.ToString; import lombok.ToString;
...@@ -14,7 +16,7 @@ import java.util.List; ...@@ -14,7 +16,7 @@ import java.util.List;
@Getter @Getter
@Setter @Setter
@ToString @ToString
public class MyMainTemplate { public class MyMainTemplate implements CustomMainTemplateInterface {
private List<String> parameters = new ArrayList<>(); private List<String> parameters = new ArrayList<>();
private List<Item> items; private List<Item> items;
......
package ai.qiwu.com.xiaoduhome.pojo.pageData;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
/**
* @author 苗权威
* @dateTime 19-8-27 下午6:02
*/
@Data
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class HistoryData {
private String botAccountId;
private Integer collectPageLeftNum;
private String bannerImgUrl;
private String name;
private String intro;
private String lastTime;
private String authorName;
public HistoryData() {
}
public HistoryData(String botAccountId, Integer collectPageLeftNum,
String bannerImgUrl, String name, String intro) {
this.botAccountId = botAccountId;
this.collectPageLeftNum = collectPageLeftNum;
this.bannerImgUrl = bannerImgUrl;
this.name = name;
this.intro = intro;
}
}
...@@ -7,6 +7,8 @@ import org.springframework.data.jpa.repository.Query; ...@@ -7,6 +7,8 @@ import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/** /**
* @author 苗权威 * @author 苗权威
* @dateTime 19-8-21 下午4:04 * @dateTime 19-8-21 下午4:04
...@@ -31,4 +33,10 @@ public interface AppFavoriteTBRepository extends JpaRepository<AppFavoriteTB, In ...@@ -31,4 +33,10 @@ public interface AppFavoriteTBRepository extends JpaRepository<AppFavoriteTB, In
@Transactional @Transactional
void deleteByBotIdAndUserId(String botId, Integer userId); void deleteByBotIdAndUserId(String botId, Integer userId);
@Query(value="SELECT bot_username from app_favorite_tb where user_id=?1", nativeQuery = true)
List<String> getFavoriteBotIds(Integer userId);
@Override
<S extends AppFavoriteTB> long count(Example<S> example);
} }
...@@ -17,9 +17,11 @@ public interface GameProjectTbRepository extends JpaRepository<GameProjectTb, In ...@@ -17,9 +17,11 @@ public interface GameProjectTbRepository extends JpaRepository<GameProjectTb, In
List<GameProjectTb> findFirst15ByApplyStatusOrderByWatchDesc(Integer applyStatus); List<GameProjectTb> findFirst15ByApplyStatusOrderByWatchDesc(Integer applyStatus);
@Query(value = "select id,intro,name,watch,banner_img_url,apply_status from game_project_tb where apply_status = 1 and id >= (select floor(RAND()*(select MAX(id) from game_project_tb))) order by id limit 10", nativeQuery = true) @Query(value = "select id,intro,name,watch,banner_img_url,apply_status,bot_account,user_nickname from game_project_tb where apply_status = 1 and id >= (select floor(RAND()*(select MAX(id) from game_project_tb))) order by id limit 10", nativeQuery = true)
List<GameProjectTb> recommendList(); List<GameProjectTb> recommendList();
@Query(value = "select p.id,p.intro,p.name,p.watch,p.banner_img_url,p.apply_status from game_project_tb as p,game_project_label_tb as l where l.name= :category and p.id = l.project_id and p.apply_status=1", nativeQuery = true) @Query(value = "select p.id,p.intro,p.name,p.watch,p.banner_img_url,p.apply_status,p.bot_account,p.user_nickname from game_project_tb as p,game_project_label_tb as l where l.name= :category and p.id = l.project_id and p.apply_status=1", nativeQuery = true)
List<GameProjectTb> categoryProject(@Param("category") String category); List<GameProjectTb> categoryProject(@Param("category") String category);
GameProjectTb getByBotAccount(String botAccount);
} }
package ai.qiwu.com.xiaoduhome.repository.secondary;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuHistoryBotIdTime;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-27 下午5:30
*/
public interface XiaoDuHistoryBotTimeRepository extends JpaRepository<XiaoDuHistoryBotIdTime, Integer> {
List<XiaoDuHistoryBotIdTime> getByXiaoduUserId(String xiaoduUserId);
}
package ai.qiwu.com.xiaoduhome.repository.secondary;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuHistoryTB;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-26 下午2:21
*/
public interface XiaoDuHistoryTBRepository extends JpaRepository<XiaoDuHistoryTB, Integer> {
@Query(value = "SELECT bot_id FROM xiaodu_history_tb WHERE xiaodu_user_id=?1 ORDER BY last_time LIMIT 15", nativeQuery = true)
List<String> getHistory(String xiaoduUserId);
@Query(value = "SELECT DISTINCT xiaodu_user_id FROM xiaodu_history_tb", nativeQuery = true)
List<String> getAllUser();
@Transactional
@Query(value = "delete from xiaodu_history_tb where xiaodu_user_id=?1 and last_time < (select last_time from xiaodu_history_tb where xiaodu_user_id=?1 order by last_time limit 14,1)", nativeQuery = true)
void deleteOverTime(String userId);
@Transactional
@Query(value = "delete from xiaodu_history_tb where last_time <?1", nativeQuery = true)
void deletePasted(Long boundTime);
@Transactional
@Override
<S extends XiaoDuHistoryTB> S save(S s);
XiaoDuHistoryTB getByXiaoduUserIdAndBotId(String xiaoduUserId, String botId);
}
...@@ -9,7 +9,6 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -9,7 +9,6 @@ import org.springframework.transaction.annotation.Transactional;
* @author 苗权威 * @author 苗权威
* @dateTime 19-8-22 下午4:28 * @dateTime 19-8-22 下午4:28
*/ */
@Repository(value = "xiaoDuOrderTBIdRepository")
public interface XiaoDuOrderTBIdRepository extends JpaRepository<XiaoDuOrderIdTB, Integer> { public interface XiaoDuOrderTBIdRepository extends JpaRepository<XiaoDuOrderIdTB, Integer> {
XiaoDuOrderIdTB getByXiaoduUserIdAndBotIdAndUnitPrice(String xiaoduUserId, String botId, Integer unitPrice); XiaoDuOrderIdTB getByXiaoduUserIdAndBotIdAndUnitPrice(String xiaoduUserId, String botId, Integer unitPrice);
......
...@@ -10,7 +10,6 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -10,7 +10,6 @@ import org.springframework.transaction.annotation.Transactional;
* @author 苗权威 * @author 苗权威
* @dateTime 19-8-22 下午3:59 * @dateTime 19-8-22 下午3:59
*/ */
@Repository(value = "xiaoDuOrderTbRepository")
public interface XiaoDuOrderTbRepository extends JpaRepository<XiaoDuOrderTB, Integer> { public interface XiaoDuOrderTbRepository extends JpaRepository<XiaoDuOrderTB, Integer> {
@Override @Override
<S extends XiaoDuOrderTB> boolean exists(Example<S> example); <S extends XiaoDuOrderTB> boolean exists(Example<S> example);
......
package ai.qiwu.com.xiaoduhome.service; package ai.qiwu.com.xiaoduhome.service;
import ai.qiwu.com.xiaoduhome.common.*; import ai.qiwu.com.xiaoduhome.common.*;
import ai.qiwu.com.xiaoduhome.common.temple.Agent;
import ai.qiwu.com.xiaoduhome.common.temple.CollectHistoryDocument;
import ai.qiwu.com.xiaoduhome.common.temple.TempleUtils;
import ai.qiwu.com.xiaoduhome.common.temple.rank.RankingDocument;
import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommandDocument;
import ai.qiwu.com.xiaoduhome.entity.primary.*; import ai.qiwu.com.xiaoduhome.entity.primary.*;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuHistoryTB;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderTB; import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderTB;
import ai.qiwu.com.xiaoduhome.pojo.*; import ai.qiwu.com.xiaoduhome.pojo.*;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Data; import ai.qiwu.com.xiaoduhome.pojo.dpl.Data;
...@@ -10,17 +16,21 @@ import ai.qiwu.com.xiaoduhome.pojo.dpl.MyDocument; ...@@ -10,17 +16,21 @@ import ai.qiwu.com.xiaoduhome.pojo.dpl.MyDocument;
import ai.qiwu.com.xiaoduhome.repository.primary.AppFavoriteTBRepository; import ai.qiwu.com.xiaoduhome.repository.primary.AppFavoriteTBRepository;
import ai.qiwu.com.xiaoduhome.repository.primary.AppFlowerTBRepository; import ai.qiwu.com.xiaoduhome.repository.primary.AppFlowerTBRepository;
import ai.qiwu.com.xiaoduhome.repository.primary.AppFlowerTBTintRepository; import ai.qiwu.com.xiaoduhome.repository.primary.AppFlowerTBTintRepository;
import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuHistoryTBRepository;
import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuOrderTbRepository; import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuOrderTbRepository;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.baidu.dueros.bot.BaseBot; import com.baidu.dueros.bot.BaseBot;
import com.baidu.dueros.data.request.IntentRequest; import com.baidu.dueros.data.request.IntentRequest;
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.SessionEndedRequest;
import com.baidu.dueros.data.request.buy.event.BuyEvent; import com.baidu.dueros.data.request.buy.event.BuyEvent;
import com.baidu.dueros.data.request.events.LinkAccountSucceededEvent; import com.baidu.dueros.data.request.events.LinkAccountSucceededEvent;
import com.baidu.dueros.data.response.OutputSpeech; import com.baidu.dueros.data.response.OutputSpeech;
import com.baidu.dueros.data.response.card.Card; import com.baidu.dueros.data.response.card.Card;
import com.baidu.dueros.data.response.card.LinkAccountCard; import com.baidu.dueros.data.response.card.LinkAccountCard;
import com.baidu.dueros.data.response.directive.Directive;
import com.baidu.dueros.data.response.directive.ElicitSlot;
import com.baidu.dueros.data.response.directive.display.Hint; 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.display.PushStack;
import com.baidu.dueros.data.response.directive.dpl.ExecuteCommands; import com.baidu.dueros.data.response.directive.dpl.ExecuteCommands;
...@@ -29,19 +39,21 @@ import com.baidu.dueros.data.response.directive.dpl.commands.*; ...@@ -29,19 +39,21 @@ 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.data.response.directive.pay.Buy;
import com.baidu.dueros.model.Response; import com.baidu.dueros.model.Response;
import com.baidu.dueros.nlu.ConfirmationStatus;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.data.domain.Example; 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.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.*;
import static ai.qiwu.com.xiaoduhome.common.Constants.CATEGORY_IMG_URL.*; 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.DPL_COMPONENT_ID.*;
import static ai.qiwu.com.xiaoduhome.common.Constants.ErrorMsg.*;
import static ai.qiwu.com.xiaoduhome.common.Constants.LOAD_INTRO; 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.PRODUCT_INTRO.*;
import static ai.qiwu.com.xiaoduhome.common.Constants.REWARD_FLOWER; import static ai.qiwu.com.xiaoduhome.common.Constants.REWARD_FLOWER;
...@@ -69,17 +81,33 @@ public class DplBotService extends BaseBot { ...@@ -69,17 +81,33 @@ public class DplBotService extends BaseBot {
private static final Item CATEGORY_PROD_LIST; private static final Item CATEGORY_PROD_LIST;
private static final Item CATEGORY_PROD_HEAD; private static final Item CATEGORY_PROD_HEAD;
private static final int CORE = Runtime.getRuntime().availableProcessors();
private static final ThreadPoolExecutor POOL = new ThreadPoolExecutor(CORE+1, 1500,
2500, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(CORE), new ThreadPoolExecutor.CallerRunsPolicy());
private static final ConcurrentHashMap<String, String> DU_ID_2_US_ID; private static final ConcurrentHashMap<String, String> DU_ID_2_US_ID;
private static final String[] PRODUCT_INFO_HINTS = {"打开下一个","打开推荐作品","收藏作品","打开排行榜"}; private static final ConcurrentHashMap<String, OverTimeDetail> LAST_OUTTIME_RESULT = new ConcurrentHashMap<>();
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/onLunch2.json"), MyDocument.class); LOAD_DOCUMENT = JSON.parseObject(getDPLTemple("static/json/onLunch2.json"), MyDocument.class);
List<Item> thirdRow = LOAD_DOCUMENT.getMainTemplate().getItems().get(1).getItems().get(1).getItems(); List<Item> thirdRow = LOAD_DOCUMENT.getMainTemplate().getItems().get(1).getItems().get(1).getItems();
List<Agent> l1 = new ArrayList<>();
l1.add(TempleUtils.getFrameRakking());
thirdRow.get(0).setFirstItem(l1);
thirdRow.get(0).getItems().get(0).setData(buildDataList(ScheduleService.RANKING_LIST)); thirdRow.get(0).getItems().get(0).setData(buildDataList(ScheduleService.RANKING_LIST));
List<Agent> l2 = new ArrayList<>();
l2.add(TempleUtils.getFrameRecommand());
thirdRow.get(1).setFirstItem(l2);
thirdRow.get(1).getItems().get(0).setData(buildDataList(ScheduleService.RECOMMEND_LIST)); thirdRow.get(1).getItems().get(0).setData(buildDataList(ScheduleService.RECOMMEND_LIST));
List<Agent> l3 = new ArrayList<>();
l3.add(TempleUtils.getFrameCategory());
thirdRow.get(2).setFirstItem(l3);
thirdRow.get(2).getItems().get(0).setData(buildCategoryDataList()); thirdRow.get(2).getItems().get(0).setData(buildCategoryDataList());
CATEGORY_PROD = JSON.parseObject(getDPLTemple("static/json/categoryPro.json"), MyDocument.class); CATEGORY_PROD = JSON.parseObject(getDPLTemple("static/json/categoryPro.json"), MyDocument.class);
List<Item> container = CATEGORY_PROD.getMainTemplate().getItems().get(0).getItems(); List<Item> container = CATEGORY_PROD.getMainTemplate().getItems().get(0).getItems();
...@@ -88,7 +116,6 @@ public class DplBotService extends BaseBot { ...@@ -88,7 +116,6 @@ public class DplBotService extends BaseBot {
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); FIRST_PAGE = JSON.parseObject(getDPLTemple("static/json/firstPage.json"), MyDocument.class);
DU_ID_2_US_ID = new ConcurrentHashMap<>(); 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 {
...@@ -105,40 +132,206 @@ public class DplBotService extends BaseBot { ...@@ -105,40 +132,206 @@ public class DplBotService extends BaseBot {
@Override @Override
protected Response onInent(IntentRequest intentRequest) { protected Response onInent(IntentRequest intentRequest) {
if ("load".equals(getIntent().getName())) { //
return load(); // final String userId = getCustomerId();
} // String intentName = getIntent().getName();
String userId = getCustomerId(); // log.info("Intent name:{}",intentName);
Query query = intentRequest.getQuery(); // if ("load".equals(intentName)) {
String userWord = null; // return load();
if (query != null) userWord = query.getOriginal(); // } else if ("openCollect".equals(intentName)) {
if (userWord == null){ // if (getAccessToken() == null) {
log.info("小度没有传来任何话语"); // OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, "该功能需要登录,请说小度小度,登录");
return buildErrorResponse(Constants.ErrorMsg.SORRY_UNCATCH); // return new Response(outputSpeech);
// } else {
// String appUserId = getSessionAttribute("userId");
// if (appUserId == null) {
// try {
// appUserId = getUserIdByToken(getAccessToken());
// } catch (IOException e) {
// log.error("打开收藏页时获取用户的郊游天下端id出错:{}", e.toString());
// OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, SORRY_UNCATCH);
// return new Response(outputSpeech);
// }
// if (appUserId == null) {
// OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, SORRY_UNCATCH);
// return new Response(outputSpeech);
// }
// }
// CollectHistoryDocument document = TempleUtils.getCollectPage(Integer.parseInt(appUserId));
// RenderDocument render = new RenderDocument(document);
// this.addDirective(render);
// this.setSessionAttribute(PRE_COLLE,document.getIdToken());
// return new Response();
// }
// } else if ("openNum".equals(intentName)) {
// String collectToken = getSessionAttribute(PRE_COLLE);
// String rankToken = getSessionAttribute("ranking");
// String recommengToken = getSessionAttribute("recommand");
// log.info("openNum slot value:{}", getSlot("sys.number"));
// if (collectToken != null) {
// return dealOpenNum(collectToken);
// } else if (rankToken != null){
// return dealOpenNum(rankToken);
// } else if (recommengToken != null) {
// return dealOpenNum(recommengToken);
// } else {
// OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, "似乎出了什么问题,请点击屏幕吧");
// return new Response(outputSpeech);
// }
// } else if ("history".equals(intentName)) {
// CollectHistoryDocument document = TempleUtils.getHistory(getUserId());
// RenderDocument render = new RenderDocument(document);
// this.addDirective(render);
// this.setSessionAttribute(PRE_COLLE,document.getIdToken());
// this.setSessionAttribute("ranking", null);
// this.setSessionAttribute("recommand", null);
// return new Response();
// } else if ("recommand".equals(intentName)) {
// RecommandDocument recommandDocument = TempleUtils.getRecommend();
// RenderDocument render = new RenderDocument();
// render.setDocument(recommandDocument);
// this.addDirective(render);
// this.addDirective(new PushStack());
// String token = recommandDocument.getRecommendIdList();
// if (token != null) {
// this.setSessionAttribute("recommand", token);
// this.setSessionAttribute(PRE_COLLE, null);
// this.setSessionAttribute("ranking", null);
// }
// return new Response();
// } else if ("ranking".equals(intentName)) {
// RankingDocument document = TempleUtils.getRanking();
// RenderDocument render = new RenderDocument();
// render.setDocument(document);
// this.addDirective(render);
// this.addDirective(new PushStack());
// String token = document.getRankBotIds();
// if (token != null) {
// this.setSessionAttribute("ranking", token);
// this.setSessionAttribute("recommand", null);
// this.setSessionAttribute(PRE_COLLE, null);
// }
// return new Response();
// }
// Query query = intentRequest.getQuery();
// String userWord = null;
// if (query != null) userWord = query.getOriginal();
// if (userWord == null){
// log.info("小度没有传来任何话语");
// return buildErrorResponse(SORRY_UNCATCH);
// }
// QiWuResponse data = null;
// try {
// data = RequestTerminal.requestTerminate(userWord, userId);
// } catch (Exception e) {
// log.error("请求终端接口出错:", e.toString());
// }
// if (data == null) {
// return buildErrorResponse(SORRY_UNCATCH);
// }
// String text = data.getText();
// log.info("小悟返回:{}", text);
// final String botAccount = ScheduleService.getNx2BotToHz1().get(data.getAipioneerUsername());
// String beforeBotAccount = getSessionAttribute("botAcc");
// if (botAccount == null || ScheduleService.getExceptBotAccount().contains(botAccount)) {
// OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, text.substring(text.indexOf("】")+1));
// return new Response(outputSpeech);
// }
// else if (!botAccount.equals(beforeBotAccount)) {
// List<Item> container = PLAY_DOCUMENT.getMainTemplate().getItems().get(2).getItems();
// container.get(1).setSrc(data.getAudio());
// text = text.substring(text.indexOf("】")+1);
// container.get(0).getItems().get(0).setText(text);
// RenderDocument render = new RenderDocument(PLAY_DOCUMENT);
// this.addDirective(render);
// new Thread(() -> {
// XiaoDuHistoryTBRepository repository = BaseHolder.getBean("xiaoDuHistoryTBRepository");
// XiaoDuHistoryTB historyTB = repository.getByXiaoduUserIdAndBotId(userId, botAccount);
// if (historyTB == null) {
// historyTB = new XiaoDuHistoryTB();
// historyTB.setLastTime(System.currentTimeMillis());
// historyTB.setBotId(botAccount);
// historyTB.setXiaoduUserId(userId);
// log.info("插入历史数据:{}", botAccount);
// } else {
// historyTB.setLastTime(System.currentTimeMillis());
// log.info("更新历史数据:{}", botAccount);
// }
// repository.save(historyTB);
// }).start();
// return new Response();
// } else {
// ExecuteCommands executeCommands = new ExecuteCommands();
// SetStateCommand audio = new SetStateCommand();
// SetStateCommand textState = new SetStateCommand();
// audio.setComponentId("audio");
// audio.setState("src");
// audio.setValue(data.getAudio());
// textState.setComponentId("text");
// textState.setState("text");
// textState.setValue(text);
//
// executeCommands.addCommand(audio);
// executeCommands.addCommand(textState);
// this.addDirective(executeCommands);
// this.setSessionAttribute("botAcc", botAccount);
// return new Response();
// }
String userId = getUserId();
OverTimeDetail detail;
if ((detail = LAST_OUTTIME_RESULT.remove(userId)) != null) {
for (Directive directive : detail.getDirectives()) {
this.addDirective(directive);
}
for (String key : detail.getAttributes().keySet()) {
this.setSessionAttribute(key, detail.getAttributes().get(key));
}
return detail.getResponse();
} }
try {
Future future = POOL.submit(new Task(intentRequest, this));
future.get(2500, TimeUnit.MILLISECONDS);
} catch (InterruptedException | ExecutionException e) {
log.error("获取任务执行结果出错:{}", e.toString());
return buildErrorResponse(SORRY_UNCATCH);
} catch (TimeoutException e) {
log.info("超时,让用户再说一遍:{}",e.toString());
return buildErrorResponse(SORRY_UNCATCH);
} catch (Exception all) {
log.error("任务执行发生了错误:{}", all.toString());
return buildErrorResponse(SORRY_UNCATCH);
}
return LAST_OUTTIME_RESULT.remove(getUserId()).getResponse();
}
private Response dealOpenNum(String idsToken) {
int collectNum = Integer.parseInt(getSlot("sys.number"));
String[] tokenList = new String(Base64.getDecoder().decode(idsToken)).split(File.separator);
OnProductDetail detail = ScheduleService.PRODUCT_ID_DETAIL.get(tokenList[collectNum-1]);
String productName = correctName(detail.getName());
String enterProductWord = new StringBuilder(Constants.PRE_PRODUCT_PLAY).append(productName).toString();
log.info("进入作品语句:{}", enterProductWord);
QiWuResponse data = null; QiWuResponse data = null;
try { try {
data = RequestTerminal.requestTerminate(userWord, userId); data = RequestTerminal.requestTerminate(enterProductWord, getCustomerId());
} catch (Exception e) { } catch (IOException e) {
log.error("请求终端接口出错:", e.toString()); log.error("请求终端接口出错:", e.toString());
} }
if (data == null) { if (data == null) {
return buildErrorResponse(Constants.ErrorMsg.SORRY_UNCATCH); return buildErrorResponse(SORRY_UNCATCH);
} }
//String wait = new BigDecimal(data.getLength()).setScale(0, RoundingMode.DOWN).toString();
String text = data.getText(); String text = data.getText();
log.info("小悟返回:{}", text); text = text.substring(text.indexOf("】")+1);
PLAY_DOCUMENT.getMainTemplate().getItems().get(1).setHeaderTitle(productName);
List<Item> container = PLAY_DOCUMENT.getMainTemplate().getItems().get(2).getItems(); List<Item> container = PLAY_DOCUMENT.getMainTemplate().getItems().get(2).getItems();
container.get(1).setSrc(data.getAudio()); container.get(1).setSrc(data.getAudio());
text = text.substring(text.indexOf("】")+1); container.get(0).getItems().get(0).setText(text);
container.get(0).getItems().get(0).getItems().get(0).setText(text);
// ExecuteCommands executeCommands = new ExecuteCommands();
// UpdateComponentCommand update = new UpdateComponentCommand();
// update.setDocument(PLAY_DOCUMENT);
// update.setComponentId("whole");
RenderDocument render = new RenderDocument(PLAY_DOCUMENT); RenderDocument render = new RenderDocument(PLAY_DOCUMENT);
this.setSessionAttribute(PRE_COLLE, null);
String trace = getSessionAttribute(BACK_TRACE);
if (trace == null || trace.length() != 2) trace = "00";
this.setSessionAttribute(BACK_TRACE, new StringBuilder(trace).append(detail.getBotAccount()).toString());
this.addDirective(render); this.addDirective(render);
return new Response(); return new Response();
} }
...@@ -166,7 +359,7 @@ public class DplBotService extends BaseBot { ...@@ -166,7 +359,7 @@ public class DplBotService extends BaseBot {
} }
String componentId = userEvent.getPayload().getComponentId(); String componentId = userEvent.getPayload().getComponentId();
String componentPrefix; String componentPrefix;
if ("continues".equals(componentId)){ if ("audio".equals(componentId)){
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)))) {
...@@ -175,6 +368,7 @@ public class DplBotService extends BaseBot { ...@@ -175,6 +368,7 @@ public class DplBotService extends BaseBot {
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);
if (productDetail == null) return buildErrorResponse("目前不支持该作品");
String imgUrl = new StringBuilder(Constants.IMG_PREFIX).append(productDetail.getBannerImgUrl()).toString(); String imgUrl = new StringBuilder(Constants.IMG_PREFIX).append(productDetail.getBannerImgUrl()).toString();
List<Item> content = PROD_INFO.getMainTemplate().getItems().get(2).getItems().get(0).getItems().get(0).getItems(); List<Item> content = PROD_INFO.getMainTemplate().getItems().get(2).getItems().get(0).getItems().get(0).getItems();
...@@ -215,27 +409,27 @@ public class DplBotService extends BaseBot { ...@@ -215,27 +409,27 @@ public class DplBotService extends BaseBot {
String accessToken = getAccessToken(); String accessToken = getAccessToken();
if (accessToken != null) { if (accessToken != null) {
// flower container button // flower container button
Integer count = getUserSendFlowerNum(String.valueOf(productDetail.getBotId())); Integer count = getUserSendFlowerNum(productDetail.getBotAccount());
Item flower = icons.get(1); Item flower = icons.get(1);
flower.getItems().get(1).setText(USER_SEND_FLOWER+count); flower.getItems().get(1).setText(USER_SEND_FLOWER+count);
String flowerReward = new StringBuilder(FLOWE).append(productDetail.getBotId()).toString(); String flowerReward = new StringBuilder(FLOWE).append(productDetail.getBotAccount()).toString();
flower.setComponentId(flowerReward); flower.setComponentId(flowerReward);
flower.getOnClick().get(0).setComponentId(flowerReward); flower.getOnClick().get(0).setComponentId(flowerReward);
// collection container button // collection container button
boolean collec = didUserCollecThisProduct(String.valueOf(productDetail.getBotId())); boolean collec = didUserCollecThisProduct(productDetail.getBotAccount());
Item collecButton = icons.get(2); Item collecButton = icons.get(2);
if (collec) { if (collec) {
collecButton.getItems().get(1).setText(COLLECED); collecButton.getItems().get(1).setText(COLLECED);
collecButton.getItems().get(0).setSrc(COLLECTED_IMG_URL); collecButton.getItems().get(0).setSrc(COLLECTED_IMG_URL);
String unCollecId = new StringBuilder(UN_COLLEC_ID).append(productDetail.getBotId()).toString(); String unCollecId = new StringBuilder(UN_COLLEC_ID).append(productDetail.getBotAccount()).toString();
//collecButton.setComponentId(unCollecId); collecButton.setComponentId(unCollecId);
collecButton.getOnClick().get(0).setComponentId(unCollecId); collecButton.getOnClick().get(0).setComponentId(unCollecId);
} else { } else {
collecButton.getItems().get(1).setText(UN_COLLEC); collecButton.getItems().get(1).setText(UN_COLLEC);
collecButton.getItems().get(0).setSrc(UN_COLLECTED_IMG_URL); collecButton.getItems().get(0).setSrc(UN_COLLECTED_IMG_URL);
String collecId = new StringBuilder(COLLEC_ID).append(productDetail.getBotId()).toString(); String collecId = new StringBuilder(COLLEC_ID).append(productDetail.getBotAccount()).toString();
//collecButton.setComponentId(collecId); collecButton.setComponentId(collecId);
collecButton.getOnClick().get(0).setComponentId(collecId); collecButton.getOnClick().get(0).setComponentId(collecId);
} }
} else { } else {
...@@ -254,7 +448,20 @@ public class DplBotService extends BaseBot { ...@@ -254,7 +448,20 @@ public class DplBotService extends BaseBot {
RenderDocument renderDocument = new RenderDocument(PROD_INFO); RenderDocument renderDocument = new RenderDocument(PROD_INFO);
this.addDirective(renderDocument); this.addDirective(renderDocument);
this.addDirective(new PushStack()); this.addDirective(new PushStack());
this.addDirective(PRODUCT_INFO_HINT); String trace = getSessionAttribute(BACK_TRACE);
log.info("before trace------------:{}",trace);
StringBuilder builder = new StringBuilder();
if (trace == null || trace.length() < 2) {
builder.append("00");
} else if (trace.length()>2) {
builder.append(trace, 0, 2);
} else {
builder.append(trace);
}
trace = builder.append(productDetail.getBotAccount()).toString();
log.info("after trace------------:{}",trace);
this.setSessionAttribute(BACK_TRACE, trace);
return new Response(); return new Response();
} else if (Constants.PRE_ENTER_PRODUCT.equals(componentPrefix)) { } else if (Constants.PRE_ENTER_PRODUCT.equals(componentPrefix)) {
String productName = componentId.substring(5); String productName = componentId.substring(5);
...@@ -267,16 +474,23 @@ public class DplBotService extends BaseBot { ...@@ -267,16 +474,23 @@ public class DplBotService extends BaseBot {
log.error("请求终端接口出错:", e.toString()); log.error("请求终端接口出错:", e.toString());
} }
if (data == null) { if (data == null) {
return buildErrorResponse(Constants.ErrorMsg.SORRY_UNCATCH); return buildErrorResponse(SORRY_UNCATCH);
} }
String text = data.getText(); String text = data.getText();
text = text.substring(text.indexOf("】")+1); text = text.substring(text.indexOf("】")+1);
PLAY_DOCUMENT.getMainTemplate().getItems().get(1).setHeaderTitle(productName); PLAY_DOCUMENT.getMainTemplate().getItems().get(1).setHeaderTitle(productName);
List<Item> container = PLAY_DOCUMENT.getMainTemplate().getItems().get(2).getItems(); List<Item> container = PLAY_DOCUMENT.getMainTemplate().getItems().get(2).getItems();
container.get(1).setSrc(data.getAudio()); container.get(1).setSrc(data.getAudio());
container.get(0).getItems().get(0).getItems().get(0).setText(text); container.get(0).getItems().get(0).setText(text);
RenderDocument render = new RenderDocument(PLAY_DOCUMENT); RenderDocument render = new RenderDocument(PLAY_DOCUMENT);
this.setSessionAttribute(PRE_COLLE, null);
String trace = getSessionAttribute(BACK_TRACE);
if (trace == null || trace.length()<2) trace = "00";
else if (trace.length()>2) trace = trace.substring(0,2);
if (productName.equals("清新传")) productName = "清新传{/zhuan4/}";
String botAccount = ScheduleService.PRODUCT_NAME_DETAIL.get(productName).getBotAccount();
this.setSessionAttribute(BACK_TRACE, new StringBuilder(trace).append(botAccount).append(File.separator).toString());
this.addDirective(render); this.addDirective(render);
} else if (FLOWE.equals(componentPrefix)) { } else if (FLOWE.equals(componentPrefix)) {
if (FLOWER_LOAD.equals(componentId)) { if (FLOWER_LOAD.equals(componentId)) {
...@@ -335,17 +549,17 @@ public class DplBotService extends BaseBot { ...@@ -335,17 +549,17 @@ public class DplBotService extends BaseBot {
RenderDocument render = new RenderDocument(CATEGORY_PROD); RenderDocument render = new RenderDocument(CATEGORY_PROD);
this.addDirective(render); this.addDirective(render);
this.addDirective(new PushStack()); 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);
} }
return new Response(); return new Response();
} }
@Override @Override
protected Response onSessionEnded(SessionEndedRequest sessionEndedRequest) {
LAST_OUTTIME_RESULT.remove(getUserId());
return new Response();
}
@Override
protected Response onBuyEvent(BuyEvent buyEvent) { protected Response onBuyEvent(BuyEvent buyEvent) {
com.baidu.dueros.data.request.buy.event.Payload payload = buyEvent.getPayload(); com.baidu.dueros.data.request.buy.event.Payload payload = buyEvent.getPayload();
String result = payload.getPurchaseResult().getPurchaseResult(); String result = payload.getPurchaseResult().getPurchaseResult();
...@@ -425,12 +639,9 @@ public class DplBotService extends BaseBot { ...@@ -425,12 +639,9 @@ public class DplBotService extends BaseBot {
} }
} }
private void changeIconIdTextAfterCollect(boolean collect, String botId) { private ExecuteCommands changeIconIdTextAfterCollect(boolean collect, String botId) {
ExecuteCommands executeCommands = new ExecuteCommands(); ExecuteCommands executeCommands = new ExecuteCommands();
SetStateCommand setText = new SetStateCommand(); UpdateComponentCommand update = new UpdateComponentCommand();
SetStateCommand setImg = new SetStateCommand();
SetStateCommand setId = new SetStateCommand();
SetStateCommand setOnclick = new SetStateCommand();
String srcValue; String srcValue;
String textValue; String textValue;
String idValue; String idValue;
...@@ -440,35 +651,20 @@ public class DplBotService extends BaseBot { ...@@ -440,35 +651,20 @@ public class DplBotService extends BaseBot {
if (collect) { if (collect) {
srcValue = COLLECTED_IMG_URL; srcValue = COLLECTED_IMG_URL;
textValue = COLLECED; textValue = COLLECED;
idValue = collectId; idValue = unCollectId;
previousClickId = unCollectId; previousClickId = collectId;
} else { } else {
srcValue = UN_COLLECTED_IMG_URL; srcValue = UN_COLLECTED_IMG_URL;
textValue = UN_COLLEC; textValue = UN_COLLEC;
idValue = unCollectId; idValue = collectId;
previousClickId = collectId; previousClickId = unCollectId;
} }
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); update.setComponentId(previousClickId);
// setOnclick.setState("onClick"); update.setDocument(TempleUtils.getCollectIcon(idValue, srcValue, textValue));
// setOnclick.setValue(String.format(CLICK_PATTERN, idValue)); executeCommands.addCommand(update);
executeCommands.addCommand(setId);
executeCommands.addCommand(setImg);
executeCommands.addCommand(setText);
executeCommands.addCommand(setOnclick);
this.addDirective(executeCommands); this.addDirective(executeCommands);
return executeCommands;
} }
private String getUsUserId() throws IOException { private String getUsUserId() throws IOException {
...@@ -727,10 +923,533 @@ public class DplBotService extends BaseBot { ...@@ -727,10 +923,533 @@ public class DplBotService extends BaseBot {
} }
} }
private void backToBotIntro(String botAccount, OverTimeDetail detail) {
OnProductDetail productDetail = ScheduleService.PRODUCT_ID_DETAIL.get(botAccount);
String imgUrl = new StringBuilder(Constants.IMG_PREFIX).append(productDetail.getBannerImgUrl()).toString();
List<Item> content = PROD_INFO.getMainTemplate().getItems().get(2).getItems().get(0).getItems().get(0).getItems();
// product picture
content.get(0).setSrc(imgUrl);
// text content
List<Item> contentText = content.get(1).getItems();
// product name
String productName = correctName(productDetail.getName());
contentText.get(0).setText(productName);
// product create time
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
String dateString = formatter.format(productDetail.getCreateTime());
contentText.get(1).getItems().get(0).setText(new StringBuilder(Constants.PRODUCT_INTRO.CREATE_TIME).append(dateString).toString());
// product author
contentText.get(1).getItems().get(1).setText(new StringBuilder(Constants.PRODUCT_INTRO.AUTHOR).append(productDetail.getAuthorName()).toString());
// product labels
StringBuilder labels = new StringBuilder(Constants.PRODUCT_INTRO.LABEL);
for (String label: productDetail.getLabels()) {
labels.append(Constants.PRODUCT_INTRO.SPACE).append(label);
}
contentText.get(2).getItems().get(0).setText(labels.toString());
// product introduction
contentText.get(3).getItems().get(0).setText(productDetail.getIntro());
List<Item> icons = contentText.get(4).getItems();
// "start product" container button
String enterProName = new StringBuilder(Constants.PRE_ENTER_PRODUCT).append(productName).toString();
icons.get(0).setComponentId(enterProName);
icons.get(0).getOnClick().get(0).setComponentId(enterProName);
String accessToken = getAccessToken();
if (accessToken != null) {
// flower container button
Integer count = getUserSendFlowerNum(productDetail.getBotAccount());
Item flower = icons.get(1);
flower.getItems().get(1).setText(USER_SEND_FLOWER+count);
String flowerReward = new StringBuilder(FLOWE).append(productDetail.getBotAccount()).toString();
flower.setComponentId(flowerReward);
flower.getOnClick().get(0).setComponentId(flowerReward);
// collection container button
boolean collec = didUserCollecThisProduct(productDetail.getBotAccount());
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.getBotAccount()).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.getBotAccount()).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());
detail.getDirectives().add(renderDocument);
detail.getDirectives().add(new PushStack());
String trace = getSessionAttribute(BACK_TRACE);
trace = trace.substring(0, trace.length()-1);
this.setSessionAttribute(BACK_TRACE, trace);
detail.getAttributes().put(BACK_TRACE,trace);
}
private void sendCancellToTerminate(String userId){
RequestTerminal.backRequest(userId);
}
class Task implements Runnable{
IntentRequest intentRequest;
DplBotService dplBotService;
Task(IntentRequest intentRequest, DplBotService dplBotService) {
this.intentRequest = intentRequest;
this.dplBotService = dplBotService;
}
@Override
public void run() {
final String userId = getCustomerId();
String intentName = getIntent().getName();
OverTimeDetail detail = new OverTimeDetail();
log.info("Intent name:{}",intentName);
if ("load".equals(intentName)) {
detail.setResponse(load());
LAST_OUTTIME_RESULT.put(userId, detail);
return;
} else if ("back".equals(intentName)) {
String trace = getSessionAttribute(BACK_TRACE);
char second;
if (trace == null || trace.length() <= 2 || getQuery().contains("首")) {
// home page
RenderDocument renderDocument = new RenderDocument(LOAD_DOCUMENT);
dplBotService.addDirective(renderDocument);
dplBotService.setSessionAttribute(BACK_TRACE,null);
detail.getDirectives().add(renderDocument);
detail.getAttributes().put(BACK_TRACE, null);
} else if (StringUtils.endsWith(trace,File.separator)){
String botAccount = trace.substring(2, trace.length()-1);
log.info("返回作品的id:{}", botAccount);
backToBotIntro(botAccount, detail);
//dplBotService.setSessionAttribute(BACK_TRACE,trace.substring(0, trace.length()-1));
} else {
second = trace.charAt(1);
switch (second){
case '0':{
RenderDocument renderDocument = new RenderDocument(LOAD_DOCUMENT);
dplBotService.addDirective(renderDocument);
dplBotService.setSessionAttribute(BACK_TRACE,null);
detail.getAttributes().put(BACK_TRACE,null);
detail.getDirectives().add(renderDocument);
break;
}
case '1': {
//collect
String appUserId = getSessionAttribute("userId");
if (appUserId == null) {
RenderDocument renderDocument = new RenderDocument(LOAD_DOCUMENT);
dplBotService.addDirective(renderDocument);
dplBotService.setSessionAttribute(BACK_TRACE,null);
detail.getAttributes().put(BACK_TRACE,null);
detail.getDirectives().add(renderDocument);
break;
}
CollectHistoryDocument document = TempleUtils.getCollectPage(Integer.parseInt(appUserId));
RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(render);
dplBotService.setSessionAttribute(BACK_TRACE, "01");
dplBotService.setSessionAttribute(PRE_COLLE,document.getIdToken());
detail.getAttributes().put(BACK_TRACE,null);
detail.getAttributes().put(PRE_COLLE,document.getIdToken());
detail.getDirectives().add(render);
break;
}
case '2': {
//history
CollectHistoryDocument document = TempleUtils.getHistory(getUserId());
RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(render);
dplBotService.setSessionAttribute(PRE_COLLE,document.getIdToken());
dplBotService.setSessionAttribute(BACK_TRACE, "02");
detail.getAttributes().put(BACK_TRACE,"02");
detail.getAttributes().put(PRE_COLLE,document.getIdToken());
detail.getDirectives().add(render);
break;
}
case '3': {
//recommend
RecommandDocument recommandDocument = TempleUtils.getRecommend();
RenderDocument render = new RenderDocument();
render.setDocument(recommandDocument);
dplBotService.addDirective(render);
String token = recommandDocument.getRecommendIdList();
if (token != null) {
dplBotService.setSessionAttribute("recommand", token);
detail.getAttributes().put("recommand",token);
}
dplBotService.setSessionAttribute(BACK_TRACE, "03");
detail.getAttributes().put(BACK_TRACE, "03");
detail.getDirectives().add(render);
break;
}
case '4': {
//rank
RankingDocument document = TempleUtils.getRanking();
RenderDocument render = new RenderDocument();
render.setDocument(document);
dplBotService.addDirective(render);
detail.getDirectives().add(render);
String token = document.getRankBotIds();
if (token != null) {
dplBotService.setSessionAttribute("ranking", token);
detail.getAttributes().put("ranking",token);
}
dplBotService.setSessionAttribute(BACK_TRACE, "04");
detail.getAttributes().put(BACK_TRACE, "04");
break;
}
}
}
sendCancellToTerminate(userId);
dplBotService.setSessionAttribute(BACK_TRACE,null);
detail.getAttributes().put(BACK_TRACE,null);
LAST_OUTTIME_RESULT.put(userId, detail);
return;
} else if ("openCollect".equals(intentName)) {
if (getAccessToken() == null) {
OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, "该功能需要登录,请说小度小度,登录");
detail.setResponse(new Response(outputSpeech));
LAST_OUTTIME_RESULT.put(userId, detail);
return;
} else {
String appUserId = getSessionAttribute("userId");
if (appUserId == null) {
try {
appUserId = getUserIdByToken(getAccessToken());
} catch (IOException e) {
log.error("打开收藏页时获取用户的郊游天下端id出错:{}", e.toString());
OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, SORRY_UNCATCH);
//LAST_OUTTIME_RESULT.put(userId, new Response(outputSpeech));
detail.setResponse(new Response(outputSpeech));
LAST_OUTTIME_RESULT.put(userId, detail);
return;
}
if (appUserId == null) {
OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, SORRY_UNCATCH);
//LAST_OUTTIME_RESULT.put(userId, new Response(outputSpeech));
detail.setResponse(new Response(outputSpeech));
LAST_OUTTIME_RESULT.put(userId, detail);
return;
}
}
CollectHistoryDocument document = TempleUtils.getCollectPage(Integer.parseInt(appUserId));
RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(render);
dplBotService.addDirective(new PushStack());
dplBotService.setSessionAttribute(PRE_COLLE,document.getIdToken());
dplBotService.setSessionAttribute(BACK_TRACE, "01");
detail.getAttributes().put(PRE_COLLE, document.getIdToken());
detail.getAttributes().put(BACK_TRACE,"01");
detail.getDirectives().add(render);
detail.getDirectives().add(new PushStack());
//LAST_OUTTIME_RESULT.put(userId, new Response());
LAST_OUTTIME_RESULT.put(userId, detail);
return;
}
} else if ("openNum".equals(intentName)) {
String collectToken = getSessionAttribute(PRE_COLLE);
String rankToken = getSessionAttribute("ranking");
String recommengToken = getSessionAttribute("recommand");
log.info("openNum slot value:{}", getSlot("sys.number"));
if (collectToken != null) {
detail.setResponse(dealOpenNum(collectToken));
//LAST_OUTTIME_RESULT.put(userId, dealOpenNum(collectToken));
} else if (rankToken != null){
detail.setResponse(dealOpenNum(rankToken));
//LAST_OUTTIME_RESULT.put(userId, dealOpenNum(rankToken));
} else if (recommengToken != null) {
detail.setResponse(dealOpenNum(recommengToken));
//LAST_OUTTIME_RESULT.put(userId, dealOpenNum(recommengToken));
} else {
OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, "似乎出了什么问题,请点击屏幕吧");
detail.getResponse().setOutputSpeech(outputSpeech);
//LAST_OUTTIME_RESULT.put(userId, new Response(outputSpeech));
}
LAST_OUTTIME_RESULT.put(userId, detail);
return;
} else if ("history".equals(intentName)) {
CollectHistoryDocument document = TempleUtils.getHistory(getUserId());
RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(render);
dplBotService.addDirective(new PushStack());
dplBotService.setSessionAttribute(PRE_COLLE,document.getIdToken());
dplBotService.setSessionAttribute("ranking", null);
dplBotService.setSessionAttribute("recommand", null);
dplBotService.setSessionAttribute(BACK_TRACE, "02");
detail.getDirectives().add(render);
detail.getDirectives().add(new PushStack());
detail.getAttributes().put("ranking", null);
detail.getAttributes().put("recommand", null);
detail.getAttributes().put(PRE_COLLE,document.getIdToken());
detail.getAttributes().put(BACK_TRACE, "02");
//LAST_OUTTIME_RESULT.put(userId, new Response());
LAST_OUTTIME_RESULT.put(userId, detail);
return;
} else if ("recommand".equals(intentName)) {
RecommandDocument recommandDocument = TempleUtils.getRecommend();
RenderDocument render = new RenderDocument();
render.setDocument(recommandDocument);
dplBotService.addDirective(render);
dplBotService.addDirective(new PushStack());
detail.getDirectives().add(new PushStack());
detail.getDirectives().add(render);
String token = recommandDocument.getRecommendIdList();
if (token != null) {
dplBotService.setSessionAttribute("recommand", token);
dplBotService.setSessionAttribute(PRE_COLLE, null);
dplBotService.setSessionAttribute("ranking", null);
detail.getAttributes().put("ranking", null);
detail.getAttributes().put("recommand", token);
detail.getAttributes().put(PRE_COLLE, null);
}
dplBotService.setSessionAttribute(BACK_TRACE, "03");
detail.getAttributes().put(BACK_TRACE,"03");
LAST_OUTTIME_RESULT.put(userId, detail);
//LAST_OUTTIME_RESULT.put(userId, new Response());
return;
} else if ("ranking".equals(intentName)) {
RankingDocument document = TempleUtils.getRanking();
RenderDocument render = new RenderDocument();
render.setDocument(document);
dplBotService.addDirective(render);
dplBotService.addDirective(new PushStack());
detail.getDirectives().add(render);
detail.getDirectives().add(new PushStack());
String token = document.getRankBotIds();
if (token != null) {
dplBotService.setSessionAttribute("ranking", token);
dplBotService.setSessionAttribute("recommand", null);
dplBotService.setSessionAttribute(PRE_COLLE, null);
detail.getAttributes().put("ranking", token);
detail.getAttributes().put("recommand", null);
detail.getAttributes().put(PRE_COLLE, null);
}
dplBotService.setSessionAttribute(BACK_TRACE, "04");
detail.getAttributes().put(BACK_TRACE, "04");
LAST_OUTTIME_RESULT.put(userId, detail);
//LAST_OUTTIME_RESULT.put(userId, new Response());
return;
} else if ("collect".equals(intentName) || "unCollect".equals(intentName)) {
boolean collect = "collect".equals(intentName);
String botAccount;
String trace = dplBotService.getSessionAttribute("trace");
if (trace == null || trace.length() <= 2) {
botAccount = dplBotService.getSessionAttribute("botAcc");
if(botAccount == null) {
String word = COLLECT_FAIL;
if (collect) word = UN_COLLECT_FAIL;
detail.setResponse(buildErrorResponse(word));
LAST_OUTTIME_RESULT.put(userId, detail);
return;
}
} else {
if (StringUtils.endsWith(trace, File.separator)) botAccount = trace.substring(2, trace.length()-1);
else botAccount = trace.substring(2);
}
try {
boolean alreadyCollected;
String appUserId = dplBotService.getSessionAttribute("userId");
if (appUserId == null) appUserId = getUserIdByToken(getAccessToken());
if (appUserId != null) {
AppFavoriteTBRepository repository = BaseHolder.getBean("appFavoriteTBRepository");
AppFavoriteTB entity = new AppFavoriteTB();
entity.setBotId(botAccount);
entity.setUserId(Integer.parseInt(appUserId));
Example<AppFavoriteTB> example = Example.of(entity);
alreadyCollected = repository.exists(example);
if (alreadyCollected) {
if (collect) detail.setResponse(buildErrorResponse("您之前就已经收藏过该作品啦,看来你真的很喜欢它"));
else {
new UnCollectThread(botAccount, userId).start();
String botName = ScheduleService.PRODUCT_ID_DETAIL.get(botAccount).getName();
ExecuteCommands commands = changeIconIdTextAfterCollect(false, botAccount);
detail.getDirectives().add(commands);
if (botName == null) detail.setResponse(buildErrorResponse(UN_COLLECT_BOT_WORD));
else detail.setResponse(buildErrorResponse(String.format(UN_COLLECT_BOT_WORD_MG,botName)));
}
}else {
if (collect) {
new CollectThread(botAccount, userId).start();
String word = ScheduleService.PRODUCT_ID_DETAIL.get(botAccount).getName();
ExecuteCommands commands = changeIconIdTextAfterCollect(true, botAccount);
detail.getDirectives().add(commands);
if (word == null) detail.setResponse(buildErrorResponse(COLLECT_BOT_WORD));
else detail.setResponse(buildErrorResponse(String.format(COLLECT_BOT_WORD_MG, correctName(word))));
}else {
detail.setResponse(buildErrorResponse("您还未收藏过该作品,它不在您的收藏列表内"));
}
}
}else {
detail.setResponse(buildErrorResponse(SORRY_UNCATCH));
}
} catch (Exception e) {
log.error("");
detail.setResponse(buildErrorResponse(SORRY_UNCATCH));
}
LAST_OUTTIME_RESULT.put(userId, detail);
return;
} else if ("sendFlower".equals(intentName)) {
String num = getSlot("sys.number");
OutputSpeech outputSpeech;
String confirmationStatus = dplBotService.getIntent().getConfirmationStatus().name();
log.info("槽位确认状态:{}",confirmationStatus);
if ("NONE".equals(confirmationStatus)) {
if (num == null) {
log.info("确认送花个数");
dplBotService.ask("sys.number");
outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, "请问您要送几朵花");
} else {
log.info("确认最终送花意图");
dplBotService.setConfirmIntent();
outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText,
new StringBuilder("您要送").append(num).append("朵花是吗").toString());
}
detail.getResponse().setOutputSpeech(outputSpeech);
LAST_OUTTIME_RESULT.put(userId, detail);
} else if ("CONFIRMED".equals(confirmationStatus)) {
log.info("确认");
} else {
log.info("否定");
}
return;
}
Query query = intentRequest.getQuery();
String userWord = null;
if (query != null) userWord = query.getOriginal();
if (userWord == null){
log.info("小度没有传来任何话语");
detail.setResponse(buildErrorResponse(SORRY_UNCATCH));
LAST_OUTTIME_RESULT.put(userId, detail);
//LAST_OUTTIME_RESULT.put(userId, buildErrorResponse(SORRY_UNCATCH));
return;
}
QiWuResponse data = null;
try {
data = RequestTerminal.requestTerminate(userWord, userId);
} catch (Exception e) {
log.error("请求终端接口出错:", e.toString());
}
if (data == null) {
detail.setResponse(buildErrorResponse(SORRY_UNCATCH));
LAST_OUTTIME_RESULT.put(userId, detail);
//LAST_OUTTIME_RESULT.put(userId, buildErrorResponse(SORRY_UNCATCH));
return;
}
String text = data.getText();
//log.info("小悟返回:{}", text);
text = text.substring(text.indexOf("】")+1);
final String botAccount = ScheduleService.getNx2BotToHz1().get(data.getAipioneerUsername());
if (botAccount == null) {
detail.setResponse(buildErrorResponse("不支持该作品换一个吧"));
LAST_OUTTIME_RESULT.put(userId, detail);
//LAST_OUTTIME_RESULT.put(userId, buildErrorResponse("不支持该作品换一个吧"));
return;
}
String beforeBotAccount = getSessionAttribute("botAcc");
if (ScheduleService.getExceptBotAccount().contains(botAccount)) {
OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, text.substring(text.indexOf("】")+1));
detail.getResponse().setOutputSpeech(outputSpeech);
LAST_OUTTIME_RESULT.put(userId, detail);
//LAST_OUTTIME_RESULT.put(userId, new Response(outputSpeech));
}
else if (!botAccount.equals(beforeBotAccount)) {
List<Item> container = PLAY_DOCUMENT.getMainTemplate().getItems().get(2).getItems();
container.get(1).setSrc(data.getAudio());
container.get(0).getItems().get(0).setText(text);
RenderDocument render = new RenderDocument(PLAY_DOCUMENT);
dplBotService.addDirective(render);
detail.getDirectives().add(render);
new Thread(() -> {
XiaoDuHistoryTBRepository repository = BaseHolder.getBean("xiaoDuHistoryTBRepository");
XiaoDuHistoryTB historyTB = repository.getByXiaoduUserIdAndBotId(userId, botAccount);
if (historyTB == null) {
historyTB = new XiaoDuHistoryTB();
historyTB.setLastTime(System.currentTimeMillis());
historyTB.setBotId(botAccount);
historyTB.setXiaoduUserId(userId);
log.info("插入历史数据:{}", botAccount);
} else {
historyTB.setLastTime(System.currentTimeMillis());
log.info("更新历史数据:{}", botAccount);
}
repository.save(historyTB);
}).start();
String trace = dplBotService.getSessionAttribute(BACK_TRACE);
if (trace == null || trace.length() != 2) trace = "00";
trace = new StringBuilder(trace).append(botAccount).append(File.separator).toString();
dplBotService.setSessionAttribute(BACK_TRACE, trace);
dplBotService.setSessionAttribute("botAcc", botAccount);
detail.getAttributes().put("botAcc", botAccount);
detail.getAttributes().put(BACK_TRACE,trace);
LAST_OUTTIME_RESULT.put(userId, detail);
//LAST_OUTTIME_RESULT.put(userId, new Response());
} else {
// ExecuteCommands executeCommands = new ExecuteCommands();
// SetStateCommand audio = new SetStateCommand();
// SetStateCommand textState = new SetStateCommand();
// audio.setComponentId("audioCom");
// audio.setState("src");
// audio.setValue(data.getAudio());
// textState.setComponentId("text");
// textState.setState("text");
// textState.setValue(text);
//
// executeCommands.addCommand(textState);
// executeCommands.addCommand(audio);
// UpdateComponentCommand update = new UpdateComponentCommand();
// update.setComponentId("whole");
// update.setDocument(TempleUtils.getPlayUpdate(data.getAudio(), text));
// executeCommands.addCommand(update);
// dplBotService.addDirective(executeCommands);
// detail.getDirectives().add(executeCommands);
List<Item> container = PLAY_DOCUMENT.getMainTemplate().getItems().get(2).getItems();
container.get(1).setSrc(data.getAudio());
container.get(0).getItems().get(0).setText(text);
RenderDocument document = new RenderDocument(PLAY_DOCUMENT);
dplBotService.addDirective(document);
detail.getDirectives().add(document);
LAST_OUTTIME_RESULT.put(userId, detail);
//LAST_OUTTIME_RESULT.put(userId, new Response());
}
}
}
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
// System.out.println(new BigDecimal("14.836").setScale(0, RoundingMode.DOWN).toString()); String s = "NDM4MTU1MzY3NDU3NzIwMTM2NDY0MDIxNjQ3NTMzODk5NzYxODgxMTAyOTU1ODY4ODc5MDc3MjA4NjIyMTM5NjM1NjU3Mjc3MDA5MjgzOTM2OTQ5MzQ4Mjk3Mjc0MzI0MjY5ODI4MTM3MzkwNDczMTc3OTM2NTY1NTkwNTMzMTk2MTI1MzU0NTU3NjY3MzkxOTY=";
// System.out.println(Math.pow(10,2)); String[] tokenList = new String(Base64.getDecoder().decode(s)).split(File.separator);
// System.out.println(correctName("清新传{/zhuan4/}")); System.out.println(Arrays.toString(tokenList));
//getUserIdByToken("a6b78cc5-55f6-456a-a6f1-6254d677d952");
} }
} }
...@@ -25,11 +25,23 @@ class RequestTerminal { ...@@ -25,11 +25,23 @@ class RequestTerminal {
requestPojo.setAccess(Constants.SERVICE_NAME); requestPojo.setAccess(Constants.SERVICE_NAME);
requestPojo.setText(userWord); requestPojo.setText(userWord);
String requestJsonStr = JSON.toJSONString(requestPojo); String requestJsonStr = JSON.toJSONString(requestPojo);
HashMap<String, String> headers = new HashMap<>();
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, requestJsonStr);
if (resStr == null) return null;
log.info("返回信息:{}", resStr); log.info("返回信息:{}", resStr);
return JSON.parseObject(resStr, QiWuResponse.class); return JSON.parseObject(resStr, QiWuResponse.class);
} }
static void backRequest(String userId) {
QiWuRequest requestPojo = new QiWuRequest();
requestPojo.setUser_id(userId);
requestPojo.setAccess(Constants.SERVICE_NAME);
requestPojo.setText("退出");
String requestJsonStr = JSON.toJSONString(requestPojo);
OkHttp3Utils.backPostAsync(Constants.QI_WU_INTERFACE, requestJsonStr);
}
public static void main(String[] args) throws IOException {
backRequest("2353461");
}
} }
...@@ -5,6 +5,7 @@ import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail; ...@@ -5,6 +5,7 @@ import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail;
import ai.qiwu.com.xiaoduhome.repository.primary.AllOnProductInfoRepository; import ai.qiwu.com.xiaoduhome.repository.primary.AllOnProductInfoRepository;
import ai.qiwu.com.xiaoduhome.repository.primary.GameProjectTbRepository; import ai.qiwu.com.xiaoduhome.repository.primary.GameProjectTbRepository;
import ai.qiwu.com.xiaoduhome.repository.primary.ProjectLabelRepository; import ai.qiwu.com.xiaoduhome.repository.primary.ProjectLabelRepository;
import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuHistoryTBRepository;
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;
...@@ -27,7 +28,11 @@ public class ScheduleService implements InitializingBean { ...@@ -27,7 +28,11 @@ public class ScheduleService implements InitializingBean {
static volatile List<GameProjectTb> RECOMMEND_LIST = new ArrayList<>(); static volatile List<GameProjectTb> RECOMMEND_LIST = new ArrayList<>();
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 HashMap<String, OnProductDetail> PRODUCT_ID_DETAIL = new HashMap<>();
static final HashMap<String, String> NX2_BOT_TO_HZ1 = new HashMap<>();
static final List<String> EXCEPT_BOT_ACCOUNT = new ArrayList<>();
static final String[] CATEGORY = {"古风", "科幻", "占星", "恋爱", "灾难", "架空", "儿童", "经营", "冒险", "武侠"}; static final String[] CATEGORY = {"古风", "科幻", "占星", "恋爱", "灾难", "架空", "儿童", "经营", "冒险", "武侠"};
static final ConcurrentHashMap<String, List<GameProjectTb>> CATEGORY_PRODUCT_LIST = new ConcurrentHashMap<>(); static final ConcurrentHashMap<String, List<GameProjectTb>> CATEGORY_PRODUCT_LIST = new ConcurrentHashMap<>();
...@@ -37,16 +42,19 @@ public class ScheduleService implements InitializingBean { ...@@ -37,16 +42,19 @@ public class ScheduleService implements InitializingBean {
private final AllOnProductInfoRepository allOnProductInfoRepository; private final AllOnProductInfoRepository allOnProductInfoRepository;
private final XiaoDuHistoryTBRepository xiaoDuHistoryTBRepository;
@Autowired @Autowired
public ScheduleService(GameProjectTbRepository gameProjectTbRepository, public ScheduleService(GameProjectTbRepository gameProjectTbRepository,
ProjectLabelRepository projectLabelRepository, AllOnProductInfoRepository allOnProductInfoRepository) { ProjectLabelRepository projectLabelRepository, AllOnProductInfoRepository allOnProductInfoRepository, XiaoDuHistoryTBRepository xiaoDuHistoryTBRepository) {
this.gameProjectTbRepository = gameProjectTbRepository; this.gameProjectTbRepository = gameProjectTbRepository;
this.projectLabelRepository = projectLabelRepository; this.projectLabelRepository = projectLabelRepository;
this.allOnProductInfoRepository = allOnProductInfoRepository; this.allOnProductInfoRepository = allOnProductInfoRepository;
this.xiaoDuHistoryTBRepository = xiaoDuHistoryTBRepository;
} }
@Scheduled(cron = "0 0 19 * * ?") @Scheduled(cron = "0 0 19 * * ?")
public void getRankingList() { public void initRankingList() {
try { try {
new Thread(() -> { new Thread(() -> {
RANKING_LIST = gameProjectTbRepository.findFirst15ByApplyStatusOrderByWatchDesc(1); RANKING_LIST = gameProjectTbRepository.findFirst15ByApplyStatusOrderByWatchDesc(1);
...@@ -58,7 +66,7 @@ public class ScheduleService implements InitializingBean { ...@@ -58,7 +66,7 @@ public class ScheduleService implements InitializingBean {
} }
@Scheduled(cron = "0 0 18 * * ?") @Scheduled(cron = "0 0 18 * * ?")
public void getRecommendList() { public void initRecommendList() {
try { try {
new Thread(() -> { new Thread(() -> {
RECOMMEND_LIST = gameProjectTbRepository.recommendList(); RECOMMEND_LIST = gameProjectTbRepository.recommendList();
...@@ -67,20 +75,21 @@ public class ScheduleService implements InitializingBean { ...@@ -67,20 +75,21 @@ public class ScheduleService implements InitializingBean {
} catch (Exception e) { } catch (Exception e) {
log.error("更新推荐页出错:{}", e.getMessage()); log.error("更新推荐页出错:{}", e.getMessage());
} }
} }
@Scheduled(cron = "0 0 17 * * ?") @Scheduled(cron = "0 0 17 * * ?")
public void getAllOnTableProductInfo() { public void initAllOnTableProductInfo() {
try { try {
new Thread(() -> { new Thread(() -> {
ALL_ON_PRODUCT = allOnProductInfoRepository.findAllByApplyStatus(1); ALL_ON_PRODUCT = allOnProductInfoRepository.findAllByApplyStatus(1);
for (OnProductDetail item : ALL_ON_PRODUCT) { for (OnProductDetail item : ALL_ON_PRODUCT) {
String productName = item.getName(); String productName = item.getName();
String botAccount = item.getBotAccount();
List<String> labels = projectLabelRepository.productLabels(item.getId()); List<String> labels = projectLabelRepository.productLabels(item.getId());
//PRODUCT_LABELS.put(productName, labels); //PRODUCT_LABELS.put(productName, labels);
item.setLabels(labels); item.setLabels(labels);
PRODUCT_NAME_DETAIL.put(productName, item); PRODUCT_NAME_DETAIL.put(productName, item);
PRODUCT_ID_DETAIL.put(botAccount, item);
} }
//log.info("作品详细信息:{}", PRODUCT_NAME_DETAIL); //log.info("作品详细信息:{}", PRODUCT_NAME_DETAIL);
}).start(); }).start();
...@@ -90,7 +99,7 @@ public class ScheduleService implements InitializingBean { ...@@ -90,7 +99,7 @@ public class ScheduleService implements InitializingBean {
} }
@Scheduled(cron = "0 0 1 ? * 7") @Scheduled(cron = "0 0 1 ? * 7")
public void getProductList() { public void initProductList() {
try { try {
new Thread(() -> { new Thread(() -> {
for (String category: CATEGORY) { for (String category: CATEGORY) {
...@@ -104,13 +113,77 @@ public class ScheduleService implements InitializingBean { ...@@ -104,13 +113,77 @@ public class ScheduleService implements InitializingBean {
} }
} }
@Scheduled(cron = "0 0 2 * * ?")
public void deleteOverTimeHistory() {
try {
new Thread(() -> {
xiaoDuHistoryTBRepository.deletePasted((long) (System.currentTimeMillis()-2592E5));
List<String> userIds = xiaoDuHistoryTBRepository.getAllUser();
for (String userId: userIds) {
xiaoDuHistoryTBRepository.deleteOverTime(userId);
}
}).start();
}catch (Exception e) {
log.error("清理历史记录数据库出错:{}", e.toString());
}
}
@Override @Override
public void afterPropertiesSet() throws Exception { public void afterPropertiesSet() throws Exception {
getAllOnTableProductInfo(); initAllOnTableProductInfo();
getRecommendList(); initRecommendList();
getRankingList(); initRankingList();
getProductList(); initProductList();
tian();
keng();
} }
private void keng() {
NX2_BOT_TO_HZ1.put("6854303973", "612535455");
NX2_BOT_TO_HZ1.put("1814141710", "9828137390");
NX2_BOT_TO_HZ1.put("5741775745", "1586892647");
NX2_BOT_TO_HZ1.put("9159908109", "3899761881");
NX2_BOT_TO_HZ1.put("6035298742", "6559053319");
NX2_BOT_TO_HZ1.put("4366487183", "6402164753");
NX2_BOT_TO_HZ1.put("236055939", "6569120969");
NX2_BOT_TO_HZ1.put("9965361790", "9727432426");
NX2_BOT_TO_HZ1.put("2428131253", "9369493482");
NX2_BOT_TO_HZ1.put("8343905461", "7667391968");
NX2_BOT_TO_HZ1.put("2675579304", "2167984446");
NX2_BOT_TO_HZ1.put("6259213309", "438155367");
NX2_BOT_TO_HZ1.put("4707303948", "2139635657");
NX2_BOT_TO_HZ1.put("2090828382", "4731779365");
NX2_BOT_TO_HZ1.put("8907881060", "4577201364");
NX2_BOT_TO_HZ1.put("7051119238", "7907720862");
NX2_BOT_TO_HZ1.put("7414315062", "1029558688");
}
private void tian(){
EXCEPT_BOT_ACCOUNT.add("682031219");
EXCEPT_BOT_ACCOUNT.add("963477460");
EXCEPT_BOT_ACCOUNT.add("9256014607");
EXCEPT_BOT_ACCOUNT.add("1778815830");
EXCEPT_BOT_ACCOUNT.add("6823941516");
EXCEPT_BOT_ACCOUNT.add("4151097686");
}
public static HashMap<String, OnProductDetail> getProductIdDetail() {
return PRODUCT_ID_DETAIL;
}
public static List<GameProjectTb> getRankingList() {
return RANKING_LIST;
}
public static List<GameProjectTb> getRecommendList() {
return RECOMMEND_LIST;
}
public static HashMap<String, String> getNx2BotToHz1() {
return NX2_BOT_TO_HZ1;
}
public static List<String> getExceptBotAccount() {
return EXCEPT_BOT_ACCOUNT;
}
} }
...@@ -4,11 +4,14 @@ server: ...@@ -4,11 +4,14 @@ server:
spring: spring:
datasource: datasource:
primary: primary:
#jdbc-url: jdbc:mysql://aws-nx2.chewrobot.com:3306/game_editor_db?useUnicode=true&characterEncoding=utf-8
jdbc-url: jdbc:mysql://localhost:3306/game_editor_db?useUnicode=true&characterEncoding=utf-8 jdbc-url: jdbc:mysql://localhost:3306/game_editor_db?useUnicode=true&characterEncoding=utf-8
username: root username: root
#password: YAdqFKlzYho
password: 3g9^pWQs#ft7 password: 3g9^pWQs#ft7
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
secondary: secondary:
#jdbc-url: jdbc:mysql://aliyun-hz1.chewrobot.com:3306/interface_db?useUnicode=true&characterEncoding=utf-8
jdbc-url: jdbc:mysql://localhost:3306/interface_db?useUnicode=true&characterEncoding=utf-8 jdbc-url: jdbc:mysql://localhost:3306/interface_db?useUnicode=true&characterEncoding=utf-8
username: root username: root
password: 3g9^pWQs#ft7 password: 3g9^pWQs#ft7
......
...@@ -42,8 +42,7 @@ ...@@ -42,8 +42,7 @@
{ {
"type": "Container", "type": "Container",
"align-items": "center", "align-items": "center",
"justify-content": "center", "margin-left": "15dp",
"margin-left": "40dp",
"items": [ "items": [
{ {
"type": "Image", "type": "Image",
...@@ -63,7 +62,6 @@ ...@@ -63,7 +62,6 @@
{ {
"type": "Text", "type": "Text",
"font-size": "30dp", "font-size": "30dp",
"letter-spacing": "3dp",
"margin-top": "10dp", "margin-top": "10dp",
"text": "${data.imageName}" "text": "${data.imageName}"
} }
......
{
"type": "DPL",
"version": "1.0",
"mainTemplate": {
"parameters": [
"payload"
],
"items": [
{
"type": "Container",
"margin-left": "120dp",
"align-items": "center",
"onClick": [
{
"type": "SendEvent"
}
],
"items": [
{
"type": "Image",
"height": "60dp",
"width": "60dp",
"componentId": "collectImage",
"src": "https://aliyun-hz1.chewrobot.com/xiaoduhome/image/share.png",
"scale-type": "fitCenter"
},
{
"type": "Text",
"componentId": "collectText",
"margin-top": "10dp",
"text": "收藏",
"font-size": "20dp"
}
]
}
]
}
}
\ No newline at end of file
{
"type": "DPL",
"version": "1.0",
"mainTemplate": {
"parameters": [
"payload"
],
"items": [
{
"type": "Image",
"position": "absolute",
"top": "0dp",
"left": "0dp",
"height": "100%",
"width": "100%",
"src": "https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg"
},
{
"type": "Header",
"headerImage": "https://skillstore.cdn.bcebos.com/icon/23/fc7581b7-b505-1f44-ab52-3d9f5e567dfd.png",
"headerTitle": "收藏"
},
{
"type": "Container",
"margin": "10dp",
"height": "100%",
"width": "100%",
"items": [
{
"type": "List",
"height": "100%",
"width": "100%",
"direction": "vertical",
"items": [
{
"type": "Container",
"height": "100dp",
"width": "100%",
"flex-direction": "row",
"componentId": "${data.botAccountId}",
"onclick": [
{
"type": "SendEvent",
"componentId": "${data.botAccountId}"
}
],
"items": [
{
"type": "Text",
"font-size": "40dp",
"margin-left": "40dp",
"margin-top": "7dp",
"text": "${data.collectPageLeftNum}"
},
{
"type": "Image",
"width": "75dp",
"height": "75dp",
"border-radius": "10dp",
"margin-left": "1dp",
"src": "${data.bannerImgUrl}"
},
{
"type": "Container",
"height": "75dp",
"width": "45%",
"flex-direction": "column",
"margin-left": "20dp",
"items": [
{
"type": "Text",
"font-size": "30dp",
"text": "${data.name}"
},
{
"type": "Text",
"font-size": "20dp",
"margin-top": "8dp",
"text": "${data.intro}",
"text-overflow": "ellipsis",
"max-lines": 1
}
]
},
{
"type": "Text",
"margin-left": "50dp",
"font-size": "30dp",
"text": "${data.authorName}"
}
]
}
]
}
]
}
]
}
}
\ No newline at end of file
{
"type": "Container",
"flex-direction": "row",
"margin-bottom": "15dp",
"items": [
{
"type": "Text",
"text": "作品排行榜",
"font-size": "35dp",
"margin-left": "30dp"
},
{
"type": "Frame",
"margin-left": "15dp",
"border-width": "1dp",
"border-top-left-radius": "25dp",
"border-top-right-radius": "15dp",
"border-bottom-right-radius": "15dp",
"padding-vertical": "5dp",
"padding-horizontal": "15dp",
"border-color": "rgb(255,255,255)",
"items": [
{
"type": "Text",
"font-size": "15dp",
"color": "rgb(255,255,255,0.4)"
}
]
}
]
}
\ No newline at end of file
{
"type": "DPL",
"version": "1.0",
"mainTemplate": {
"parameters": [
"payload"
],
"items": [
{
"type": "Image",
"position": "absolute",
"top": "0dp",
"left": "0dp",
"height": "100%",
"width": "100%",
"src": "https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg"
},
{
"type": "Header",
"headerImage": "https://skillstore.cdn.bcebos.com/icon/23/fc7581b7-b505-1f44-ab52-3d9f5e567dfd.png",
"headerTitle": "历史"
},
{
"type": "Container",
"margin": "10dp",
"height": "100%",
"width": "100%",
"items": [
{
"type": "List",
"height": "100%",
"width": "100%",
"direction": "vertical",
"items": [
{
"type": "Container",
"height": "100dp",
"width": "100%",
"flex-direction": "row",
"componentId": "${data.botAccountId}",
"onclick": [
{
"type": "SendEvent",
"componentId": "${data.botAccountId}"
}
],
"items": [
{
"type": "Text",
"font-size": "40dp",
"margin-left": "40dp",
"margin-top": "7dp",
"text": "${data.collectPageLeftNum}"
},
{
"type": "Image",
"width": "20%",
"height": "75dp",
"border-radius": "5%",
"margin-left": "1dp",
"src": "${data.bannerImgUrl}"
},
{
"type": "Container",
"height": "75dp",
"width": "45%",
"flex-direction": "column",
"margin-left": "20dp",
"items": [
{
"type": "Text",
"font-size": "30dp",
"text": "${data.name}"
},
{
"type": "Text",
"font-size": "20dp",
"margin-top": "8dp",
"text": "${data.intro}",
"text-overflow": "ellipsis",
"max-lines": 1
}
]
},
{
"type": "Text",
"margin-left": "40dp",
"font-size": "20dp",
"text": "${data.lastTime}"
}
]
}
]
}
]
}
]
}
}
\ No newline at end of file
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
{ {
"type": "Container", "type": "Container",
"align-items": "center", "align-items": "center",
"justify-content": "center",
"margin-left": "30dp", "margin-left": "30dp",
"items": [ "items": [
{ {
...@@ -68,7 +67,6 @@ ...@@ -68,7 +67,6 @@
{ {
"type": "Text", "type": "Text",
"font-size": "24dp", "font-size": "24dp",
"letter-spacing": "3dp",
"margin-top": "10dp", "margin-top": "10dp",
"text": "${data.imageName}" "text": "${data.imageName}"
} }
...@@ -82,6 +80,7 @@ ...@@ -82,6 +80,7 @@
"type": "Container", "type": "Container",
"height": "250dp", "height": "250dp",
"width": "100%", "width": "100%",
"margin-top": "30dp",
"items": [ "items": [
{ {
"type": "List", "type": "List",
...@@ -93,7 +92,6 @@ ...@@ -93,7 +92,6 @@
"type": "Container", "type": "Container",
"margin-left": "30dp", "margin-left": "30dp",
"align-items": "center", "align-items": "center",
"justify-content": "center",
"items": [ "items": [
{ {
"type": "Image", "type": "Image",
...@@ -113,7 +111,6 @@ ...@@ -113,7 +111,6 @@
{ {
"type": "Text", "type": "Text",
"font-size": "24dp", "font-size": "24dp",
"letter-spacing": "3dp",
"margin-top": "10dp", "margin-top": "10dp",
"text": "${data.imageName}" "text": "${data.imageName}"
} }
...@@ -127,6 +124,8 @@ ...@@ -127,6 +124,8 @@
"type": "Container", "type": "Container",
"height": "250dp", "height": "250dp",
"width": "100%", "width": "100%",
"margin-top": "30dp",
"margin-bottom": "60dp",
"items": [ "items": [
{ {
"type": "List", "type": "List",
...@@ -137,7 +136,6 @@ ...@@ -137,7 +136,6 @@
{ {
"type": "Container", "type": "Container",
"align-items": "center", "align-items": "center",
"justify-content": "center",
"margin-left": "30dp", "margin-left": "30dp",
"items": [ "items": [
{ {
...@@ -158,7 +156,6 @@ ...@@ -158,7 +156,6 @@
{ {
"type": "Text", "type": "Text",
"font-size": "24dp", "font-size": "24dp",
"letter-spacing": "3dp",
"margin-top": "10dp", "margin-top": "10dp",
"text": "${data.imageName}" "text": "${data.imageName}"
} }
......
...@@ -26,37 +26,24 @@ ...@@ -26,37 +26,24 @@
"height": "100%", "height": "100%",
"width": "100%", "width": "100%",
"componentId": "whole", "componentId": "whole",
"onClick": [
{
"type": "SendEvent",
"componentId": "continues"
}
],
"items": [
{
"type": "Container",
"width": "100%",
"height": "100%",
"items": [ "items": [
{ {
"type": "Container", "type": "Container",
"height": "280dp", "padding":"35dp",
"width": "90%", "position": "absolute",
"align-items": "flex-end", "bottom": "120dp",
"items": [ "items": [
{ {
"type": "Text", "type": "Text",
"font-size": "35dp", "componentId": "text",
"font-style": "normal", "font-size": "28dp",
"letter-spacing": "3dp" "font-style": "normal"
}
]
} }
] ]
}, },
{ {
"type": "Audio", "type": "Audio",
"componentId": "audio", "componentId": "audioCom",
"looping": "false", "looping": "false",
"autoplay": "true", "autoplay": "true",
"onEnd": [ "onEnd": [
......
{
"type": "DPL",
"version": "1.0",
"mainTemplate": {
"parameters": [
"payload"
],
"items": [
{
"type": "Container",
"height": "100%",
"width": "100%",
"componentId": "whole",
"items": [
{
"type": "Container",
"padding":"35dp",
"position": "absolute",
"bottom": "120dp",
"items": [
{
"type": "Text",
"text": "fff",
"componentId": "text",
"font-size": "28dp",
"font-style": "normal"
}
]
},
{
"type": "Audio",
"componentId": "audioCom",
"looping": "false",
"autoplay": "true",
"src": "ggg",
"onEnd": [
{
"type": "SendEvent",
"componentId": "audio"
}
]
}
]
}
]
}
}
\ No newline at end of file
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
"type": "Text", "type": "Text",
"margin-top": "10dp", "margin-top": "10dp",
"font-size": "38dp", "font-size": "38dp",
"letter-spacing": "15dp",
"margin-left": "5%" "margin-left": "5%"
}, },
{ {
...@@ -69,14 +68,12 @@ ...@@ -69,14 +68,12 @@
"type": "Text", "type": "Text",
"text": "发表时间:2019.5.8", "text": "发表时间:2019.5.8",
"font-size": "22dp", "font-size": "22dp",
"letter-spacing": "14dp",
"margin-left": "5%" "margin-left": "5%"
}, },
{ {
"type": "Text", "type": "Text",
"text": "作者:小艾", "text": "作者:小艾",
"font-size": "22dp", "font-size": "22dp",
"letter-spacing": "14dp",
"margin-left": "10%" "margin-left": "10%"
} }
] ]
...@@ -91,7 +88,6 @@ ...@@ -91,7 +88,6 @@
"max-lines": 1, "max-lines": 1,
"text": "相关标签: 都市 社会 生活", "text": "相关标签: 都市 社会 生活",
"font-size": "22dp", "font-size": "22dp",
"letter-spacing": "14dp",
"margin-left": "5%" "margin-left": "5%"
} }
] ]
...@@ -104,8 +100,7 @@ ...@@ -104,8 +100,7 @@
{ {
"type": "Text", "type": "Text",
"font-size": "25dp", "font-size": "25dp",
"line-height": "50dp", "line-height": "5dp",
"letter-spacing": "50dp",
"margin-top": "30dp", "margin-top": "30dp",
"max-lines": 3, "max-lines": 3,
"text-overflow": "ellipsis", "text-overflow": "ellipsis",
...@@ -116,12 +111,13 @@ ...@@ -116,12 +111,13 @@
{ {
"type": "Container", "type": "Container",
"flex-direction": "row", "flex-direction": "row",
"position": "absolute",
"bottom": "160dp",
"items": [ "items": [
{ {
"type": "Container", "type": "Container",
"margin-left": "50dp", "margin-left": "50dp",
"align-items": "center", "align-items": "center",
"justify-content": "center",
"onClick": [ "onClick": [
{ {
"type": "SendEvent" "type": "SendEvent"
...@@ -132,7 +128,6 @@ ...@@ -132,7 +128,6 @@
"type": "Image", "type": "Image",
"height": "60dp", "height": "60dp",
"width": "60dp", "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"
}, },
...@@ -140,8 +135,7 @@ ...@@ -140,8 +135,7 @@
"type": "Text", "type": "Text",
"text": "开始体验", "text": "开始体验",
"margin-top": "10dp", "margin-top": "10dp",
"font-size": "20dp", "font-size": "20dp"
"letter-spacing": "12dp"
} }
] ]
}, },
...@@ -149,7 +143,6 @@ ...@@ -149,7 +143,6 @@
"type": "Container", "type": "Container",
"margin-left": "130dp", "margin-left": "130dp",
"align-items": "center", "align-items": "center",
"justify-content": "center",
"onClick": [ "onClick": [
{ {
"type": "SendEvent" "type": "SendEvent"
...@@ -160,7 +153,6 @@ ...@@ -160,7 +153,6 @@
"type": "Image", "type": "Image",
"height": "60dp", "height": "60dp",
"width": "60dp", "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"
}, },
...@@ -168,16 +160,14 @@ ...@@ -168,16 +160,14 @@
"type": "Text", "type": "Text",
"text": "打赏鲜花", "text": "打赏鲜花",
"margin-top": "10dp", "margin-top": "10dp",
"font-size": "20dp", "font-size": "20dp"
"letter-spacing": "12dp"
} }
] ]
}, },
{ {
"type": "Container", "type": "Container",
"margin-left": "130dp", "margin-left": "120dp",
"align-items": "center", "align-items": "center",
"justify-content": "center",
"onClick": [ "onClick": [
{ {
"type": "SendEvent" "type": "SendEvent"
...@@ -188,7 +178,6 @@ ...@@ -188,7 +178,6 @@
"type": "Image", "type": "Image",
"height": "60dp", "height": "60dp",
"width": "60dp", "width": "60dp",
"margin-bottom": "20dp",
"componentId": "collectImage", "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"
...@@ -198,8 +187,7 @@ ...@@ -198,8 +187,7 @@
"componentId": "collectText", "componentId": "collectText",
"margin-top": "10dp", "margin-top": "10dp",
"text": "收藏", "text": "收藏",
"font-size": "20dp", "font-size": "20dp"
"letter-spacing": "49dp"
} }
] ]
} }
......
{
"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",
"margin-left": "15dp",
"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",
"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
{
"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",
"margin-left": "15dp",
"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",
"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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment