Commit 9109fa09 by 苗权威

9.6

parent 75bae4da
......@@ -3,25 +3,16 @@
<component name="ChangeListManager">
<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$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.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/resources/tts.properties" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/resources/tts.properties" 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$/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$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/FrameTemple.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/FrameTemple.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyMainTemplate.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyMainTemplate.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyPojo.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyPojo.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandBotInfo.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandBotInfo.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/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/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/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/ScheduleService.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/frame.json" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/frame.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/rankFirst.json" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rankFirst.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand2.json" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand2.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/textRota.json" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/textRota.json" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" />
<ignored path="$PROJECT_DIR$/target/" />
......@@ -67,120 +58,33 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="6256">
<caret line="563" column="83" selection-start-line="563" selection-start-column="83" selection-end-line="563" selection-end-column="83" />
<state relative-caret-position="357">
<caret line="81" selection-start-line="81" selection-end-line="81" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#7161#7163#0" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchPojo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="697">
<caret line="39" column="33" selection-start-line="39" selection-start-column="33" selection-end-line="39" selection-end-column="33" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="132">
<caret line="30" column="11" selection-start-line="30" selection-start-column="11" selection-end-line="30" selection-end-column="11" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="493">
<caret line="105" column="35" selection-start-line="105" selection-start-column="35" selection-end-line="105" selection-end-column="35" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#5581#5582#0" expanded="true" />
<element signature="e#5617#5618#0" expanded="true" />
<element signature="e#5689#5690#0" expanded="true" />
<element signature="e#5745#5746#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1321">
<caret line="72" column="9" selection-start-line="72" selection-start-column="9" selection-end-line="72" selection-end-column="9" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-182">
<caret line="64" column="87" selection-start-line="64" selection-start-column="87" selection-end-line="64" selection-end-column="87" />
<state relative-caret-position="44">
<caret line="465" column="49" selection-start-line="465" selection-start-column="49" selection-end-line="465" selection-end-column="49" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#17205#17206#0" expanded="true" />
<element signature="e#17241#17242#0" expanded="true" />
<element signature="e#17384#17385#0" expanded="true" />
<element signature="e#17421#17422#0" expanded="true" />
<element signature="e#23360#23406#0" />
<element signature="e#24275#24389#0" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/FrameTemple.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="499">
<caret line="50" column="33" selection-start-line="50" selection-start-column="33" selection-end-line="50" selection-end-column="33" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2083">
<caret line="123" column="25" selection-start-line="123" selection-start-column="25" selection-end-line="123" selection-end-column="25" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/frame.json">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="66">
<caret line="3" column="19" lean-forward="true" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="19" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1533">
<caret line="157" column="65" selection-start-line="157" selection-start-column="65" selection-end-line="157" selection-end-column="65" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#8406#8407#0" expanded="true" />
<element signature="e#8437#8438#0" expanded="true" />
<element signature="e#8626#8627#0" expanded="true" />
<element signature="e#8664#8665#0" expanded="true" />
</folding>
<state relative-caret-position="220">
<caret line="10" column="59" lean-forward="true" selection-start-line="10" selection-start-column="59" selection-end-line="10" selection-end-column="59" />
</state>
</provider>
</entry>
......@@ -199,9 +103,6 @@
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>POOL.submit</find>
<find>AppFavoriteTBRepository</find>
<find>xiaoDuOrderTbRepository</find>
<find>SimpleDateFormat</find>
<find>Date</find>
<find>XiaoDuOrderTbRepository</find>
......@@ -229,6 +130,9 @@
<find>DU_ID_2_US_ID</find>
<find>position</find>
<find>LunchUtils</find>
<find>onComplete</find>
<find>CATEGORY_PROD_LIST</find>
<find>USER_HISTORY</find>
</findStrings>
<replaceStrings>
<replace>OPENID_CACHE</replace>
......@@ -244,10 +148,6 @@
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/funny.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyUtil.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/common/BackImgPojo.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/pojo/dpl/Item.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Data.java" />
......@@ -263,7 +163,6 @@
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/linPicture.html" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingPojo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rank2.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/GameProjectTbRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankBotInfo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CaptchaSmsResponse.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse.java" />
......@@ -282,19 +181,24 @@
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyMainTemplate.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyPojo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchMainTemplate.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchDocument.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/onLunch/LunchBotData.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/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/ScheduleService.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/common/temple/FrameTemple.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchPojo.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/pojo/dpl/Event.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/textRota.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/GameProjectTbRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchDocument.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/FrameTemple.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/frame.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java" />
<option value="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java" />
</list>
</option>
</component>
......@@ -312,6 +216,15 @@
<expand>
<path>
<item name="" type="16c1761:MavenProjectsStructure$RootNode" />
<item name="xiaoai" type="9519ce18:MavenProjectsStructure$ProjectNode" />
</path>
<path>
<item name="" type="16c1761:MavenProjectsStructure$RootNode" />
<item name="xiaoai" 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" />
</path>
<path>
......@@ -327,7 +240,7 @@
<option name="skipTests" value="true" />
</component>
<component name="ProjectFrameBounds">
<option name="x" value="360" />
<option name="x" value="256" />
<option name="y" value="81" />
<option name="width" value="1416" />
<option name="height" value="990" />
......@@ -390,51 +303,63 @@
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="common" 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="xiaoai" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoai" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="service" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="xiaoai" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="xiaoai" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="xiaoai" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoai" 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="xiaoai" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoai" type="462c0819:PsiDirectoryNode" />
<item name="commons" 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" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -442,8 +367,6 @@
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -452,8 +375,6 @@
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -463,8 +384,6 @@
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -475,8 +394,6 @@
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
<item name="funny" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -488,7 +405,6 @@
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
<item name="onLunch" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -500,7 +416,7 @@
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
<item name="recommand" type="462c0819:PsiDirectoryNode" />
<item name="play" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -626,8 +542,8 @@
<select />
</subPane>
</pane>
<pane id="Scope" />
<pane id="PackagesPane" />
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
......@@ -641,7 +557,7 @@
<property name="RequestMappingsPanelWidth2" value="75" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1567688910877" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1567775216382" />
<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_npm_path_reset_for_default_project" value="true" />
......@@ -1072,6 +988,7 @@
<item itemvalue="Application.RequestTerminal" />
<item itemvalue="Application.DplBotService" />
<item itemvalue="Application.Utils" />
<item itemvalue="Application.RecommendUtil" />
<item itemvalue="ECS on Alibaba Cloud.dingdong" />
<item itemvalue="ECS on Alibaba Cloud.xiaodu" />
<item itemvalue="ECS on Alibaba Cloud.rokid" />
......@@ -1092,7 +1009,6 @@
<item itemvalue="Spring Boot.XiaoduhomeApplication" />
<item itemvalue="Spring Boot.TtsServiceApplication" />
<item itemvalue="Spring Boot.TtsOfflineApplication" />
<item itemvalue="Application.RecommendUtil" />
</list>
<recent_temporary>
<list>
......@@ -1188,7 +1104,8 @@
<workItem from="1567561194190" duration="717000" />
<workItem from="1567561939824" duration="76000" />
<workItem from="1567562063394" duration="30969000" />
<workItem from="1567647698612" duration="34782000" />
<workItem from="1567647698612" duration="35012000" />
<workItem from="1567734069270" duration="30989000" />
</task>
<servers />
</component>
......@@ -1198,7 +1115,7 @@
</history-entry>
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="1871061000" />
<option name="totallyTimeSpent" value="1902280000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
......@@ -1210,7 +1127,7 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="360" y="81" width="1416" height="990" extended-state="0" />
<frame x="256" y="81" width="1416" height="990" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Structure" order="0" sideWeight="0.5099778" side_tool="true" weight="0.21052632" />
......@@ -1223,14 +1140,14 @@
<window_info id="Web" order="7" side_tool="true" />
<window_info content_ui="combo" id="Project" order="8" sideWeight="0.49002218" weight="0.20321637" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.29900333" />
<window_info anchor="bottom" id="Find" order="1" weight="0.2986858" />
<window_info anchor="bottom" id="Run" order="2" weight="0.5101553" />
<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="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" weight="0.32873562" />
<window_info anchor="bottom" id="Spring" order="7" weight="0.32867885" />
<window_info anchor="bottom" id="Terminal" order="8" weight="0.32181168" />
<window_info anchor="bottom" id="Terminal" order="8" weight="0.3213859" />
<window_info anchor="bottom" id="Docker" order="9" show_stripe_button="false" />
<window_info anchor="bottom" id="Event Log" order="10" side_tool="true" weight="0.32915717" />
<window_info anchor="bottom" id="Java Enterprise" order="11" />
......@@ -1259,430 +1176,413 @@
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingPojo.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandMainTemplate.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="609">
<caret line="57" column="37" lean-forward="true" selection-start-line="57" selection-start-column="37" selection-end-line="57" selection-end-column="37" />
<folding>
<element signature="imports" expanded="true" />
</folding>
<state relative-caret-position="220">
<caret line="14" column="13" selection-start-line="14" selection-start-column="13" selection-end-line="14" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CaptchaSmsResponse.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/logging/Logger.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="15" column="33" lean-forward="true" selection-start-line="15" selection-start-column="33" selection-end-line="15" selection-end-column="33" />
<state relative-caret-position="270">
<caret line="1687" column="16" selection-start-line="1687" selection-start-column="16" selection-end-line="1687" selection-end-column="16" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="873">
<caret line="167" column="24" lean-forward="true" selection-start-line="167" selection-start-column="24" selection-end-line="167" selection-end-column="24" />
<state relative-caret-position="264">
<caret line="12" column="37" selection-start-line="12" selection-start-column="37" selection-end-line="12" selection-end-column="37" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rankFirst.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="462">
<caret line="24" column="27" lean-forward="true" selection-start-line="24" selection-start-column="27" selection-end-line="24" selection-end-column="27" />
<state relative-caret-position="396">
<caret line="33" selection-start-line="33" selection-end-line="33" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankBotInfo.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand2.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="484">
<caret line="22" column="5" selection-start-line="22" selection-start-column="5" selection-end-line="22" selection-end-column="5" />
<state relative-caret-position="770">
<caret line="38" column="19" selection-start-line="38" selection-start-column="19" selection-end-line="38" selection-end-column="19" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryTB.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="400">
<caret line="32" column="30" selection-start-line="32" selection-start-column="30" selection-end-line="32" selection-end-column="30" />
<state relative-caret-position="242">
<caret line="21" column="7" lean-forward="true" selection-start-line="21" selection-start-column="7" selection-end-line="21" selection-end-column="7" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="132">
<caret line="6" column="76" selection-start-line="6" selection-start-column="76" selection-end-line="6" selection-end-column="76" />
<state relative-caret-position="507">
<caret line="160" column="40" lean-forward="true" selection-start-line="160" selection-start-column="40" selection-end-line="160" selection-end-column="40" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</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/common/temple/funny/FunnyDocument.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="110">
<caret line="5" column="47" lean-forward="true" selection-start-line="5" selection-start-column="47" selection-end-line="5" selection-end-column="47" />
<state relative-caret-position="286">
<caret line="18" column="43" lean-forward="true" selection-start-line="18" selection-start-column="43" selection-end-line="18" selection-end-column="43" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyMainTemplate.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="88" column="25" selection-start-line="88" selection-start-column="25" selection-end-line="88" selection-end-column="25" />
<state relative-caret-position="198">
<caret line="16" column="7" selection-start-line="16" selection-start-column="7" selection-end-line="16" selection-end-column="7" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyPojo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="301">
<caret line="22" column="26" selection-start-line="22" selection-start-column="11" selection-end-line="22" selection-end-column="26" />
<state relative-caret-position="748">
<caret line="63" column="25" lean-forward="true" selection-start-line="21" selection-start-column="4" selection-end-line="63" selection-end-column="25" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchMainTemplate.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="726">
<caret line="36" column="37" selection-start-line="36" selection-start-column="37" selection-end-line="36" selection-end-column="37" />
<state relative-caret-position="418">
<caret line="19" column="26" selection-start-line="19" selection-start-column="26" selection-end-line="19" selection-end-column="26" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandBotInfo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="384">
<caret line="56" column="5" lean-forward="true" selection-start-line="56" selection-start-column="5" selection-end-line="56" selection-end-column="5" />
<state relative-caret-position="264">
<caret line="12" column="29" selection-start-line="12" selection-start-column="13" selection-end-line="12" selection-end-column="29" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rank2.json">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="389">
<caret line="160" column="22" lean-forward="true" selection-start-line="160" selection-start-column="22" selection-end-line="160" selection-end-column="22" />
<state relative-caret-position="314">
<caret line="26" column="28" selection-start-line="26" selection-start-column="11" selection-end-line="26" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374">
<caret line="399" lean-forward="true" selection-start-line="399" selection-end-line="399" />
<state relative-caret-position="-249">
<caret line="20" column="13" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/AbstractList.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="331">
<caret line="94" column="62" lean-forward="true" selection-start-line="94" selection-start-column="62" selection-end-line="94" selection-end-column="62" />
<state relative-caret-position="283">
<caret line="159" column="13" selection-start-line="159" selection-start-column="13" selection-end-line="159" selection-end-column="13" />
<folding>
<element signature="e#7793#7794#0" expanded="true" />
<element signature="e#7829#7830#0" expanded="true" />
<element signature="e#5343#5344#0" expanded="true" />
<element signature="e#5400#5401#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/GameProjectTbRepository.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Arrays.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308">
<caret line="20" column="24" selection-start-line="20" selection-start-column="24" selection-end-line="20" selection-end-column="24" />
<state relative-caret-position="-641">
<caret line="3811" column="8" selection-start-line="3811" selection-start-column="8" selection-end-line="3811" selection-end-column="8" />
<folding>
<element signature="e#177013#177014#0" expanded="true" />
<element signature="e#177054#177055#0" expanded="true" />
<element signature="e#177353#177354#0" expanded="true" />
<element signature="e#177410#177411#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Iterable.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="44" column="17" selection-start-line="44" selection-start-column="17" selection-end-line="44" selection-end-column="17" />
<state relative-caret-position="660">
<caret line="30" column="11" selection-start-line="30" selection-start-column="11" selection-end-line="30" selection-end-column="11" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Collection.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/Account.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="143" column="43" selection-start-line="143" selection-start-column="43" selection-end-line="143" selection-end-column="43" />
<state relative-caret-position="264">
<caret line="18" column="5" selection-start-line="18" selection-start-column="5" selection-end-line="18" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/ArrayList.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1722">
<caret line="164" column="11" selection-start-line="164" selection-start-column="11" selection-end-line="164" selection-end-column="11" />
<folding>
<element signature="e#6283#6284#0" expanded="true" />
<element signature="e#6351#6352#0" expanded="true" />
</folding>
<state relative-caret-position="572">
<caret line="59" column="23" lean-forward="true" selection-start-line="59" selection-start-column="23" selection-end-line="59" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Collections.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/Agent.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="591">
<caret line="491" column="23" selection-start-line="491" selection-start-column="23" selection-end-line="491" selection-end-column="23" />
<state relative-caret-position="176">
<caret line="8" column="17" selection-start-line="8" selection-start-column="17" selection-end-line="8" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/List.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/testScale.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="707" column="46" selection-start-line="707" selection-start-column="39" selection-end-line="707" selection-end-column="46" />
</state>
<state relative-caret-position="-462" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandMainTemplate.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/textRota.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="220">
<caret line="14" column="13" selection-start-line="14" selection-start-column="13" selection-end-line="14" selection-end-column="13" />
<state relative-caret-position="814">
<caret line="43" column="40" selection-start-line="43" selection-start-column="40" selection-end-line="43" selection-end-column="40" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/logging/Logger.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="1687" column="16" selection-start-line="1687" selection-start-column="16" selection-end-line="1687" selection-end-column="16" />
<state relative-caret-position="433">
<caret line="32" column="34" selection-start-line="32" selection-start-column="24" selection-end-line="32" selection-end-column="34" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Data.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="12" column="37" selection-start-line="12" selection-start-column="37" selection-end-line="12" selection-end-column="37" />
<folding>
<element signature="imports" expanded="true" />
</folding>
<state relative-caret-position="242">
<caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rankFirst.json">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/GameProjectTbRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="396">
<caret line="33" selection-start-line="33" selection-end-line="33" />
<state relative-caret-position="440">
<caret line="26" column="50" lean-forward="true" selection-start-line="26" selection-start-column="50" selection-end-line="26" selection-end-column="50" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand2.json">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchPojo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="770">
<caret line="38" column="19" selection-start-line="38" selection-start-column="19" selection-end-line="38" selection-end-column="19" />
<state relative-caret-position="697">
<caret line="39" column="33" selection-start-line="39" selection-start-column="33" selection-end-line="39" selection-end-column="33" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryTB.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="242">
<caret line="21" column="7" lean-forward="true" selection-start-line="21" selection-start-column="7" selection-end-line="21" selection-end-column="7" />
<state relative-caret-position="323">
<caret line="104" column="7" selection-start-line="104" selection-start-column="7" selection-end-line="104" selection-end-column="7" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchBotData.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="507">
<caret line="160" column="40" lean-forward="true" selection-start-line="160" selection-start-column="40" selection-end-line="160" selection-end-column="40" />
<state relative-caret-position="242">
<caret line="11" column="13" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchDocument.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="682">
<caret line="37" column="110" selection-start-line="37" selection-start-column="110" selection-end-line="37" selection-end-column="110" />
<state relative-caret-position="44">
<caret line="2" column="61" selection-start-line="2" selection-start-column="61" selection-end-line="2" selection-end-column="61" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyDocument.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286">
<caret line="18" column="43" lean-forward="true" selection-start-line="18" selection-start-column="43" selection-end-line="18" selection-end-column="43" />
<state relative-caret-position="371">
<caret line="28" column="67" selection-start-line="28" selection-start-column="67" selection-end-line="28" selection-end-column="67" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyMainTemplate.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="16" column="7" selection-start-line="16" selection-start-column="7" selection-end-line="16" selection-end-column="7" />
<state relative-caret-position="620">
<caret line="38" column="17" selection-start-line="38" selection-start-column="17" selection-end-line="38" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyPojo.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/frame.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="748">
<caret line="63" column="25" lean-forward="true" selection-start-line="21" selection-start-column="4" selection-end-line="63" selection-end-column="25" />
<state relative-caret-position="506">
<caret line="23" column="40" selection-start-line="23" selection-start-column="40" selection-end-line="23" selection-end-column="40" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Data.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/FrameTemple.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="242">
<caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
<state relative-caret-position="653">
<caret line="48" selection-start-line="48" selection-end-line="48" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchMainTemplate.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">
<state relative-caret-position="418">
<caret line="19" column="26" selection-start-line="19" selection-start-column="26" selection-end-line="19" selection-end-column="26" />
<state relative-caret-position="745">
<caret line="104" selection-start-line="104" selection-end-line="104" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchDocument.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/play/PlayDocument.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374">
<caret line="17" column="43" selection-start-line="17" selection-start-column="43" selection-end-line="17" selection-end-column="43" />
<folding>
<element signature="imports" expanded="true" />
</folding>
<state relative-caret-position="264">
<caret line="16" column="13" selection-start-line="16" selection-start-column="13" selection-end-line="16" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandBotInfo.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/play/PlayUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="12" column="29" selection-start-line="12" selection-start-column="13" selection-end-line="12" selection-end-column="29" />
<folding>
<element signature="imports" expanded="true" />
</folding>
<state relative-caret-position="353">
<caret line="68" column="38" selection-start-line="68" selection-start-column="30" selection-end-line="68" selection-end-column="38" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchBotData.java">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/response/XiaoAiResponse.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308">
<caret line="14" column="29" lean-forward="true" selection-start-line="14" selection-start-column="29" selection-end-line="14" selection-end-column="29" />
<folding>
<element signature="imports" expanded="true" />
</folding>
<state relative-caret-position="330">
<caret line="20" column="16" lean-forward="true" selection-start-line="20" selection-start-column="16" selection-end-line="20" selection-end-column="16" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/response/innerResponse/Response.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="314">
<caret line="26" column="28" selection-start-line="26" selection-start-column="11" selection-end-line="26" selection-end-column="28" />
<state relative-caret-position="308">
<caret line="23" column="21" selection-start-line="23" selection-start-column="21" selection-end-line="23" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/response/innerResponse/directive/Directive.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-249">
<caret line="20" column="13" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="13" />
<state relative-caret-position="286">
<caret line="17" column="20" selection-start-line="17" selection-start-column="20" selection-end-line="17" selection-end-column="20" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/AbstractList.java">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/response/innerResponse/directive/AudioItem/AudioItem.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="283">
<caret line="159" column="13" selection-start-line="159" selection-start-column="13" selection-end-line="159" selection-end-column="13" />
<folding>
<element signature="e#5343#5344#0" expanded="true" />
<element signature="e#5400#5401#0" expanded="true" />
</folding>
<state relative-caret-position="264">
<caret line="14" column="21" selection-start-line="14" selection-start-column="21" selection-end-line="14" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Arrays.java">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/response/innerResponse/directive/AudioItem/AudioStream.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-641">
<caret line="3811" column="8" selection-start-line="3811" selection-start-column="8" selection-end-line="3811" selection-end-column="8" />
<folding>
<element signature="e#177013#177014#0" expanded="true" />
<element signature="e#177054#177055#0" expanded="true" />
<element signature="e#177353#177354#0" expanded="true" />
<element signature="e#177410#177411#0" expanded="true" />
</folding>
<state relative-caret-position="242">
<caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.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">
<state relative-caret-position="2083">
<caret line="123" column="25" selection-start-line="123" selection-start-column="25" selection-end-line="123" selection-end-column="25" />
<state relative-caret-position="462">
<caret line="27" column="29" lean-forward="true" selection-start-line="27" selection-start-column="29" selection-end-line="27" selection-end-column="29" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1533">
<caret line="157" column="65" selection-start-line="157" selection-start-column="65" selection-end-line="157" selection-end-column="65" />
<state relative-caret-position="327">
<caret line="45" column="70" selection-start-line="45" selection-start-column="46" selection-end-line="45" selection-end-column="70" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#8406#8407#0" expanded="true" />
<element signature="e#8437#8438#0" expanded="true" />
<element signature="e#8626#8627#0" expanded="true" />
<element signature="e#8664#8665#0" expanded="true" />
<element signature="e#8227#8228#0" expanded="true" />
<element signature="e#8264#8265#0" expanded="true" />
<element signature="e#9145#9146#0" expanded="true" />
<element signature="e#9192#9193#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/FrameTemple.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">
<state relative-caret-position="499">
<caret line="50" column="33" selection-start-line="50" selection-start-column="33" selection-end-line="50" selection-end-column="33" />
<state relative-caret-position="375">
<caret line="213" column="54" lean-forward="true" selection-start-line="213" selection-start-column="54" selection-end-line="213" selection-end-column="54" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="6256">
<caret line="563" column="83" selection-start-line="563" selection-start-column="83" selection-end-line="563" selection-end-column="83" />
<state relative-caret-position="415">
<caret line="69" column="36" lean-forward="true" selection-start-line="69" selection-start-column="36" selection-end-line="69" selection-end-column="36" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#7161#7163#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/resources/application.properties">
<provider selected="true" editor-type-id="text-editor" />
</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/System.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-182">
<caret line="64" column="87" selection-start-line="64" selection-start-column="87" selection-end-line="64" selection-end-column="87" />
<state relative-caret-position="252">
<caret line="18" column="25" selection-start-line="18" selection-start-column="25" selection-end-line="18" selection-end-column="25" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#17205#17206#0" expanded="true" />
<element signature="e#17241#17242#0" expanded="true" />
<element signature="e#17384#17385#0" expanded="true" />
<element signature="e#17421#17422#0" expanded="true" />
<element signature="e#1654#1655#0" expanded="true" />
<element signature="e#1693#1694#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.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">
<state relative-caret-position="1321">
<caret line="72" column="9" selection-start-line="72" selection-start-column="9" selection-end-line="72" selection-end-column="9" />
<state relative-caret-position="550">
<caret line="184" column="64" selection-start-line="184" selection-start-column="64" selection-end-line="184" selection-end-column="64" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#8086#8087#0" expanded="true" />
<element signature="e#8163#8164#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchPojo.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">
<state relative-caret-position="697">
<caret line="39" column="33" selection-start-line="39" selection-start-column="33" selection-end-line="39" selection-end-column="33" />
<state relative-caret-position="357">
<caret line="81" selection-start-line="81" selection-end-line="81" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="132">
<caret line="30" column="11" selection-start-line="30" selection-start-column="11" selection-end-line="30" selection-end-column="11" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="493">
<caret line="105" column="35" selection-start-line="105" selection-start-column="35" selection-end-line="105" selection-end-column="35" />
<state relative-caret-position="44">
<caret line="465" column="49" selection-start-line="465" selection-start-column="49" selection-end-line="465" selection-end-column="49" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#5581#5582#0" expanded="true" />
<element signature="e#5617#5618#0" expanded="true" />
<element signature="e#5689#5690#0" expanded="true" />
<element signature="e#5745#5746#0" expanded="true" />
<element signature="e#23360#23406#0" />
<element signature="e#24275#24389#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/frame.json">
<entry file="file://$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/commons/XiaoAiConstants.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="66">
<caret line="3" column="19" lean-forward="true" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="19" />
<state relative-caret-position="220">
<caret line="10" column="59" lean-forward="true" selection-start-line="10" selection-start-column="59" selection-end-line="10" selection-end-column="59" />
</state>
</provider>
</entry>
......
......@@ -441,7 +441,7 @@ public class TTService {
/**
* 若文件已存在则不进行覆盖,除非是put更新请求.
* 首先从音频下载地址下载数据到本地,文件地址为filepath(该文件原指的是mp3文件,先改为wav文件),
* 首先从音频下载地址下载数据到本地,文件地址为filepath(该路径以.mp3结尾,先改为wav文件),
* 该下载好的wav文件经过python的change_sound方法生成mp3文件,该文件即filepath.
*
* @param url 音频下载地址
......@@ -468,7 +468,7 @@ public class TTService {
}
//long wavStartTime = System.currentTimeMillis();
//log.info("url:{}", url);
res = requestTemplate(url, data, wavFilename, longTime);
res = requestTemplate(url, data, wavFilename, longTime, true);
//long wavEndTime = System.currentTimeMillis();
//log.info("wav whole time:{}", (wavEndTime-wavStartTime)/1000.0);
if (res.getCode() != 200) {
......@@ -486,7 +486,7 @@ public class TTService {
}else if (!fileExist) {
if (offlineService.equals(url)) {
data.setFormat("mp3");
res = requestTemplate(url , data, filePath, false);
res = requestTemplate(url , data, filePath, false, false);
if (res.getCode() != 200) {
log.error("线下请求音频文件:{},失败:{}",filePath, res);
}
......@@ -571,7 +571,7 @@ public class TTService {
* @param longTime 线下测试超时为3s,线上为12s
* @return 返回状态码,调用方法通过此来判断方法是否成功
*/
private ResponseCodeWithData requestTemplate(String url, GeneralMP3Data data, String filePath, boolean longTime) {
private ResponseCodeWithData requestTemplate(String url, GeneralMP3Data data, String filePath, boolean longTime, boolean getOnline) {
String dataStr = JSON.toJSONString(data);
// log.info("GeneralMP3Data:{}", dataStr);
ResponseCodeWithData res = null;
......@@ -602,6 +602,7 @@ public class TTService {
return res;
}
else if (resCode == 404 && url.equals(offlineService)) {
if (!getOnline) return new ResponseCodeWithData(404, "没有找到该文件");
String person = data.getPerson();
String mood = data.getTone();
try {
......
package ai.qiwu.com.xiaoduhome.common.temple;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Item;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
......@@ -30,14 +31,6 @@ public class FrameTemple implements Agent{
private String fontSize;
@JsonProperty("margin-left")
private String marginLeft;
@JsonProperty("margin-bottom")
private String marginBottom;
@JsonProperty("margin-top")
private String marginTop;
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")
......@@ -48,10 +41,8 @@ public class FrameTemple implements Agent{
private String paddingVertical;
@JsonProperty("padding-horizontal")
private String paddingHorizontal;
@JsonProperty("border-color")
private String borderColor;
@JsonProperty("background-color")
private String backgroundColor;
private String color;
private String position;
private String height;
}
......@@ -6,10 +6,7 @@ import ai.qiwu.com.xiaoduhome.service.ScheduleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.*;
/**
* @author 苗权威
......@@ -62,8 +59,7 @@ public class LunchUtils {
LunchPojo list = new LunchPojo();
list.setType("List");
list.setHeight("310dp");
list.setMarginLeft("15dp");
list.setMarginRight("15dp");
list.setMarginLeft("30dp");
list.setDirection("horizontal");
list.setData(data);
list.setItems(Collections.singletonList(LUNCH_LIST_CATEGORY_CON));
......@@ -80,8 +76,8 @@ public class LunchUtils {
LunchPojo list = new LunchPojo();
list.setType("List");
list.setMarginLeft("15dp");
list.setMarginRight("15dp");
list.setMarginLeft("30dp");
// list.setMarginRight("15dp");
list.setMarginBottom("70dp");
list.setDirection("horizontal");
list.setData(data);
......@@ -101,9 +97,9 @@ public class LunchUtils {
private static LunchPojo buildImgFrmTxtContainer() {
LunchPojo container = new LunchPojo();
container.setType("Container");
container.setMarginTop("40dp");
container.setMarginTop("30dp");
container.setWidth("200dp");
container.setMarginLeft("20dp");
container.setMarginRight("33dp");
//image
LunchPojo image = new LunchPojo();
......@@ -123,7 +119,7 @@ public class LunchUtils {
frame.setType("Frame");
frame.setWidth("35dp");
frame.setHeight("35dp");
frame.setBackgroundColor("rgba(0,0,0,0.9)");
frame.setBackgroundColor("rgba(0,0,0,0.8)");
frame.setBorderRadius("13dp");
LunchPojo frmCon = new LunchPojo();
......@@ -144,7 +140,7 @@ public class LunchUtils {
LunchPojo text = new LunchPojo();
text.setType("Text");
text.setFontSize("23dp");
text.setMarginTop("160dp");
text.setMarginTop("168dp");
text.setMarginLeft("7dp");
text.setText("${data.imageName}");
......
......@@ -5,6 +5,7 @@ import ai.qiwu.com.xiaoduhome.common.Constants;
import ai.qiwu.com.xiaoduhome.common.temple.TempleUtils;
import ai.qiwu.com.xiaoduhome.entity.primary.GameProjectTb;
import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Data;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
import ai.qiwu.com.xiaoduhome.service.ScheduleService;
......@@ -59,6 +60,49 @@ public class RecommendUtil {
return document;
}
public static RecommandDocument getCategory(int num, String category) {
RecommandDocument document = new RecommandDocument();
RecommandMainTemplate mainTemplate = new RecommandMainTemplate();
document.setMainTemplate(mainTemplate);
RecommandPojo scrollView = new RecommandPojo();
scrollView.setType("ScrollView");
scrollView.setWidth("100%");
scrollView.setMarginBottom("93dp");
scrollView.setDirection("vertical");
List<RecommandPojo> scrollList = new ArrayList<>();
scrollView.setItems(scrollList);
List<String> categoryIdList = ScheduleService.getCategoryProductIdList().get(category);
if (categoryIdList == null || categoryIdList.size() == 0) return null;
int bound = categoryIdList.size();
int begin = num*16;
int end;
if (begin >= bound) return null;
bound = begin+16 <= bound ? begin+16 : bound;
List<OnProductDetail> bots = new ArrayList<>();
for (int i = begin; i < bound; i++) {
String botId = categoryIdList.get(i);
bots.add((ScheduleService.getProductIdDetail().get(botId)));
}
StringBuilder botIds = new StringBuilder();
int count = 0;
while (begin < bound) {
end = begin+4 <= bound ? begin+4 : bound;
scrollList.add(buildRecommendList(getListData(count,begin, end, bots, botIds)));
count++;
begin = end;
}
mainTemplate.getItems().addAll(Arrays.asList(RECOM_BACK_IMG,RECOM_HEAD,scrollView,RECOM_FOOTER));
botIds.deleteCharAt(botIds.length()-1);
String idToken = Base64.getEncoder().encodeToString(botIds.toString().getBytes());
document.setRecommendIdList(idToken);
return document;
}
private static List<RecommandBotInfo> getListData(int row,int begin, int end, List<OnProductDetail> bots, StringBuilder botIds) {
List<RecommandBotInfo> data = new ArrayList<>();
int n = 1+row*4;
......
......@@ -5,6 +5,8 @@ import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-8-6 下午9:26
......@@ -28,6 +30,7 @@ public class Event {
private String repeatCount;
private String position;
private String value;
private List<Event> onComplete;
public Event() {
}
......
......@@ -23,6 +23,9 @@ public interface GameProjectTbRepository extends JpaRepository<GameProjectTb, In
@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);
@Query(value = "select p.bot_account from game_project_tb as p,game_project_label_tb as l where l.name=?1 and p.apply_status=1 and p.id = l.project_id",nativeQuery = true)
List<String> categoryProList(String category);
@Query(value = "select id,intro,name,watch,banner_img_url,apply_status,bot_account,user_nickname from game_project_tb where apply_status = 1 order by watch desc limit ?1,8", nativeQuery = true)
List<GameProjectTb> postRankBot(Integer begin);
}
......@@ -69,7 +69,6 @@ import static ai.qiwu.com.xiaoduhome.common.Constants.WelcomeWord.ERROR_SEND_FLO
import static ai.qiwu.com.xiaoduhome.common.Constants.WelcomeWord.FAIL_COLLECT;
import static ai.qiwu.com.xiaoduhome.common.Constants.XIAOWU_API.*;
import static ai.qiwu.com.xiaoduhome.service.ScheduleService.CATEGORY;
import static ai.qiwu.com.xiaoduhome.service.ScheduleService.CATEGORY_PRODUCT_LIST;
/**
* @author 苗权威
......@@ -83,9 +82,9 @@ public class DplBotService extends BaseBot {
private static final MyDocument FIRST_PAGE;
private static final MyDocument CATEGORY_PROD;
private static final Item CATEGORY_PROD_LIST;
private static final Item CATEGORY_PROD_HEAD;
// private static final MyDocument CATEGORY_PROD;
// private static final Item CATEGORY_PROD_LIST;
// private static final Item CATEGORY_PROD_HEAD;
private static final int CORE = Runtime.getRuntime().availableProcessors();
......@@ -118,10 +117,10 @@ public class DplBotService extends BaseBot {
// thirdRow.get(2).setFirstItem(l3);
// thirdRow.get(2).getItems().get(0).setData(buildCategoryDataList());
CATEGORY_PROD = JSON.parseObject(getDPLTemple("static/json/categoryPro.json"), MyDocument.class);
List<Item> container = CATEGORY_PROD.getMainTemplate().getItems().get(0).getItems();
CATEGORY_PROD_LIST = container.get(2).getItems().get(0);
CATEGORY_PROD_HEAD = container.get(1);
// CATEGORY_PROD = JSON.parseObject(getDPLTemple("static/json/categoryPro.json"), MyDocument.class);
// List<Item> container = CATEGORY_PROD.getMainTemplate().getItems().get(0).getItems();
// CATEGORY_PROD_LIST = container.get(2).getItems().get(0);
// CATEGORY_PROD_HEAD = container.get(1);
PROD_INFO = JSON.parseObject(getDPLTemple("static/json/productInfo.json"), MyDocument.class);
FIRST_PAGE = JSON.parseObject(getDPLTemple("static/json/firstPage.json"), MyDocument.class);
DU_ID_2_US_ID = new ConcurrentHashMap<>();
......@@ -139,6 +138,7 @@ public class DplBotService extends BaseBot {
POOL.submit(() -> {
XiaoDuHistoryTBRepository repository = BaseHolder.getBean("xiaoDuHistoryTBRepository");
USER_HISTORY.put(getUserId(), repository.getUserHostory(getUserId()));
log.info("用户历史记录:{}",USER_HISTORY);
});
return new Response(outputSpeech);
}
......@@ -336,7 +336,7 @@ public class DplBotService extends BaseBot {
}
try {
Future future = POOL.submit(new Task(intentRequest, this));
future.get(2500, TimeUnit.MILLISECONDS);
future.get(2200, TimeUnit.MILLISECONDS);
} catch (InterruptedException | ExecutionException e) {
log.error("获取任务执行结果出错:{}", e.toString());
return buildErrorResponse(SORRY_UNCATCH);
......@@ -412,6 +412,16 @@ public class DplBotService extends BaseBot {
}
String componentId = userEvent.getPayload().getComponentId();
String componentPrefix;
// if ("frameTxtOver".equals(componentId)) {
// ExecuteCommands commands = new ExecuteCommands();
// SetStateCommand setState = new SetStateCommand();
// setState.setComponentId("frameTxt");
// setState.setState("text");
// setState.setValue("233333333333333333333");
// commands.addCommand(setState);
// this.addDirective(commands);
// return new Response();
// }
if ("audio".equals(componentId)){
setExpectSpeech(true);
}
......@@ -601,11 +611,17 @@ public class DplBotService extends BaseBot {
}
} else if (PRE_CATEGORY.equals(componentPrefix)) {
String category = componentId.substring(5);
displayCategoryProd(category);
CATEGORY_PROD_HEAD.setHeaderTitle(category);
RenderDocument render = new RenderDocument(CATEGORY_PROD);
// displayCategoryProd(category);
// CATEGORY_PROD_HEAD.setHeaderTitle(category);
// RenderDocument render = new RenderDocument(CATEGORY_PROD);
RecommandDocument document = RecommendUtil.getCategory(0, category);
if (document == null) return buildErrorResponse("不好意思该分类还没有作品");
RenderDocument render = new RenderDocument(document);
this.setSessionAttribute("category",category);
this.addDirective(render);
this.addDirective(new PushStack());
this.setSessionAttribute("pageSign","5");
this.setSessionAttribute("trace","05");
}
// else if ("funnyChange".equals(componentId)) {
// ExecuteCommands executeCommands = new ExecuteCommands();
......@@ -809,17 +825,17 @@ public class DplBotService extends BaseBot {
return dataList;
}
private void displayCategoryProd(String categoryName) {
ArrayList<Data> dataList = new ArrayList<>();
for (GameProjectTb projectInfo : CATEGORY_PRODUCT_LIST.get(categoryName)) {
String productName = correctName(projectInfo.getName());
String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(projectInfo.getName()).toString();
String src = new StringBuilder(Constants.IMG_PREFIX).append(projectInfo.getBannerImgUrl()).toString();
Data data = new Data(src, productName, imageId);
dataList.add(data);
}
CATEGORY_PROD_LIST.setData(dataList);
}
// private void displayCategoryProd(String categoryName) {
// ArrayList<Data> dataList = new ArrayList<>();
// for (GameProjectTb projectInfo : CATEGORY_PRODUCT_LIST.get(categoryName)) {
// String productName = correctName(projectInfo.getName());
// String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(projectInfo.getName()).toString();
// String src = new StringBuilder(Constants.IMG_PREFIX).append(projectInfo.getBannerImgUrl()).toString();
// Data data = new Data(src, productName, imageId);
// dataList.add(data);
// }
// CATEGORY_PROD_LIST.setData(dataList);
// }
private Integer getUserSendFlowerNum(String productId) {
AppFlowerTBTintRepository repository = BaseHolder.getBean("appFlowerTBTintRepository");
......@@ -1120,6 +1136,10 @@ public class DplBotService extends BaseBot {
String intentName = getIntent().getName();
OverTimeDetail detail = new OverTimeDetail();
log.info("Intent name:{}",intentName);
if ("ai.dueros.common.default_intent".equals(intentName) || "funny".equals(intentName)) {
dealDefaultIntent(intentRequest, detail, userId, intentName, null);
return;
}
if ("load".equals(intentName)) {
detail.setResponse(load());
LAST_OUTTIME_RESULT.put(userId, detail);
......@@ -1134,9 +1154,7 @@ public class DplBotService extends BaseBot {
dplBotService.setSessionAttribute(BACK_TRACE,null);
detail.getDirectives().add(renderDocument);
detail.getAttributes().put(BACK_TRACE, null);
sendCancellToTerminate(userId);
dplBotService.setSessionAttribute(BACK_TRACE,null);
detail.getAttributes().put(BACK_TRACE,null);
if (trace != null && StringUtils.endsWith(trace,File.separator)) sendCancellToTerminate(userId);
} else if (StringUtils.endsWith(trace,File.separator)){
String botAccount = trace.substring(2, trace.length()-1);
log.info("返回作品的id:{}", botAccount);
......@@ -1212,6 +1230,7 @@ public class DplBotService extends BaseBot {
dplBotService.setSessionAttribute(BACK_TRACE, "03");
detail.getAttributes().put(BACK_TRACE, "03");
detail.getDirectives().add(render);
detail.setResponse(buildErrorResponse(new StringBuilder("已为您返回到推荐页").toString()));
break;
}
case '4': {
......@@ -1230,6 +1249,27 @@ public class DplBotService extends BaseBot {
detail.getAttributes().put(BACK_TRACE, "04");
break;
}
case '5':{
String category = getSessionAttribute("category");
if (category == null) {
RenderDocument renderDocument = new RenderDocument(LunchUtils.getLunchDocument());
dplBotService.addDirective(renderDocument);
dplBotService.setSessionAttribute(BACK_TRACE,null);
detail.getDirectives().add(renderDocument);
detail.getAttributes().put(BACK_TRACE, null);
} else {
String count = getSessionAttribute("comCnt");
int pageIndex = 0;
if (count != null) pageIndex = Integer.parseInt(count)-1;
RecommandDocument document = RecommendUtil.getCategory(pageIndex, category);
RenderDocument render = new RenderDocument(document);
addDirective(render);
detail.getDirectives().add(render);
detail.setResponse(buildErrorResponse(new StringBuilder("已为您返回到")
.append(category).append("分类第").append(pageIndex+1).append("页").toString()));
}
break;
}
}
}
LAST_OUTTIME_RESULT.put(userId, detail);
......@@ -1284,25 +1324,80 @@ public class DplBotService extends BaseBot {
detail.setResponse(dealOpenNumInHome(num, detail));
LAST_OUTTIME_RESULT.put(userId, detail);
return;
} else if (trace.length() > 2) {
detail.setResponse(buildErrorResponse("客官,您在这个页面想打开啥"));
LAST_OUTTIME_RESULT.put(userId, detail);
return;
}
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, detail));
//LAST_OUTTIME_RESULT.put(userId, dealOpenNum(collectToken));
} else if (rankToken != null){
detail.setResponse(dealOpenNum(rankToken,detail));
//LAST_OUTTIME_RESULT.put(userId, dealOpenNum(rankToken));
} else if (recommengToken != null) {
detail.setResponse(dealOpenNumInRecommend(recommengToken,detail));
//LAST_OUTTIME_RESULT.put(userId, dealOpenNum(recommengToken));
} else {
char page = trace.charAt(1);
switch (page){
case '1':
case '2': detail.setResponse(dealOpenNum(getSessionAttribute(PRE_COLLE), detail)); break;
case '3': detail.setResponse(dealOpenNumInRecommend(getSessionAttribute("recommand"),detail)); break;
case '4': detail.setResponse(dealOpenNum(getSessionAttribute("ranking"),detail)); break;
case '5': {
String count = getSessionAttribute("comCnt");
int pageIndex = 0;
if (count != null) pageIndex = Integer.parseInt(count)-1;
String numStr = getSlot("sys.number");
int num = 1;
if (numStr != null) num = Integer.parseInt(numStr);
List<String> categoryBots = ScheduleService.getCategoryProductIdList().get(getSessionAttribute("category"));
if (num <= 0 || num > categoryBots.size()) {
detail.setResponse(buildErrorResponse("这个数字超出了范围,作品的序号已显示在图片左上角"));
LAST_OUTTIME_RESULT.put(userId, detail);
return;
}
String botId = categoryBots.get(pageIndex*16+num-1);
String name = ScheduleService.getProductIdDetail().get(botId).getName();
Response response;
if (doesUserPlayed(botId)) response = directInProduct(correctName(name), botId, detail);
else response = enterProductInfo(correctName(name), detail);
detail.setResponse(response);
break;
}
default:{
OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, "屏幕上的图标都是可以点击的哦");
detail.getResponse().setOutputSpeech(outputSpeech);
//LAST_OUTTIME_RESULT.put(userId, new Response(outputSpeech));
}
}
// String collectToken = getSessionAttribute(PRE_COLLE); //collect,history
// String rankToken = getSessionAttribute("ranking");
// String recommengToken = getSessionAttribute("recommand");
// String category = getSessionAttribute("category");
// log.info("openNum slot value:{}", getSlot("sys.number"));
// if (collectToken != null) {
// detail.setResponse(dealOpenNum(collectToken, detail));
// //LAST_OUTTIME_RESULT.put(userId, dealOpenNum(collectToken));
// } else if (rankToken != null){
// detail.setResponse(dealOpenNum(rankToken,detail));
// //LAST_OUTTIME_RESULT.put(userId, dealOpenNum(rankToken));
// } else if (recommengToken != null) {
// detail.setResponse(dealOpenNumInRecommend(recommengToken,detail));
// //LAST_OUTTIME_RESULT.put(userId, dealOpenNum(recommengToken));
// } else if (category != null) {
// String count = getSessionAttribute("comCnt");
// int pageIndex = 0;
// if (count != null) pageIndex = Integer.parseInt(count)-1;
// String numStr = getSlot("sys.number");
// int num = 1;
// if (numStr != null) num = Integer.parseInt(numStr);
// if (num > 16) {
// detail.setResponse(buildErrorResponse("这个数字超出了范围,你可以说下一页"));
// }else {
// String botId = ScheduleService.getCategoryProductIdList().get(category).get(pageIndex*16+num-1);
// String name = ScheduleService.getProductIdDetail().get(botId).getName();
// Response response;
// if (doesUserPlayed(botId)) response = directInProduct(correctName(name), botId, detail);
// else response = enterProductInfo(correctName(name), detail);
// detail.setResponse(response);
// }
// }
// 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;
}
......@@ -1384,6 +1479,23 @@ public class DplBotService extends BaseBot {
detail.getAttributes().put("pageIndex", String.valueOf(index));
break;
}
case 5:{
String category = dplBotService.getSessionAttribute("category");
if (category == null) category = "古风";
String recommendNextCount = dplBotService.getSessionAttribute("comCnt");
if (recommendNextCount == null || "1".equals(recommendNextCount)) {
detail.setResponse(buildErrorResponse("客观,前面没啦,没法往前翻了"));
break;
}
int count = Integer.parseInt(recommendNextCount);
RecommandDocument document = RecommendUtil.getCategory(count-2,category);
RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(render);
detail.getDirectives().add(render);
dplBotService.setSessionAttribute("comCnt",String.valueOf(count-1));
detail.getAttributes().put("comCnt",String.valueOf(count-1));
break;
}
default:{
detail.setResponse(buildErrorResponse("该功能还没实现"));
}
......@@ -1479,6 +1591,25 @@ public class DplBotService extends BaseBot {
detail.getAttributes().put("pageIndex", String.valueOf(index));
break;
}
case 5:{
String category = dplBotService.getSessionAttribute("category");
if (category == null) category = "古风";
String categoryNextCount = dplBotService.getSessionAttribute("comCnt");
int count = 1;
if (categoryNextCount != null) count = Integer.parseInt(categoryNextCount);
RecommandDocument document = RecommendUtil.getCategory(count,category);
if (document == null) {
detail.setResponse(buildErrorResponse("客观你已经翻到底了,没有更多了"));
break;
}
RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(render);
detail.getDirectives().add(render);
String countStr = String.valueOf(count+1);
setSessionAttribute("comCnt",countStr);
detail.getAttributes().put("comCnt",countStr);
break;
}
default:{
detail.setResponse(buildErrorResponse("该功能还没实现"));
}
......@@ -1718,21 +1849,35 @@ public class DplBotService extends BaseBot {
LAST_OUTTIME_RESULT.put(userId, detail);
}
return;
} else if ("start".equals(intentName)) {
String trace = getSessionAttribute("trace");
if (trace != null && trace.length() > 2 && !StringUtils.endsWith(trace,File.separator)) {
String botId = trace.substring(2);
String enterName = new StringBuilder("我要玩")
.append(ScheduleService.getProductIdDetail().get(botId).getName()).toString();
dealDefaultIntent(intentRequest, detail, userId, intentName, enterName);
}else {
dealDefaultIntent(intentRequest, detail, userId, intentName, null);
}
}
}
}
private void dealDefaultIntent(IntentRequest intentRequest, OverTimeDetail detail, String userId, String intentName,String word) {
if (word == null) {
Query query = intentRequest.getQuery();
String userWord = null;
if (query != null) userWord = query.getOriginal();
if (userWord == null){
if (query != null) word = query.getOriginal();
if (word == 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);
data = RequestTerminal.requestTerminate(word, userId);
} catch (Exception e) {
log.error("请求终端接口出错:", e.toString());
}
......@@ -1749,12 +1894,12 @@ public class DplBotService extends BaseBot {
document.getMainTemplate().getItems().get(2).setSrc(data.getAudio());
FUNNY_DEFAULT_DOCUMENT = document;
RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(new PushStack());
addDirective(new PushStack());
detail.getDirectives().add(new PushStack());
dplBotService.addDirective(render);
addDirective(render);
//detail.getDirectives().add(render);
LAST_OUTTIME_RESULT.put(userId, detail);
dplBotService.setSessionAttribute("pageSign", "6");
setSessionAttribute("pageSign", "6");
detail.getAttributes().put("pageSign", "6");
return;
}
......@@ -1783,7 +1928,7 @@ public class DplBotService extends BaseBot {
String productName = ScheduleService.PRODUCT_ID_DETAIL.get(botAccount).getName();
PlayDocument document = PlayUtils.getPlayDocument(correctName(productName), data.getAudio(), text);
RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(render);
addDirective(render);
detail.getDirectives().add(render);
POOL.submit(() -> {
XiaoDuHistoryTBRepository repository = BaseHolder.getBean("xiaoDuHistoryTBRepository");
......@@ -1803,51 +1948,50 @@ public class DplBotService extends BaseBot {
}
repository.save(historyTB);
});
String trace = dplBotService.getSessionAttribute(BACK_TRACE);
String trace = 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);
setSessionAttribute(BACK_TRACE, trace);
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);
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);
addDirective(executeCommands);
detail.getDirectives().add(executeCommands);
String productName = ScheduleService.PRODUCT_ID_DETAIL.get(botAccount).getName();
PlayDocument document = PlayUtils.getPlayDocument(correctName(productName), data.getAudio(), text);
RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(render);
detail.getDirectives().add(render);
// String productName = ScheduleService.PRODUCT_ID_DETAIL.get(botAccount).getName();
// PlayDocument document = PlayUtils.getPlayDocument(correctName(productName), data.getAudio(), text);
// RenderDocument render = new RenderDocument(document);
// addDirective(render);
// detail.getDirectives().add(render);
LAST_OUTTIME_RESULT.put(userId, detail);
//LAST_OUTTIME_RESULT.put(userId, new Response());
}
}
}
private Response dealOpenNumInRecommend(String idsToken, OverTimeDetail overDetail) {
int collectNum = Integer.parseInt(getSlot("sys.number"));
String[] tokenList = new String(Base64.getDecoder().decode(idsToken)).split(File.separator);
if (collectNum > tokenList.length) return buildErrorResponse("这个数字超出了范围");
if (collectNum > tokenList.length || collectNum <= 0) return buildErrorResponse("这个数字超出了范围");
OnProductDetail detail = ScheduleService.PRODUCT_ID_DETAIL.get(tokenList[collectNum-1]);
if (doesUserPlayed(detail.getBotAccount())) {
String productName = correctName(detail.getName());
......@@ -1859,20 +2003,31 @@ public class DplBotService extends BaseBot {
private Response dealOpenNumInHome(int num, OverTimeDetail detail) {
if (num > 0 && num <= 10) {
GameProjectTb bot = ScheduleService.getRankingList().get(num-1);
if (doesUserPlayed(bot.getBotAccount())) return enterProductInfo(bot.getName(), detail);
GameProjectTb bot = ScheduleService.getRecommendList().get(num-1);
log.info("历史:作品id:{}",bot.getBotAccount());
if (!doesUserPlayed(bot.getBotAccount())) return enterProductInfo(bot.getName(), detail);
else return directInProduct(bot.getName(), bot.getBotAccount(), detail);
} else if (num > 10 && num <= 20) {
GameProjectTb bot = ScheduleService.getRecommendList().get(num-11);
if (doesUserPlayed(bot.getBotAccount())) return enterProductInfo(bot.getName(), detail);
GameProjectTb bot = ScheduleService.getRankingList().get(num-11);
log.info("历史:作品id:{}",bot.getBotAccount());
if (!doesUserPlayed(bot.getBotAccount())) return enterProductInfo(bot.getName(), detail);
else return directInProduct(bot.getName(), bot.getBotAccount(), detail);
} else if (num > 20 && num <= 30) {
String categoryName = ScheduleService.CATEGORY[num-21];
displayCategoryProd(categoryName);
CATEGORY_PROD_HEAD.setHeaderTitle(categoryName);
RenderDocument render = new RenderDocument(CATEGORY_PROD);
// displayCategoryProd(categoryName);
// CATEGORY_PROD_HEAD.setHeaderTitle(categoryName);
// RenderDocument render = new RenderDocument(CATEGORY_PROD);
RecommandDocument document = RecommendUtil.getCategory(0, categoryName);
if (document == null) return buildErrorResponse("不好意思该分类还没有作品");
RenderDocument render = new RenderDocument(document);
this.addDirective(render);
detail.getDirectives().add(render);
this.setSessionAttribute("category",categoryName);
detail.getAttributes().put("category",categoryName);
this.setSessionAttribute("trace","05");
detail.getAttributes().put("trace","05");
this.setSessionAttribute("pageSign","5");
detail.getAttributes().put("pageSign","5");
return buildErrorResponse(new StringBuilder("为您打开").append(categoryName).append("类作品").toString());
// this.addDirective(new PushStack());
// detail.getDirectives().add(new PushStack());
......
......@@ -41,8 +41,9 @@ public class ScheduleService implements InitializingBean {
static final List<String> EXCEPT_BOT_ACCOUNT = new ArrayList<>();
static final String[] CATEGORY = {"古风", "儿童", "科幻", "占星", "恋爱", "灾难", "架空", "经营", "冒险", "武侠"};
static final String[] CATEGORY_CHARAC={"gufeng","child","kehuan","zhanxing","lianai","zainan","jiakong","jingying","maoxian","wuxia"};
static final ConcurrentHashMap<String, List<GameProjectTb>> CATEGORY_PRODUCT_LIST = new ConcurrentHashMap<>();
private static final String[] CATEGORY_CHARAC={"gufeng","child","kehuan","zhanxing","lianai","zainan","jiakong","jingying","maoxian","wuxia"};
static final HashMap<String,List<String>> CATEGORY_PRODUCT_ID_LIST = new HashMap<>();
private final GameProjectTbRepository gameProjectTbRepository;
......@@ -71,6 +72,7 @@ public class ScheduleService implements InitializingBean {
public void initRankingList() {
new Thread(() -> {
RANKING_LIST = gameProjectTbRepository.findFirst10ByApplyStatusOrderByWatchDesc(1);
LunchUtils.setLunchDocument(LunchUtils.buildLunchDocument());
//log.info("排行榜:{}", RANKING_LIST);
}).start();
//log.error("更新排行榜出错:{}", e.getMessage());
......@@ -80,6 +82,7 @@ public class ScheduleService implements InitializingBean {
public void initRecommendList() {
new Thread(() -> {
RECOMMEND_LIST = gameProjectTbRepository.recommendList();
LunchUtils.setLunchDocument(LunchUtils.buildLunchDocument());
//log.info("推荐:{}", RECOMMEND_LIST);
}).start();
//log.error("更新推荐页出错:{}", e.getMessage());
......@@ -104,13 +107,15 @@ public class ScheduleService implements InitializingBean {
//log.error("更新推荐页出错:{}", e.getMessage());
}
@Scheduled(cron = "0 0 1 ? * 7")
@Scheduled(cron = "0 0 1 * * ?")
public void initProductList() {
new Thread(() -> {
for (String category: CATEGORY) {
List<GameProjectTb> list = gameProjectTbRepository.categoryProject(category);
CATEGORY_PRODUCT_LIST.put(category, list);
log.info("分类{},作品列表{}", category, list);
//List<GameProjectTb> list = gameProjectTbRepository.categoryProject(category);
List<String> idList = gameProjectTbRepository.categoryProList(category);
CATEGORY_PRODUCT_ID_LIST.put(category, idList);
//CATEGORY_PRODUCT_LIST.put(category, list);
//log.info("分类{},作品列表{}", category, list);
}
}).start();
//log.error("更新分类作品列表出错:{}", e.getMessage());
......@@ -141,7 +146,6 @@ public class ScheduleService implements InitializingBean {
public void shuffleAllProList() {
new Thread(() -> {
Collections.shuffle(ALL_ON_PRODUCT);
LunchUtils.setLunchDocument(LunchUtils.buildLunchDocument());
}).start();
}
......@@ -222,4 +226,8 @@ public class ScheduleService implements InitializingBean {
public static String[] getCategoryCharac() {
return CATEGORY_CHARAC;
}
public static HashMap<String, List<String>> getCategoryProductIdList() {
return CATEGORY_PRODUCT_ID_LIST;
}
}
......@@ -5,7 +5,7 @@
"items": [
{
"type": "Text",
"font-size": "31dp",
"font-size": "28dp",
"margin-left": "30dp"
},
{
......@@ -20,8 +20,8 @@
"items": [
{
"type": "Text",
"font-size": "23dp",
"color": "rgb(255,255,255)"
"font-size": "22dp",
"color": "rgba(255,255,255,0.8)"
}
]
}
......
......@@ -38,7 +38,13 @@
"attribute": "rotation",
"duration": 3000,
"repeatCount": 4,
"repeatMode": "reverse"
"repeatMode": "reverse",
"onComplete": [
{
"type": "SendEvent",
"componentId": "test2333333"
}
]
}
]
},
......
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