Commit 75bae4da by 苗权威

9.5

parent 8af81657
...@@ -3,24 +3,24 @@ ...@@ -3,24 +3,24 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="4a2f3afc-3cd8-46bb-9e78-9759246c43dc" name="Default Changelist" comment=""> <list default="true" id="4a2f3afc-3cd8-46bb-9e78-9759246c43dc" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/pom.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$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/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/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/rank/RankBotInfo.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankBotInfo.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/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/rank/RankingPojo.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingPojo.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/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/common/temple/recommand/RecommandPojo.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandPojo.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/controller/Oauth2Controller.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CaptchaSmsResponse.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CaptchaSmsResponse.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/OverTimeDetail.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/OverTimeDetail.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse.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/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/LoadBySMS.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/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/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/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/recommand2.json" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand2.json" afterDir="false" />
</list> </list>
<ignored path="$PROJECT_DIR$/out/" /> <ignored path="$PROJECT_DIR$/out/" />
...@@ -67,42 +67,61 @@ ...@@ -67,42 +67,61 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2334"> <state relative-caret-position="6256">
<caret line="1531" column="40" selection-start-line="1531" selection-start-column="32" selection-end-line="1531" selection-end-column="40" /> <caret line="563" column="83" selection-start-line="563" selection-start-column="83" selection-end-line="563" selection-end-column="83" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
<element signature="e#6761#6763#0" /> <element signature="e#7161#7163#0" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rank2.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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2596"> <state relative-caret-position="697">
<caret line="136" column="44" selection-start-line="136" selection-start-column="44" selection-end-line="136" selection-end-column="44" /> <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> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="false">
<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/resources/static/json/onLunch2.json">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="261"> <state relative-caret-position="132">
<caret line="86" column="36" selection-start-line="86" selection-start-column="36" selection-end-line="86" selection-end-column="36" /> <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> <folding>
<element signature="imports" expanded="true" /> <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> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="356"> <state relative-caret-position="1321">
<caret line="134" column="89" lean-forward="true" selection-start-line="134" selection-start-column="89" selection-end-line="134" selection-end-column="89" /> <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> </state>
</provider> </provider>
</entry> </entry>
...@@ -110,26 +129,58 @@ ...@@ -110,26 +129,58 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="411"> <state relative-caret-position="-182">
<caret line="153" column="32" selection-start-line="153" selection-start-column="32" selection-end-line="153" selection-end-column="32" /> <caret line="64" column="87" selection-start-line="64" selection-start-column="87" selection-end-line="64" selection-end-column="87" />
<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" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json"> <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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="392"> <state relative-caret-position="499">
<caret line="99" column="46" selection-start-line="99" selection-start-column="46" selection-end-line="99" selection-end-column="46" /> <caret line="50" column="33" selection-start-line="50" selection-start-column="33" selection-end-line="50" selection-end-column="33" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankBotInfo.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="484"> <state relative-caret-position="2083">
<caret line="22" column="5" lean-forward="true" selection-start-line="22" selection-start-column="5" selection-end-line="22" selection-end-column="5" /> <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">
<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> </state>
</provider> </provider>
</entry> </entry>
...@@ -148,9 +199,6 @@ ...@@ -148,9 +199,6 @@
</component> </component>
<component name="FindInProjectRecents"> <component name="FindInProjectRecents">
<findStrings> <findStrings>
<find>new Thread</find>
<find>position</find>
<find>direction</find>
<find>POOL.submit</find> <find>POOL.submit</find>
<find>AppFavoriteTBRepository</find> <find>AppFavoriteTBRepository</find>
<find>xiaoDuOrderTbRepository</find> <find>xiaoDuOrderTbRepository</find>
...@@ -178,6 +226,9 @@ ...@@ -178,6 +226,9 @@
<find>uploadImage</find> <find>uploadImage</find>
<find>RANKING_LIST</find> <find>RANKING_LIST</find>
<find>max</find> <find>max</find>
<find>DU_ID_2_US_ID</find>
<find>position</find>
<find>LunchUtils</find>
</findStrings> </findStrings>
<replaceStrings> <replaceStrings>
<replace>OPENID_CACHE</replace> <replace>OPENID_CACHE</replace>
...@@ -193,21 +244,6 @@ ...@@ -193,21 +244,6 @@
<component name="IdeDocumentHistory"> <component name="IdeDocumentHistory">
<option name="CHANGED_PATHS"> <option name="CHANGED_PATHS">
<list> <list>
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/textComponent.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/textRota.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/play.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/play/PlayMainTemplate.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/play/PlayDocument.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/play/PlayInstance.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/play/PlayPojo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/play/PlayUtils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/testScale.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyPojo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/funnyPageItem.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyPageItemData.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandDocument.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/funny.json" /> <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/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/resources/static/json/ranking.json" />
...@@ -216,34 +252,49 @@ ...@@ -216,34 +252,49 @@
<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/Item.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Data.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Data.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/categoryPro.json" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/categoryPro.json" />
<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/productInfo.json" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand.json" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" />
<option value="$APPLICATION_CONFIG_DIR$/idea64.vmoptions" /> <option value="$APPLICATION_CONFIG_DIR$/idea64.vmoptions" />
<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/recommand/RecommandPojo.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandPojo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/OverTimeDetail.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/OverTimeDetail.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand2.json" />
<option value="$PROJECT_DIR$/xiaoduhome/pom.xml" /> <option value="$PROJECT_DIR$/xiaoduhome/pom.xml" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/UpLoadImgController.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/UpLoadImgController.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/linPicture.html" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/linPicture.html" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rankFirst.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/frame.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingPojo.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingPojo.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rank2.json" /> <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/repository/primary/GameProjectTbRepository.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/common/temple/rank/RankBotInfo.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/common/temple/rank/RankUtil.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/pojo/CaptchaSmsResponse.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" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java" /> <option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/resources/tts.properties" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rankFirst.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand2.json" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java" />
<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/common/temple/onLunch/LunchUtils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/frame.json" />
</list> </list>
</option> </option>
</component> </component>
...@@ -276,8 +327,8 @@ ...@@ -276,8 +327,8 @@
<option name="skipTests" value="true" /> <option name="skipTests" value="true" />
</component> </component>
<component name="ProjectFrameBounds"> <component name="ProjectFrameBounds">
<option name="x" value="475" /> <option name="x" value="360" />
<option name="y" value="51" /> <option name="y" value="81" />
<option name="width" value="1416" /> <option name="width" value="1416" />
<option name="height" value="990" /> <option name="height" value="990" />
</component> </component>
...@@ -289,7 +340,6 @@ ...@@ -289,7 +340,6 @@
<foldersAlwaysOnTop value="true" /> <foldersAlwaysOnTop value="true" />
</navigator> </navigator>
<panes> <panes>
<pane id="Scope" />
<pane id="ProjectPane"> <pane id="ProjectPane">
<subPane> <subPane>
<expand> <expand>
...@@ -300,6 +350,69 @@ ...@@ -300,6 +350,69 @@
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" /> <item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="service" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" /> <item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
...@@ -375,7 +488,7 @@ ...@@ -375,7 +488,7 @@
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" /> <item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" /> <item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" /> <item name="temple" type="462c0819:PsiDirectoryNode" />
<item name="rank" type="462c0819:PsiDirectoryNode" /> <item name="onLunch" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" /> <item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
...@@ -513,6 +626,7 @@ ...@@ -513,6 +626,7 @@
<select /> <select />
</subPane> </subPane>
</pane> </pane>
<pane id="Scope" />
<pane id="PackagesPane" /> <pane id="PackagesPane" />
</panes> </panes>
</component> </component>
...@@ -527,7 +641,7 @@ ...@@ -527,7 +641,7 @@
<property name="RequestMappingsPanelWidth2" value="75" /> <property name="RequestMappingsPanelWidth2" value="75" />
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" /> <property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1567601747635" /> <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1567688910877" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../security/p1o6vt" /> <property name="last_opened_file_path" value="$PROJECT_DIR$/../security/p1o6vt" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" /> <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" /> <property name="nodejs_npm_path_reset_for_default_project" value="true" />
...@@ -579,7 +693,7 @@ ...@@ -579,7 +693,7 @@
</list> </list>
</option> </option>
</component> </component>
<component name="RunManager" selected="Application.DplBotService"> <component name="RunManager" selected="Application.RecommendUtil">
<configuration name="DplBotService" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> <configuration name="DplBotService" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="ai.qiwu.com.xiaoduhome.service.DplBotService" /> <option name="MAIN_CLASS_NAME" value="ai.qiwu.com.xiaoduhome.service.DplBotService" />
<module name="xiaoduhome" /> <module name="xiaoduhome" />
...@@ -593,12 +707,12 @@ ...@@ -593,12 +707,12 @@
<option name="Make" enabled="true" /> <option name="Make" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="OverTimeDetail" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> <configuration name="RecommendUtil" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="ai.qiwu.com.xiaoduhome.pojo.OverTimeDetail" /> <option name="MAIN_CLASS_NAME" value="ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommendUtil" />
<module name="xiaoduhome" /> <module name="xiaoduhome" />
<extension name="coverage"> <extension name="coverage">
<pattern> <pattern>
<option name="PATTERN" value="ai.qiwu.com.xiaoduhome.pojo.*" /> <option name="PATTERN" value="ai.qiwu.com.xiaoduhome.common.temple.recommand.*" />
<option name="ENABLED" value="true" /> <option name="ENABLED" value="true" />
</pattern> </pattern>
</extension> </extension>
...@@ -957,7 +1071,6 @@ ...@@ -957,7 +1071,6 @@
<item itemvalue="Application.TempleUtils" /> <item itemvalue="Application.TempleUtils" />
<item itemvalue="Application.RequestTerminal" /> <item itemvalue="Application.RequestTerminal" />
<item itemvalue="Application.DplBotService" /> <item itemvalue="Application.DplBotService" />
<item itemvalue="Application.OverTimeDetail" />
<item itemvalue="Application.Utils" /> <item itemvalue="Application.Utils" />
<item itemvalue="ECS on Alibaba Cloud.dingdong" /> <item itemvalue="ECS on Alibaba Cloud.dingdong" />
<item itemvalue="ECS on Alibaba Cloud.xiaodu" /> <item itemvalue="ECS on Alibaba Cloud.xiaodu" />
...@@ -979,14 +1092,15 @@ ...@@ -979,14 +1092,15 @@
<item itemvalue="Spring Boot.XiaoduhomeApplication" /> <item itemvalue="Spring Boot.XiaoduhomeApplication" />
<item itemvalue="Spring Boot.TtsServiceApplication" /> <item itemvalue="Spring Boot.TtsServiceApplication" />
<item itemvalue="Spring Boot.TtsOfflineApplication" /> <item itemvalue="Spring Boot.TtsOfflineApplication" />
<item itemvalue="Application.RecommendUtil" />
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Application.RecommendUtil" />
<item itemvalue="Application.DplBotService" /> <item itemvalue="Application.DplBotService" />
<item itemvalue="Application.TempleUtils" /> <item itemvalue="Application.TempleUtils" />
<item itemvalue="Application.Utils" /> <item itemvalue="Application.Utils" />
<item itemvalue="Application.RequestTerminal" /> <item itemvalue="Application.RequestTerminal" />
<item itemvalue="Application.OverTimeDetail" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
...@@ -1073,7 +1187,8 @@ ...@@ -1073,7 +1187,8 @@
<workItem from="1567474526729" duration="32646000" /> <workItem from="1567474526729" duration="32646000" />
<workItem from="1567561194190" duration="717000" /> <workItem from="1567561194190" duration="717000" />
<workItem from="1567561939824" duration="76000" /> <workItem from="1567561939824" duration="76000" />
<workItem from="1567562063394" duration="30571000" /> <workItem from="1567562063394" duration="30969000" />
<workItem from="1567647698612" duration="34782000" />
</task> </task>
<servers /> <servers />
</component> </component>
...@@ -1083,7 +1198,7 @@ ...@@ -1083,7 +1198,7 @@
</history-entry> </history-entry>
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="1835881000" /> <option name="totallyTimeSpent" value="1871061000" />
</component> </component>
<component name="TodoView"> <component name="TodoView">
<todo-panel id="selected-file"> <todo-panel id="selected-file">
...@@ -1095,7 +1210,7 @@ ...@@ -1095,7 +1210,7 @@
</todo-panel> </todo-panel>
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="475" y="51" width="1416" height="990" extended-state="0" /> <frame x="360" y="81" width="1416" height="990" extended-state="0" />
<editor active="true" /> <editor active="true" />
<layout> <layout>
<window_info id="Structure" order="0" sideWeight="0.5099778" side_tool="true" weight="0.21052632" /> <window_info id="Structure" order="0" sideWeight="0.5099778" side_tool="true" weight="0.21052632" />
...@@ -1108,14 +1223,14 @@ ...@@ -1108,14 +1223,14 @@
<window_info id="Web" order="7" side_tool="true" /> <window_info id="Web" order="7" side_tool="true" />
<window_info content_ui="combo" id="Project" order="8" sideWeight="0.49002218" weight="0.20321637" /> <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="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.15292712" /> <window_info anchor="bottom" id="Find" order="1" weight="0.29900333" />
<window_info anchor="bottom" id="Run" order="2" weight="0.30107528" /> <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="Debug" order="3" weight="0.39885056" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" /> <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" weight="0.32873562" /> <window_info anchor="bottom" id="TODO" order="6" weight="0.32873562" />
<window_info anchor="bottom" id="Spring" order="7" weight="0.32867885" /> <window_info anchor="bottom" id="Spring" order="7" weight="0.32867885" />
<window_info anchor="bottom" id="Terminal" order="8" weight="0.32258064" /> <window_info anchor="bottom" id="Terminal" order="8" weight="0.32181168" />
<window_info anchor="bottom" id="Docker" order="9" show_stripe_button="false" /> <window_info anchor="bottom" id="Docker" order="9" show_stripe_button="false" />
<window_info anchor="bottom" id="Event Log" order="10" side_tool="true" weight="0.32915717" /> <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" weight="0.32915717" />
<window_info anchor="bottom" id="Java Enterprise" order="11" /> <window_info anchor="bottom" id="Java Enterprise" order="11" />
...@@ -1126,7 +1241,7 @@ ...@@ -1126,7 +1241,7 @@
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="Maven" order="3" weight="0.17909357" /> <window_info anchor="right" id="Maven" order="3" weight="0.2361111" />
<window_info anchor="right" id="Palette" order="4" /> <window_info anchor="right" id="Palette" order="4" />
<window_info anchor="right" id="Capture Analysis" order="5" /> <window_info anchor="right" id="Capture Analysis" order="5" />
<window_info anchor="right" id="Database" order="6" weight="0.32748538" /> <window_info anchor="right" id="Database" order="6" weight="0.32748538" />
...@@ -1144,382 +1259,433 @@ ...@@ -1144,382 +1259,433 @@
<option name="FILTER_TARGETS" value="false" /> <option name="FILTER_TARGETS" value="false" />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/Oauth2_load.html"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingPojo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-66" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenDuerosResponse.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308"> <state relative-caret-position="609">
<caret line="16" column="33" lean-forward="true" selection-start-line="16" selection-start-column="33" selection-end-line="16" selection-end-column="33" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0.jar!/com/baidu/dueros/bot/BaseBot.class"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CaptchaSmsResponse.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="358"> <state relative-caret-position="264">
<caret line="294" column="36" selection-start-line="294" selection-start-column="25" selection-end-line="294" selection-end-column="36" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankingDocument.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="418"> <state relative-caret-position="873">
<caret line="25" column="19" selection-start-line="25" selection-start-column="19" selection-end-line="25" selection-end-column="19" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Data.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="506"> <state relative-caret-position="462">
<caret line="25" column="31" selection-start-line="25" selection-start-column="31" selection-end-line="25" selection-end-column="31" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/GameProjectTb.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankBotInfo.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="81"> <state relative-caret-position="484">
<caret line="18" column="13" selection-start-line="18" selection-start-column="13" selection-end-line="18" selection-end-column="13" /> <caret line="22" column="5" selection-start-line="22" selection-start-column="5" selection-end-line="22" selection-end-column="5" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/concurrent/ConcurrentHashMap.java"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="22"> <state relative-caret-position="400">
<caret line="933" column="13" selection-start-line="933" selection-start-column="13" selection-end-line="933" selection-end-column="13" /> <caret line="32" column="30" selection-start-line="32" selection-start-column="30" selection-end-line="32" selection-end-column="30" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/categoryPro.json"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="176"> <state relative-caret-position="132">
<caret line="23" column="29" selection-start-line="23" selection-start-column="29" selection-end-line="23" selection-end-column="29" /> <caret line="6" column="76" selection-start-line="6" selection-start-column="76" selection-end-line="6" selection-end-column="76" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/FrameTemple.java"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/application.yml">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="235"> <state relative-caret-position="110">
<caret line="23" column="24" selection-start-line="23" selection-start-column="24" selection-end-line="23" selection-end-column="24" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$APPLICATION_CONFIG_DIR$/idea64.vmoptions"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="66"> <state relative-caret-position="270">
<caret line="3" column="8" lean-forward="true" selection-start-line="3" selection-start-column="8" selection-end-line="3" selection-end-column="8" /> <caret line="88" column="25" selection-start-line="88" selection-start-column="25" selection-end-line="88" selection-end-column="25" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandBotInfo.java"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286"> <state relative-caret-position="301">
<caret line="13" column="24" selection-start-line="13" selection-start-column="24" selection-end-line="13" selection-end-column="24" /> <caret line="22" column="26" selection-start-line="22" selection-start-column="11" selection-end-line="22" selection-end-column="26" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/com/baidu/dueros/bot-sdk/1.2.0/bot-sdk-1.2.0.jar!/com/baidu/dueros/data/response/directive/Directive.class"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264"> <state relative-caret-position="726">
<caret line="28" column="22" selection-start-line="28" selection-start-column="22" selection-end-line="28" selection-end-column="22" /> <caret line="36" column="37" selection-start-line="36" selection-start-column="37" selection-end-line="36" selection-end-column="37" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/concurrent/FutureTask.java"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="239"> <state relative-caret-position="384">
<caret line="441" column="7" lean-forward="true" selection-start-line="441" selection-start-column="7" selection-end-line="441" selection-end-column="7" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/concurrent/Future.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rank2.json">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1404"> <state relative-caret-position="389">
<caret line="166" column="6" selection-start-line="166" selection-start-column="6" selection-end-line="166" selection-end-column="6" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand.json"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="895"> <state relative-caret-position="374">
<caret line="85" column="32" selection-start-line="85" selection-start-column="32" selection-end-line="85" selection-end-column="32" /> <caret line="399" lean-forward="true" selection-start-line="399" selection-end-line="399" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/OverTimeDetail.java"> <entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198"> <state relative-caret-position="331">
<caret line="18" column="7" selection-start-line="18" selection-start-column="7" selection-end-line="18" selection-end-column="7" /> <caret line="94" column="62" lean-forward="true" selection-start-line="94" selection-start-column="62" selection-end-line="94" selection-end-column="62" />
<folding>
<element signature="e#7793#7794#0" expanded="true" />
<element signature="e#7829#7830#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/XiaoWuData.java"> <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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="330"> <state relative-caret-position="308">
<caret line="19" column="37" lean-forward="true" selection-start-line="19" selection-start-column="37" selection-end-line="19" selection-end-column="37" /> <caret line="20" column="24" selection-start-line="20" selection-start-column="24" selection-end-line="20" selection-end-column="24" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/UpdateProduct.html"> <entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/Iterable.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-4113" /> <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>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/LoadFailed.html"> <entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Collection.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198"> <state relative-caret-position="270">
<caret line="9" column="7" lean-forward="true" selection-start-line="9" selection-start-column="7" selection-end-line="9" selection-end-column="7" /> <caret line="143" column="43" selection-start-line="143" selection-start-column="43" selection-end-line="143" selection-end-column="43" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/XiaoduApplication.java"> <entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/ArrayList.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="132"> <state relative-caret-position="1722">
<caret line="10" column="13" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/pom.xml"> <entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Collections.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374"> <state relative-caret-position="591">
<caret line="44" column="21" selection-start-line="44" selection-start-column="21" selection-end-line="44" selection-end-column="21" /> <caret line="491" column="23" selection-start-line="491" selection-start-column="23" selection-end-line="491" selection-end-column="23" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaodu/pom.xml"> <entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/List.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="617"> <state relative-caret-position="270">
<caret line="103" column="21" selection-start-line="103" selection-start-column="21" selection-end-line="103" selection-end-column="21" /> <caret line="707" column="46" selection-start-line="707" selection-start-column="39" selection-end-line="707" selection-end-column="46" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/java/ai/qiwu/baidu/xiaodu/controller/ProductController.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandMainTemplate.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="220"> <state relative-caret-position="220">
<caret line="31" column="6" selection-start-line="31" selection-start-column="6" selection-end-line="31" selection-end-column="6" /> <caret line="14" column="13" selection-start-line="14" selection-start-column="13" selection-end-line="14" selection-end-column="13" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaodu/src/main/resources/templates/Product.html"> <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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="462"> <state relative-caret-position="270">
<caret line="138" column="58" selection-start-line="138" selection-start-column="58" selection-end-line="138" selection-end-column="58" /> <caret line="1687" column="16" selection-start-line="1687" selection-start-column="16" selection-end-line="1687" selection-end-column="16" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/templates/linPicture.html"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="484"> <state relative-caret-position="264">
<caret line="22" column="28" selection-start-line="22" selection-start-column="28" selection-end-line="22" selection-end-column="28" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/UpLoadImgController.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/rankFirst.json">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="257"> <state relative-caret-position="396">
<caret line="20" column="33" lean-forward="true" selection-start-line="20" selection-start-column="33" selection-end-line="20" selection-end-column="33" /> <caret line="33" selection-start-line="33" selection-end-line="33" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#244#245#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/recommand2.json">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="609"> <state relative-caret-position="770">
<caret line="38" column="5" selection-start-line="38" selection-start-column="5" selection-end-line="38" selection-end-column="5" /> <caret line="38" column="19" selection-start-line="38" selection-start-column="19" selection-end-line="38" selection-end-column="19" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/ranking.json"> <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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="330"> <state relative-caret-position="242">
<caret line="15" column="23" lean-forward="true" selection-start-line="15" selection-start-column="23" selection-end-line="15" selection-end-column="23" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="433"> <state relative-caret-position="507">
<caret line="122" column="24" lean-forward="true" selection-start-line="122" selection-start-column="24" selection-end-line="122" selection-end-column="24" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/OnProductDetail.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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="436"> <state relative-caret-position="682">
<caret line="40" column="17" selection-start-line="40" selection-start-column="17" selection-end-line="40" selection-end-column="17" /> <caret line="37" column="110" selection-start-line="37" selection-start-column="110" selection-end-line="37" selection-end-column="110" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/home.json"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/funny/FunnyDocument.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-396" /> <state relative-caret-position="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> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandPojo.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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="458"> <state relative-caret-position="198">
<caret line="34" column="31" selection-start-line="34" selection-start-column="31" selection-end-line="34" selection-end-column="31" /> <caret line="16" column="7" selection-start-line="16" selection-start-column="7" selection-end-line="16" selection-end-column="7" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/boot/spring-boot-autoconfigure/2.1.6.RELEASE/spring-boot-autoconfigure-2.1.6.RELEASE.jar!/org/springframework/boot/autoconfigure/condition/ConditionMessage.class"> <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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270"> <state relative-caret-position="748">
<caret line="131" column="23" selection-start-line="131" selection-start-column="23" selection-end-line="131" selection-end-column="23" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Item.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Data.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="367"> <state relative-caret-position="242">
<caret line="90" column="19" selection-start-line="90" selection-start-column="12" selection-end-line="90" selection-end-column="19" /> <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="155"> <state relative-caret-position="418">
<caret line="169" column="45" selection-start-line="169" selection-start-column="45" selection-end-line="169" selection-end-column="45" /> <caret line="19" column="26" selection-start-line="19" selection-start-column="26" selection-end-line="19" selection-end-column="26" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
<element signature="e#7397#7398#0" expanded="true" />
<element signature="e#7437#7438#0" expanded="true" />
<element signature="e#7967#7968#0" expanded="true" />
<element signature="e#8005#8006#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/frame.json"> <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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="528"> <state relative-caret-position="374">
<caret line="24" column="26" selection-start-line="24" selection-start-column="26" selection-end-line="24" selection-end-column="26" /> <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> </state>
</provider> </provider>
</entry> </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/recommand/RecommandBotInfo.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="345"> <state relative-caret-position="264">
<caret line="156" column="24" lean-forward="true" selection-start-line="156" selection-start-column="24" selection-end-line="156" selection-end-column="24" /> <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> </state>
</provider> </provider>
</entry> </entry>
<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/onLunch/LunchBotData.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="609"> <state relative-caret-position="308">
<caret line="57" column="37" lean-forward="true" selection-start-line="57" selection-start-column="37" selection-end-line="57" selection-end-column="37" /> <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> <folding>
<element signature="imports" expanded="true" /> <element signature="imports" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/GameProjectTbRepository.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="440"> <state relative-caret-position="314">
<caret line="26" column="24" selection-start-line="26" selection-start-column="24" selection-end-line="26" selection-end-column="24" /> <caret line="26" column="28" selection-start-line="26" selection-start-column="11" selection-end-line="26" selection-end-column="28" />
</state> </state>
</provider> </provider>
</entry> </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/entity/secondary/XiaoDuOrderTB.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374"> <state relative-caret-position="-249">
<caret line="23" column="21" selection-start-line="23" selection-start-column="17" selection-end-line="23" selection-end-column="21" /> <caret line="20" column="13" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="13" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json"> <entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/AbstractList.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="392"> <state relative-caret-position="283">
<caret line="99" column="46" selection-start-line="99" selection-start-column="46" selection-end-line="99" selection-end-column="46" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="411"> <state relative-caret-position="-641">
<caret line="153" column="32" selection-start-line="153" selection-start-column="32" selection-end-line="153" selection-end-column="32" /> <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> </state>
</provider> </provider>
</entry> </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/service/LoadBySMS.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2334"> <state relative-caret-position="2083">
<caret line="1531" column="40" selection-start-line="1531" selection-start-column="32" selection-end-line="1531" selection-end-column="40" /> <caret line="123" column="25" selection-start-line="123" selection-start-column="25" selection-end-line="123" selection-end-column="25" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#6761#6763#0" />
</folding>
</state> </state>
</provider> </provider>
</entry> </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/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="484"> <state relative-caret-position="1533">
<caret line="22" column="5" lean-forward="true" selection-start-line="22" selection-start-column="5" selection-end-line="22" selection-end-column="5" /> <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> </state>
</provider> </provider>
</entry> </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/temple/FrameTemple.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2596"> <state relative-caret-position="499">
<caret line="136" column="44" selection-start-line="136" selection-start-column="44" selection-end-line="136" selection-end-column="44" /> <caret line="50" column="33" selection-start-line="50" selection-start-column="33" selection-end-line="50" selection-end-column="33" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Constants.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="356"> <state relative-caret-position="6256">
<caret line="134" column="89" lean-forward="true" selection-start-line="134" selection-start-column="89" selection-end-line="134" selection-end-column="89" /> <caret line="563" column="83" selection-start-line="563" selection-start-column="83" selection-end-line="563" selection-end-column="83" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#7161#7163#0" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CaptchaSmsResponse.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264"> <state relative-caret-position="-182">
<caret line="15" column="33" lean-forward="true" selection-start-line="15" selection-start-column="33" selection-end-line="15" selection-end-column="33" /> <caret line="64" column="87" selection-start-line="64" selection-start-column="87" selection-end-line="64" selection-end-column="87" />
<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" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="873"> <state relative-caret-position="1321">
<caret line="167" column="24" lean-forward="true" selection-start-line="167" selection-start-column="24" selection-end-line="167" selection-end-column="24" /> <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> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchPojo.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="169"> <state relative-caret-position="697">
<caret line="187" column="54" selection-start-line="187" selection-start-column="32" selection-end-line="187" selection-end-column="54" /> <caret line="39" column="33" selection-start-line="39" selection-start-column="33" selection-end-line="39" selection-end-column="33" />
<folding> <folding>
<element signature="e#6621#6622#0" expanded="true" /> <element signature="imports" expanded="true" />
<element signature="e#6654#6655#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TokenResponse.java"> <entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/onLunch2.json">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="462"> <state relative-caret-position="132">
<caret line="24" column="27" lean-forward="true" selection-start-line="24" selection-start-column="27" selection-end-line="24" selection-end-column="27" /> <caret line="30" column="11" selection-start-line="30" selection-start-column="11" selection-end-line="30" selection-end-column="11" />
</state> </state>
</provider> </provider>
</entry> </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/LunchUtils.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="261"> <state relative-caret-position="493">
<caret line="86" column="36" selection-start-line="86" selection-start-column="36" selection-end-line="86" selection-end-column="36" /> <caret line="105" column="35" selection-start-line="105" selection-start-column="35" selection-end-line="105" selection-end-column="35" />
<folding> <folding>
<element signature="imports" expanded="true" /> <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> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<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="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>
</component> </component>
<component name="masterDetails"> <component name="masterDetails">
<states> <states>
......
...@@ -20,6 +20,9 @@ public interface TTSConstants { ...@@ -20,6 +20,9 @@ public interface TTSConstants {
String DELETE_FAIL = "删除文件失败"; String DELETE_FAIL = "删除文件失败";
String DELETE_OFFLINE_FAIL = "对线下测试服务器的删除指令调用失败"; String DELETE_OFFLINE_FAIL = "对线下测试服务器的删除指令调用失败";
String TTS_REMOTE_ADDR = "127.0.0.1";
String TTS_REMOTE_LOCALHOST = "localhost";
interface BAI_DU { interface BAI_DU {
String APP_ID = "16998411"; String APP_ID = "16998411";
String API_KEY = "bHlKRYe9d5o7Ad2z2D5aGiVw"; String API_KEY = "bHlKRYe9d5o7Ad2z2D5aGiVw";
......
...@@ -7,8 +7,11 @@ import lombok.extern.slf4j.Slf4j; ...@@ -7,8 +7,11 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import static ai.qiwu.com.tts_service.common.TTSConstants.TTS_REMOTE_ADDR;
/** /**
* @author 苗权威 * @author 苗权威
...@@ -41,13 +44,15 @@ public class TTSController { ...@@ -41,13 +44,15 @@ public class TTSController {
@RequestParam(required = false) String text, @RequestParam(required = false) String botname, @RequestParam(required = false) String text, @RequestParam(required = false) String botname,
@RequestParam(required = false) String _type, @RequestParam(required = false) String volume, @RequestParam(required = false) String _type, @RequestParam(required = false) String volume,
@RequestParam(required = false) String pitch, @RequestParam(required = false) String speed, @RequestParam(required = false) String pitch, @RequestParam(required = false) String speed,
HttpServletResponse servletResponse) { @RequestParam(required = false) String get_online, HttpServletResponse servletResponse) {
TTSRequest ttsRequest = new TTSRequest(person, text, _type, pitch, tone, botname, volume, speed); TTSRequest ttsRequest = new TTSRequest(person, text, _type, pitch, tone, botname, volume, speed,get_online);
ttService.tts(ttsRequest, "GET", servletResponse); ttService.tts(ttsRequest, "GET", servletResponse);
} }
@PostMapping("/api/tts") @PostMapping("/api/tts")
public void tts_post(@RequestBody TTSRequest ttsRequest, HttpServletResponse response) { public void tts_post(@RequestBody TTSRequest ttsRequest, HttpServletResponse response) {
// String remoteAddr = request.getRemoteAddr();
// if (!TTS_REMOTE_ADDR.equals(remoteAddr) && !TTS_REMOTE_ADDR.equals(remoteAddr))
ttService.tts(ttsRequest, "POST", response); ttService.tts(ttsRequest, "POST", response);
} }
......
...@@ -22,9 +22,10 @@ public class TTSRequest { ...@@ -22,9 +22,10 @@ public class TTSRequest {
private String botname; private String botname;
private String volume; private String volume;
private String speed; private String speed;
private String get_online;
public TTSRequest(String person, String text, String _type, String pitch, public TTSRequest(String person, String text, String _type, String pitch,
String tone, String botname, String volume, String speed) { String tone, String botname, String volume, String speed,String get_online) {
this.person = person; this.person = person;
this.text = text; this.text = text;
this._type = _type; this._type = _type;
...@@ -33,5 +34,6 @@ public class TTSRequest { ...@@ -33,5 +34,6 @@ public class TTSRequest {
this.botname = botname; this.botname = botname;
this.volume = volume; this.volume = volume;
this.speed = speed; this.speed = speed;
this.get_online = get_online;
} }
} }
...@@ -36,7 +36,7 @@ public class Initialize implements InitializingBean { ...@@ -36,7 +36,7 @@ public class Initialize implements InitializingBean {
private static final String SERVER_NAME; private static final String SERVER_NAME;
private static final String SERVER_URL; private static final String SERVER_URL;
private static final String AUDIO_DIR; private static final String AUDIO_DIR;
private static final String ONLINE_SERVER; private static final Map<Integer, String> ONLINE_SERVER = new HashMap<>();
private static final String OFFLINE_SERVER; private static final String OFFLINE_SERVER;
private static final String THIRD_PARTY; private static final String THIRD_PARTY;
private static final String CHANGE_SOUND; private static final String CHANGE_SOUND;
...@@ -53,7 +53,14 @@ public class Initialize implements InitializingBean { ...@@ -53,7 +53,14 @@ public class Initialize implements InitializingBean {
SERVER_NAME = Config.getProperty("server_name"); SERVER_NAME = Config.getProperty("server_name");
SERVER_URL = Config.getProperty("server_url"); SERVER_URL = Config.getProperty("server_url");
AUDIO_DIR = Config.getProperty("audio_dir"); AUDIO_DIR = Config.getProperty("audio_dir");
ONLINE_SERVER = Config.getProperty("online_sever");
String[] online_sever_list = Config.getProperty("online_sever").split(",");
for (String serverAdd: online_sever_list) {
int key = Integer.parseInt(serverAdd.substring(0,1));
String value = serverAdd.substring(2);
ONLINE_SERVER.put(key, value);
}
OFFLINE_SERVER = Config.getProperty("offline_server"); OFFLINE_SERVER = Config.getProperty("offline_server");
THIRD_PARTY = Config.getProperty("third_party_tts_text"); THIRD_PARTY = Config.getProperty("third_party_tts_text");
CHANGE_SOUND = Config.getProperty("change_sound_path"); CHANGE_SOUND = Config.getProperty("change_sound_path");
...@@ -93,7 +100,7 @@ public class Initialize implements InitializingBean { ...@@ -93,7 +100,7 @@ public class Initialize implements InitializingBean {
return; return;
} }
if (withOnLine != null && withOnLine != 0) { if (withOnLine != null && withOnLine != 0) {
String url = String.format("%s:9%03d/synthesize", Initialize.getOnlineServer(), speakerInfo.getId()); String url = String.format("%s:9%03d/synthesize", Initialize.getOnlineServer(withOnLine), speakerInfo.getId());
URL_LS.add(url); URL_LS.add(url);
if (StringUtils.isBlank(init_person)) { if (StringUtils.isBlank(init_person)) {
init_person = person; init_person = person;
...@@ -201,8 +208,8 @@ public class Initialize implements InitializingBean { ...@@ -201,8 +208,8 @@ public class Initialize implements InitializingBean {
return AUDIO_DIR; return AUDIO_DIR;
} }
private static String getOnlineServer() { private static String getOnlineServer(int withOnline) {
return ONLINE_SERVER; return ONLINE_SERVER.get(withOnline);
} }
static String getOfflineServer() { static String getOfflineServer() {
......
...@@ -4,7 +4,7 @@ server_url=http://aws-nx2.chewrobot.com:9663 ...@@ -4,7 +4,7 @@ server_url=http://aws-nx2.chewrobot.com:9663
#server_url=http://aliyun-hz1.chewrobot.com:9663 #server_url=http://aliyun-hz1.chewrobot.com:9663
audio_dir=/root/TTS-service/audio audio_dir=/root/TTS-service/audio
#audio_dir=/root/GameEditor/mqw/project/tts/audio #audio_dir=/root/GameEditor/mqw/project/tts/audio
online_sever=http://dev01.centaurstech.com online_sever=1:http://dev01.centaurstech.com,2:http://dev01.centaurstech.com
offline_server=http://dev01.centaurstech.com:9001 offline_server=http://dev01.centaurstech.com:9001
#offline_server=http://aliyun-hz1.chewrobot.com:9001 #offline_server=http://aliyun-hz1.chewrobot.com:9001
#第三方tts标记 #第三方tts标记
......
...@@ -24,6 +24,7 @@ public interface Constants { ...@@ -24,6 +24,7 @@ public interface Constants {
"9AWUhbas+LG9mds="; "9AWUhbas+LG9mds=";
Integer GET_PRODUCT_TOKEN_FAIL_STATUS = 10086; Integer GET_PRODUCT_TOKEN_FAIL_STATUS = 10086;
String IMG_PREFIX = "https://aliyun-hz1.chewrobot.com"; String IMG_PREFIX = "https://aliyun-hz1.chewrobot.com";
String IMG_CUSTOM_PREFIX = "https://aliyun-hz1.chewrobot.com/xiaoduhome/image/";
String PRE_PRODUCT_IMG = "prod:"; String PRE_PRODUCT_IMG = "prod:";
String PRE_ENTER_PRODUCT = "enter"; String PRE_ENTER_PRODUCT = "enter";
String PRE_PRODUCT_PLAY = "我要玩"; String PRE_PRODUCT_PLAY = "我要玩";
......
...@@ -53,4 +53,5 @@ public class FrameTemple implements Agent{ ...@@ -53,4 +53,5 @@ public class FrameTemple implements Agent{
@JsonProperty("background-color") @JsonProperty("background-color")
private String backgroundColor; private String backgroundColor;
private String color; private String color;
private String position;
} }
...@@ -6,6 +6,7 @@ import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyDocument; ...@@ -6,6 +6,7 @@ import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyDocument;
import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyPageItemData; import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyPageItemData;
import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyPojo; import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyPojo;
import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyUtil; import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyUtil;
import ai.qiwu.com.xiaoduhome.common.temple.onLunch.LunchBotData;
import ai.qiwu.com.xiaoduhome.common.temple.playUpdate.PlayUpdateDocument; import ai.qiwu.com.xiaoduhome.common.temple.playUpdate.PlayUpdateDocument;
import ai.qiwu.com.xiaoduhome.common.temple.playUpdate.PlayUpdatePojo; import ai.qiwu.com.xiaoduhome.common.temple.playUpdate.PlayUpdatePojo;
import ai.qiwu.com.xiaoduhome.common.temple.rank.RankBotInfo; import ai.qiwu.com.xiaoduhome.common.temple.rank.RankBotInfo;
...@@ -17,6 +18,7 @@ import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommandPojo; ...@@ -17,6 +18,7 @@ import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommandPojo;
import ai.qiwu.com.xiaoduhome.entity.primary.GameProjectTb; import ai.qiwu.com.xiaoduhome.entity.primary.GameProjectTb;
import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail; import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuHistoryBotIdTime; import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuHistoryBotIdTime;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Data;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Item; import ai.qiwu.com.xiaoduhome.pojo.dpl.Item;
import ai.qiwu.com.xiaoduhome.pojo.dpl.MyDocument; import ai.qiwu.com.xiaoduhome.pojo.dpl.MyDocument;
import ai.qiwu.com.xiaoduhome.pojo.pageData.HistoryData; import ai.qiwu.com.xiaoduhome.pojo.pageData.HistoryData;
...@@ -41,6 +43,10 @@ import java.util.Base64; ...@@ -41,6 +43,10 @@ import java.util.Base64;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import static ai.qiwu.com.xiaoduhome.common.Constants.CATEGORY_IMG_URL.GU_FENG;
import static ai.qiwu.com.xiaoduhome.common.Constants.DPL_COMPONENT_ID.PRE_CATEGORY;
import static ai.qiwu.com.xiaoduhome.common.Constants.IMG_CUSTOM_PREFIX;
import static ai.qiwu.com.xiaoduhome.common.Constants.IMG_PREFIX;
import static ai.qiwu.com.xiaoduhome.common.temple.play.PlayUtils.getPlayDocument; import static ai.qiwu.com.xiaoduhome.common.temple.play.PlayUtils.getPlayDocument;
/** /**
...@@ -83,7 +89,7 @@ public class TempleUtils { ...@@ -83,7 +89,7 @@ public class TempleUtils {
page.setItems(dataList); page.setItems(dataList);
for (OnProductDetail bot : bots) { for (OnProductDetail bot : bots) {
FunnyPageItemData data = new FunnyPageItemData(); FunnyPageItemData data = new FunnyPageItemData();
data.setImgSrc(new StringBuilder(Constants.IMG_PREFIX).append(bot.getBannerImgUrl()).toString()); data.setImgSrc(new StringBuilder(IMG_PREFIX).append(bot.getBannerImgUrl()).toString());
String intro = bot.getIntro(); String intro = bot.getIntro();
if (StringUtils.isBlank(intro)) intro = "作者太懒,啥都没写"; if (StringUtils.isBlank(intro)) intro = "作者太懒,啥都没写";
data.setText(intro); data.setText(intro);
...@@ -120,35 +126,35 @@ public class TempleUtils { ...@@ -120,35 +126,35 @@ public class TempleUtils {
// return RANKING_DOCUMENT; // return RANKING_DOCUMENT;
// } // }
public static RankingDocument getRankingFirst() { // public static RankingDocument getRankingFirst() {
RankingDocument document = JSON.parseObject(getDPLTemple("static/json/rankFirst.json"), RankingDocument.class); // RankingDocument document = JSON.parseObject(getDPLTemple("static/json/rankFirst.json"), RankingDocument.class);
List<GameProjectTb> bots = ScheduleService.getRankingList(); // List<GameProjectTb> bots = ScheduleService.getRankingList();
List<RankBotInfo> datas = new ArrayList<>(); // List<RankBotInfo> datas = new ArrayList<>();
for (int i = 0; i < 3; i++) { // for (int i = 0; i < 3; i++) {
GameProjectTb bot = bots.get(i); // GameProjectTb bot = bots.get(i);
RankBotInfo data = new RankBotInfo(new StringBuilder(Constants.IMG_PREFIX).append(bot.getBannerImgUrl()).toString(), // RankBotInfo data = new RankBotInfo(new StringBuilder(Constants.IMG_PREFIX).append(bot.getBannerImgUrl()).toString(),
new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString(), correctName(bot.getName())); // new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString(), correctName(bot.getName()));
if (i == 0) data.setLogo("https://aliyun-hz1.chewrobot.com/xiaoduhome/image/first.png"); // if (i == 0) data.setLogo("https://aliyun-hz1.chewrobot.com/xiaoduhome/image/first.png");
else if (i == 1) data.setLogo("https://aliyun-hz1.chewrobot.com/xiaoduhome/image/second.png"); // else if (i == 1) data.setLogo("https://aliyun-hz1.chewrobot.com/xiaoduhome/image/second.png");
else data.setLogo("https://aliyun-hz1.chewrobot.com/xiaoduhome/image/third.png"); // else data.setLogo("https://aliyun-hz1.chewrobot.com/xiaoduhome/image/third.png");
OnProductDetail detail = ScheduleService.getProductIdDetail().get(bot.getBotAccount()); // OnProductDetail detail = ScheduleService.getProductIdDetail().get(bot.getBotAccount());
Date createTime = detail.getCreateTime(); // Date createTime = detail.getCreateTime();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); // SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String time = sdf.format(createTime); // String time = sdf.format(createTime);
data.setTime(new StringBuilder(Constants.PRODUCT_INTRO.CREATE_TIME).append(time).toString()); // data.setTime(new StringBuilder(Constants.PRODUCT_INTRO.CREATE_TIME).append(time).toString());
data.setWatches(new StringBuilder("点击数: ").append(bot.getWatch()).toString()); // data.setWatches(new StringBuilder("点击数: ").append(bot.getWatch()).toString());
data.setAuth(new StringBuilder(Constants.PRODUCT_INTRO.AUTHOR).append(bot.getAuthorName()).toString()); // data.setAuth(new StringBuilder(Constants.PRODUCT_INTRO.AUTHOR).append(bot.getAuthorName()).toString());
StringBuilder labels = new StringBuilder(Constants.PRODUCT_INTRO.LABEL); // StringBuilder labels = new StringBuilder(Constants.PRODUCT_INTRO.LABEL);
for (String label: detail.getLabels()) { // for (String label: detail.getLabels()) {
labels.append(Constants.PRODUCT_INTRO.SPACE).append(label); // labels.append(Constants.PRODUCT_INTRO.SPACE).append(label);
} // }
data.setLabel(labels.toString()); // data.setLabel(labels.toString());
data.setIntro(detail.getIntro()); // data.setIntro(detail.getIntro());
datas.add(data); // datas.add(data);
} // }
document.getMainTemplate().getItems().get(2).setData(datas); // document.getMainTemplate().getItems().get(2).setData(datas);
return document; // return document;
} // }
public static RankingDocument getRanking() { public static RankingDocument getRanking() {
return RankUtil.getRankDocument(); return RankUtil.getRankDocument();
...@@ -163,7 +169,7 @@ public class TempleUtils { ...@@ -163,7 +169,7 @@ public class TempleUtils {
for (int i = num; i < upBound; i++) { for (int i = num; i < upBound; i++) {
OnProductDetail detail = ScheduleService.getAllOnProduct().get(i); OnProductDetail detail = ScheduleService.getAllOnProduct().get(i);
botIds.append(detail.getBotAccount()).append(File.separator); botIds.append(detail.getBotAccount()).append(File.separator);
String imgSrc = new StringBuilder(Constants.IMG_PREFIX).append(detail.getBannerImgUrl()).toString(); String imgSrc = new StringBuilder(IMG_PREFIX).append(detail.getBannerImgUrl()).toString();
String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(detail.getName()).toString(); String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(detail.getName()).toString();
if (i < num+4) { if (i < num+4) {
RecommandBotInfo recommend = new RecommandBotInfo(imgSrc, imageId, correctName(detail.getName())); RecommandBotInfo recommend = new RecommandBotInfo(imgSrc, imageId, correctName(detail.getName()));
...@@ -193,7 +199,7 @@ public class TempleUtils { ...@@ -193,7 +199,7 @@ public class TempleUtils {
StringBuilder botIds = new StringBuilder(); StringBuilder botIds = new StringBuilder();
for (GameProjectTb bot:ScheduleService.getRecommendList()) { for (GameProjectTb bot:ScheduleService.getRecommendList()) {
botIds.append(bot.getBotAccount()).append(File.separator); botIds.append(bot.getBotAccount()).append(File.separator);
String imgSrc = new StringBuilder(Constants.IMG_PREFIX).append(bot.getBannerImgUrl()).toString(); String imgSrc = new StringBuilder(IMG_PREFIX).append(bot.getBannerImgUrl()).toString();
String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString(); String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString();
RecommandBotInfo recommend = new RecommandBotInfo(imgSrc, imageId, correctName(bot.getName())); RecommandBotInfo recommend = new RecommandBotInfo(imgSrc, imageId, correctName(bot.getName()));
datas.add(recommend); datas.add(recommend);
...@@ -224,7 +230,7 @@ public class TempleUtils { ...@@ -224,7 +230,7 @@ public class TempleUtils {
String intro = productDetail.getIntro(); String intro = productDetail.getIntro();
if (StringUtils.isBlank(intro)) intro = "作者太懒没写介绍"; if (StringUtils.isBlank(intro)) intro = "作者太懒没写介绍";
String imgUrl = new StringBuilder(Constants.IMG_PREFIX).append(productDetail.getBannerImgUrl()).toString(); String imgUrl = new StringBuilder(IMG_PREFIX).append(productDetail.getBannerImgUrl()).toString();
String botAccountId = new StringBuilder(Constants.PRE_ENTER_PRODUCT).append(correctName(productDetail.getName())).toString(); String botAccountId = new StringBuilder(Constants.PRE_ENTER_PRODUCT).append(correctName(productDetail.getName())).toString();
String lastTime = sdf.format(new java.sql.Date(historyInfo.getLastTime())); String lastTime = sdf.format(new java.sql.Date(historyInfo.getLastTime()));
String name = productDetail.getName(); String name = productDetail.getName();
...@@ -258,7 +264,7 @@ public class TempleUtils { ...@@ -258,7 +264,7 @@ public class TempleUtils {
String intro = productDetail.getIntro(); String intro = productDetail.getIntro();
if (StringUtils.isBlank(intro)) intro = "作者太懒没写介绍"; if (StringUtils.isBlank(intro)) intro = "作者太懒没写介绍";
String imgUrl = new StringBuilder(Constants.IMG_PREFIX).append(productDetail.getBannerImgUrl()).toString(); String imgUrl = new StringBuilder(IMG_PREFIX).append(productDetail.getBannerImgUrl()).toString();
String botAccountId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(correctName(productDetail.getName())).toString(); String botAccountId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(correctName(productDetail.getName())).toString();
String name = productDetail.getName(); String name = productDetail.getName();
HistoryData data = new HistoryData(botAccountId, i++, imgUrl, correctName(name), intro); HistoryData data = new HistoryData(botAccountId, i++, imgUrl, correctName(name), intro);
...@@ -292,7 +298,34 @@ public class TempleUtils { ...@@ -292,7 +298,34 @@ public class TempleUtils {
return collect; return collect;
} }
private static String correctName(String name) { public static List<LunchBotData> buildDataList(List<GameProjectTb> list, int begin) {
ArrayList<LunchBotData> dataList = new ArrayList<>();
for (GameProjectTb projectInfo : list) {
String productName = correctName(projectInfo.getName());
String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(projectInfo.getName()).toString();
String src = new StringBuilder(IMG_PREFIX).append(projectInfo.getBannerImgUrl()).toString();
LunchBotData data = new LunchBotData(src, imageId,productName);
data.setNum(begin++);
dataList.add(data);
}
return dataList;
}
public static List<LunchBotData> buildCategoryDataList() {
ArrayList<LunchBotData> dataList = new ArrayList<>();
int i = 21;
for (String cateName : ScheduleService.getCATEGORY()) {
String imageId = new StringBuilder(PRE_CATEGORY).append(cateName).toString();
String imgSrc = new StringBuilder(IMG_CUSTOM_PREFIX)
.append(ScheduleService.getCategoryCharac()[i-21]).append(".png").toString();
LunchBotData data = new LunchBotData(imgSrc, imageId, cateName);
data.setNum(i++);
dataList.add(data);
}
return dataList;
}
public static String correctName(String name) {
int brace = name.indexOf("{"); int brace = name.indexOf("{");
if (brace != -1) name = name.substring(0, brace); if (brace != -1) name = name.substring(0, brace);
return name; return name;
......
...@@ -3,6 +3,8 @@ package ai.qiwu.com.xiaoduhome.common.temple.funny; ...@@ -3,6 +3,8 @@ package ai.qiwu.com.xiaoduhome.common.temple.funny;
import ai.qiwu.com.xiaoduhome.common.temple.rank.RankingPojo; import ai.qiwu.com.xiaoduhome.common.temple.rank.RankingPojo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data; import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -11,7 +13,8 @@ import java.util.List; ...@@ -11,7 +13,8 @@ import java.util.List;
* @author 苗权威 * @author 苗权威
* @dateTime 19-8-30 上午11:28 * @dateTime 19-8-30 上午11:28
*/ */
@Data @Getter
@Setter
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class FunnyMainTemplate { public class FunnyMainTemplate {
private List<String> parameters = new ArrayList<>(); private List<String> parameters = new ArrayList<>();
......
...@@ -5,6 +5,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; ...@@ -5,6 +5,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data; import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.util.List; import java.util.List;
...@@ -12,7 +14,8 @@ import java.util.List; ...@@ -12,7 +14,8 @@ import java.util.List;
* @author 苗权威 * @author 苗权威
* @dateTime 19-8-30 上午11:18 * @dateTime 19-8-30 上午11:18
*/ */
@Data @Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true) @JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class FunnyPojo { public class FunnyPojo {
......
package ai.qiwu.com.xiaoduhome.common.temple.onLunch;
import lombok.Getter;
import lombok.Setter;
/**
* @author 苗权威
* @dateTime 19-9-5 下午5:05
*/
@Getter
@Setter
public class LunchBotData {
private String imageSrc;
private String imageId;
private String imageName;
private Integer num;
public LunchBotData(String imageSrc, String imageId, String imageName) {
this.imageSrc = imageSrc;
this.imageId = imageId;
this.imageName = imageName;
}
}
package ai.qiwu.com.xiaoduhome.common.temple.onLunch;
import com.baidu.dueros.data.response.directive.dpl.Document;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* @author 苗权威
* @dateTime 19-9-5 下午4:32
*/
@Getter
@Setter
@ToString
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class LunchDocument extends Document {
private LunchMainTemplate mainTemplate;
}
package ai.qiwu.com.xiaoduhome.common.temple.onLunch;
import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyPojo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-9-5 下午4:33
*/
@Getter
@Setter
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class LunchMainTemplate {
private List<String> parameters = new ArrayList<>();
private List<LunchPojo> items;
public LunchMainTemplate() {
this.parameters.add("payload");
this.items = new ArrayList<>();
}
}
package ai.qiwu.com.xiaoduhome.common.temple.onLunch;
import ai.qiwu.com.xiaoduhome.common.temple.FrameTemple;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* @author 苗权威
* @dateTime 19-9-5 下午4:34
*/
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class LunchPojo {
private String type;
private String position;
private String height;
private String width;
private String left;
private String top;
private String src;
private List<LunchPojo> items;
@JsonProperty("padding-right")
private String paddingRight;
private String componentId;
private String headerTitle;
private Boolean hasBackIcon;
private String direction;
@JsonProperty("margin-bottom")
private String marginBottom;
@JsonProperty("margin-left")
private String marginLeft;
@JsonProperty("margin-right")
private String marginRight;
@JsonProperty("margin-top")
private String marginTop;
@JsonProperty("border-radius")
private String borderRadius;
@JsonProperty("scale-type")
private String scaleType;
private List<Event> onClick;
@JsonProperty("background-color")
private String backgroundColor;
@JsonProperty("align-items")
private String alignItems;
private String text;
@JsonProperty("font-size")
private String fontSize;
private List<LunchBotData> data;
private List<FrameTemple> firstItem;
}
package ai.qiwu.com.xiaoduhome.common.temple.onLunch;
import ai.qiwu.com.xiaoduhome.common.temple.TempleUtils;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
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;
/**
* @author 苗权威
* @dateTime 19-9-5 下午4:48
*/
@Slf4j
public class LunchUtils {
private static final LunchPojo LUNCH_LIST_CON = buildImgFrmTxtContainer();
private static final LunchPojo LUNCH_LIST_CATEGORY_CON = buildCategoryList();
private static final LunchPojo LUNCH_HEAD = buildLunchHead();
private static final LunchPojo LUNCH_BACK_IMG = buildLunchBackgroundImg();
private volatile static LunchDocument lunchDocument = buildLunchDocument();
public static LunchDocument buildLunchDocument() {
LunchDocument document = new LunchDocument();
LunchMainTemplate mainTemplate = new LunchMainTemplate();
document.setMainTemplate(mainTemplate);
LunchPojo conRecommend = buildLunchList(TempleUtils.buildDataList(ScheduleService.getRecommendList(),1));
conRecommend.setFirstItem(Collections.singletonList(TempleUtils.getFrameRecommand()));
LunchPojo conRanking = buildLunchList(TempleUtils.buildDataList(ScheduleService.getRankingList(), 11));
conRanking.setFirstItem(Collections.singletonList(TempleUtils.getFrameRakking()));
LunchPojo conCategory = buildLunchCategoryList(TempleUtils.buildCategoryDataList());
conCategory.setFirstItem(Collections.singletonList(TempleUtils.getFrameCategory()));
LunchPojo scroll = buildLunchScroll();
scroll.setItems(Arrays.asList(conRecommend,conRanking,conCategory));
mainTemplate.getItems().addAll(Arrays.asList(LUNCH_BACK_IMG,LUNCH_HEAD,scroll));
return document;
}
private static LunchPojo buildLunchScroll() {
LunchPojo scroll = new LunchPojo();
scroll.setType("ScrollView");
scroll.setDirection("vertical");
scroll.setWidth("100%");
scroll.setMarginBottom("80dp");
return scroll;
}
private static LunchPojo buildLunchCategoryList(List<LunchBotData> data) {
LunchPojo container = new LunchPojo();
container.setType("Container");
container.setWidth("100%");
LunchPojo list = new LunchPojo();
list.setType("List");
list.setHeight("310dp");
list.setMarginLeft("15dp");
list.setMarginRight("15dp");
list.setDirection("horizontal");
list.setData(data);
list.setItems(Collections.singletonList(LUNCH_LIST_CATEGORY_CON));
container.setItems(Collections.singletonList(list));
return container;
}
private static LunchPojo buildLunchList(List<LunchBotData> data) {
LunchPojo container = new LunchPojo();
container.setType("Container");
container.setWidth("100%");
LunchPojo list = new LunchPojo();
list.setType("List");
list.setMarginLeft("15dp");
list.setMarginRight("15dp");
list.setMarginBottom("70dp");
list.setDirection("horizontal");
list.setData(data);
list.setItems(Collections.singletonList(LUNCH_LIST_CON));
container.setItems(Collections.singletonList(list));
return container;
}
private static LunchPojo buildCategoryList() {
LunchPojo category = buildImgFrmTxtContainer();
category.getItems().remove(2);
return category;
}
private static LunchPojo buildImgFrmTxtContainer() {
LunchPojo container = new LunchPojo();
container.setType("Container");
container.setMarginTop("40dp");
container.setWidth("200dp");
container.setMarginLeft("20dp");
//image
LunchPojo image = new LunchPojo();
image.setType("Image");
image.setWidth("190dp");
image.setHeight("190dp");
image.setMarginLeft("7dp");
image.setMarginTop("7dp");
image.setPosition("absolute");
image.setScaleType("fitXY");
image.setBorderRadius("22dp");
image.setSrc("${data.imageSrc}");
image.setOnClick(Collections.singletonList(new Event("SendEvent", "${data.imageId}")));
//frame
LunchPojo frame = new LunchPojo();
frame.setType("Frame");
frame.setWidth("35dp");
frame.setHeight("35dp");
frame.setBackgroundColor("rgba(0,0,0,0.9)");
frame.setBorderRadius("13dp");
LunchPojo frmCon = new LunchPojo();
frmCon.setType("Container");
frmCon.setWidth("100%");
frmCon.setHeight("100%");
frmCon.setAlignItems("center");
LunchPojo frmText = new LunchPojo();
frmText.setType("Text");
frmText.setText("${data.num}");
frmText.setFontSize("22dp");
frmCon.setItems(Collections.singletonList(frmText));
frame.setItems(Collections.singletonList(frmCon));
//text
LunchPojo text = new LunchPojo();
text.setType("Text");
text.setFontSize("23dp");
text.setMarginTop("160dp");
text.setMarginLeft("7dp");
text.setText("${data.imageName}");
List<LunchPojo> list = new ArrayList<>();
list.add(image);
list.add(frame);
list.add(text);
container.setItems(list);
return container;
}
private static LunchPojo buildLunchBackgroundImg() {
LunchPojo backGroundImg = new LunchPojo();
backGroundImg.setType("Image");
backGroundImg.setPosition("absolute");
backGroundImg.setTop("0dp");
backGroundImg.setLeft("0dp");
backGroundImg.setSrc("https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg");
backGroundImg.setHeight("100%");
backGroundImg.setWidth("100%");
return backGroundImg;
}
private static LunchPojo buildLunchHead() {
LunchPojo head = new LunchPojo();
head.setType("Header");
head.setHeaderTitle("交游天下");
head.setHasBackIcon(false);
return head;
}
public static LunchDocument getLunchDocument() {
return lunchDocument;
}
public static void setLunchDocument(LunchDocument lunchDocument) {
LunchUtils.lunchDocument = lunchDocument;
}
}
...@@ -77,18 +77,18 @@ public class RankUtil { ...@@ -77,18 +77,18 @@ public class RankUtil {
StringBuilder botIds = new StringBuilder(); StringBuilder botIds = new StringBuilder();
List<RankBotInfo> dataFirst = new ArrayList<>(); List<RankBotInfo> dataFirst = new ArrayList<>();
List<RankBotInfo> dataSec = new ArrayList<>(); List<RankBotInfo> dataSec = new ArrayList<>();
int i = 0; int i = 1;
for (GameProjectTb bot: bots) { for (GameProjectTb bot: bots) {
botIds.append(bot.getBotAccount()).append(File.separator); botIds.append(bot.getBotAccount()).append(File.separator);
String imgSrc = new StringBuilder(Constants.IMG_PREFIX).append(bot.getBannerImgUrl()).toString(); String imgSrc = new StringBuilder(Constants.IMG_PREFIX).append(bot.getBannerImgUrl()).toString();
String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString(); String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString();
RankBotInfo rankBotInfo = new RankBotInfo(imgSrc, imageId, correctName(bot.getName())); RankBotInfo rankBotInfo = new RankBotInfo(imgSrc, imageId, correctName(bot.getName()));
if (i < 3) { rankBotInfo.setNum(i);
rankBotInfo.setNum(); if (i < 4) {
dataFirst.add(rankBotInfo); dataFirst.add(rankBotInfo);
} else if (i == 4) { } else if (i == 4) {
dataFirst.add(rankBotInfo); dataFirst.add(rankBotInfo);
} else if (i < 8) { } else if (i < 9) {
dataSec.add(rankBotInfo); dataSec.add(rankBotInfo);
} else { } else {
break; break;
......
package ai.qiwu.com.xiaoduhome.common.temple.recommand; package ai.qiwu.com.xiaoduhome.common.temple.recommand;
import lombok.Data; import lombok.Data;
import lombok.Getter;
import lombok.Setter;
/** /**
* @author 苗权威 * @author 苗权威
* @dateTime 19-8-27 上午10:52 * @dateTime 19-8-27 上午10:52
*/ */
@Data @Getter
@Setter
public class RecommandBotInfo { public class RecommandBotInfo {
private String imageSrc; private String imageSrc;
private String imageId; private String imageId;
......
package ai.qiwu.com.xiaoduhome.common.temple.recommand;
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.Event;
import ai.qiwu.com.xiaoduhome.service.ScheduleService;
import java.io.File;
import java.util.*;
/**
* @author 苗权威
* @dateTime 19-9-5 上午11:25
*/
public class RecommendUtil {
private static final RecommandPojo RECOM_BACK_IMG = buildRecomendBackgroundImg();
private static final RecommandPojo RECOM_HEAD = buildRecommendHead();
private static final RecommandPojo RECOM_FOOTER = buildRecommendFooter();
private static final RecommandPojo RECOM_LIST_CON = buildImgFrmTxtContainer();
public static RecommandDocument getRecommendDocument(int num) {
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);
int bound = ScheduleService.getAllProductCount();
List<OnProductDetail> bots = ScheduleService.getAllOnProduct();
StringBuilder botIds = new StringBuilder();
int begin = num*16;
int end;
if (begin >= bound) return null;
bound = begin+16 <= bound ? begin+16 : bound;
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;
for (int i = begin; i < end; i++) {
OnProductDetail bot = bots.get(i);
botIds.append(bot.getBotAccount()).append(File.separator);
String imgSrc = new StringBuilder(Constants.IMG_PREFIX).append(bot.getBannerImgUrl()).toString();
String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString();
RecommandBotInfo detail = new RecommandBotInfo(imgSrc,imageId, TempleUtils.correctName(bot.getName()));
detail.setNum(i-begin+n);
data.add(detail);
}
return data;
}
private static RecommandPojo buildRecommendList(List<RecommandBotInfo> data) {
RecommandPojo list = new RecommandPojo();
list.setType("List");
list.setWidth("100%");
list.setHeight("240dp");
list.setMarginLeft("20dp");
list.setMarginBottom("35dp");
list.setDirection("horizontal");
list.setData(data);
list.setItems(Collections.singletonList(RECOM_LIST_CON));
return list;
}
private static RecommandPojo buildImgFrmTxtContainer() {
RecommandPojo container = new RecommandPojo();
container.setType("Container");
container.setWidth("220dp");
container.setMarginLeft("15dp");
//image
RecommandPojo image = new RecommandPojo();
image.setType("Image");
image.setWidth("190dp");
image.setHeight("190dp");
image.setMarginLeft("7dp");
image.setMarginTop("7dp");
image.setPosition("absolute");
image.setScaleType("fitXY");
image.setBorderRadius("15dp");
image.setSrc("${data.imageSrc}");
image.setOnClick(Collections.singletonList(new Event("SendEvent", "${data.imageId}")));
//frame
RecommandPojo frame = new RecommandPojo();
frame.setType("Frame");
frame.setWidth("40dp");
frame.setHeight("40dp");
frame.setBackgroundColor("rgba(0,0,0,0.9)");
frame.setBorderRadius("12dp");
RecommandPojo frmCon = new RecommandPojo();
frmCon.setType("Container");
frmCon.setWidth("100%");
frmCon.setHeight("100%");
frmCon.setAlignItems("center");
RecommandPojo frmText = new RecommandPojo();
frmText.setType("Text");
frmText.setText("${data.num}");
frmText.setFontSize("28dp");
frmCon.setItems(Collections.singletonList(frmText));
frame.setItems(Collections.singletonList(frmCon));
//text
RecommandPojo text = new RecommandPojo();
text.setType("Text");
text.setFontSize("25dp");
text.setMarginTop("160dp");
text.setMarginLeft("7dp");
text.setText("${data.imageName}");
container.setItems(Arrays.asList(image,frame,text));
return container;
}
private static RecommandPojo buildRecommendFooter() {
RecommandPojo footerCon = new RecommandPojo();
footerCon.setType("Container");
footerCon.setPosition("absolute");
footerCon.setWidth("100%");
footerCon.setLeft("0");
footerCon.setBottom("0");
RecommandPojo footer = new RecommandPojo();
footer.setType("Footer");
footer.setHints(Arrays.asList("打开第一个","下一页","上一页","返回"));
footerCon.setItems(Collections.singletonList(footer));
return footerCon;
}
private static RecommandPojo buildRecomendBackgroundImg() {
RecommandPojo backGroundImg = new RecommandPojo();
backGroundImg.setType("Image");
backGroundImg.setPosition("absolute");
backGroundImg.setTop("0dp");
backGroundImg.setLeft("0dp");
backGroundImg.setSrc("https://aliyun-hz1.chewrobot.com/xiaoduhome/image/backend.jpg");
backGroundImg.setHeight("100%");
backGroundImg.setWidth("100%");
return backGroundImg;
}
private static RecommandPojo buildRecommendHead() {
RecommandPojo head = new RecommandPojo();
head.setType("Header");
head.setHeaderTitle("推荐页");
head.setHasBackIcon(false);
return head;
}
}
...@@ -21,7 +21,7 @@ public interface XiaoDuHistoryTBRepository extends JpaRepository<XiaoDuHistoryTB ...@@ -21,7 +21,7 @@ public interface XiaoDuHistoryTBRepository extends JpaRepository<XiaoDuHistoryTB
@Modifying @Modifying
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@Query(value = "delete from xiaodu_history_tb where xiaodu_user_id=?1 and last_time < (select last_time from (select last_time from xiaodu_history_tb where xiaodu_user_id=?1 order by last_time limit 14,1) t1)", nativeQuery = true) @Query(value = "delete from xiaodu_history_tb where xiaodu_user_id=?1 and last_time < (select last_time from (select last_time from xiaodu_history_tb where xiaodu_user_id=?1 order by last_time limit 15,1) t1)", nativeQuery = true)
void deleteOverTime(String userId); void deleteOverTime(String userId);
@Modifying @Modifying
...@@ -34,4 +34,7 @@ public interface XiaoDuHistoryTBRepository extends JpaRepository<XiaoDuHistoryTB ...@@ -34,4 +34,7 @@ public interface XiaoDuHistoryTBRepository extends JpaRepository<XiaoDuHistoryTB
<S extends XiaoDuHistoryTB> S save(S s); <S extends XiaoDuHistoryTB> S save(S s);
XiaoDuHistoryTB getByXiaoduUserIdAndBotId(String xiaoduUserId, String botId); XiaoDuHistoryTB getByXiaoduUserIdAndBotId(String xiaoduUserId, String botId);
@Query(value = "select distinct bot_id from xiaodu_history_tb where xiaodu_user_id=?1",nativeQuery = true)
List<String> getUserHostory(String userId);
} }
...@@ -5,11 +5,13 @@ import ai.qiwu.com.xiaoduhome.common.temple.Agent; ...@@ -5,11 +5,13 @@ import ai.qiwu.com.xiaoduhome.common.temple.Agent;
import ai.qiwu.com.xiaoduhome.common.temple.CollectHistoryDocument; import ai.qiwu.com.xiaoduhome.common.temple.CollectHistoryDocument;
import ai.qiwu.com.xiaoduhome.common.temple.TempleUtils; import ai.qiwu.com.xiaoduhome.common.temple.TempleUtils;
import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyDocument; import ai.qiwu.com.xiaoduhome.common.temple.funny.FunnyDocument;
import ai.qiwu.com.xiaoduhome.common.temple.onLunch.LunchUtils;
import ai.qiwu.com.xiaoduhome.common.temple.play.PlayDocument; import ai.qiwu.com.xiaoduhome.common.temple.play.PlayDocument;
import ai.qiwu.com.xiaoduhome.common.temple.play.PlayUtils; import ai.qiwu.com.xiaoduhome.common.temple.play.PlayUtils;
import ai.qiwu.com.xiaoduhome.common.temple.rank.RankUtil; import ai.qiwu.com.xiaoduhome.common.temple.rank.RankUtil;
import ai.qiwu.com.xiaoduhome.common.temple.rank.RankingDocument; import ai.qiwu.com.xiaoduhome.common.temple.rank.RankingDocument;
import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommandDocument; import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommandDocument;
import ai.qiwu.com.xiaoduhome.common.temple.recommand.RecommendUtil;
import ai.qiwu.com.xiaoduhome.entity.primary.*; import ai.qiwu.com.xiaoduhome.entity.primary.*;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuHistoryTB; import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuHistoryTB;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderTB; import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderTB;
...@@ -75,7 +77,7 @@ import static ai.qiwu.com.xiaoduhome.service.ScheduleService.CATEGORY_PRODUCT_LI ...@@ -75,7 +77,7 @@ import static ai.qiwu.com.xiaoduhome.service.ScheduleService.CATEGORY_PRODUCT_LI
*/ */
@Slf4j @Slf4j
public class DplBotService extends BaseBot { public class DplBotService extends BaseBot {
private static final MyDocument LOAD_DOCUMENT; //private static final MyDocument LOAD_DOCUMENT;
private static final MyDocument PROD_INFO; private static final MyDocument PROD_INFO;
...@@ -96,23 +98,25 @@ public class DplBotService extends BaseBot { ...@@ -96,23 +98,25 @@ public class DplBotService extends BaseBot {
private static volatile FunnyDocument FUNNY_DEFAULT_DOCUMENT; private static volatile FunnyDocument FUNNY_DEFAULT_DOCUMENT;
private static final ConcurrentHashMap<String, List<String>> USER_HISTORY = new ConcurrentHashMap<>();
static { static {
LOAD_DOCUMENT = JSON.parseObject(getDPLTemple("static/json/onLunch2.json"), MyDocument.class); // LOAD_DOCUMENT = JSON.parseObject(getDPLTemple("static/json/onLunch2.json"), MyDocument.class);
List<Item> thirdRow = LOAD_DOCUMENT.getMainTemplate().getItems().get(1).getItems().get(1).getItems(); // List<Item> thirdRow = LOAD_DOCUMENT.getMainTemplate().getItems().get(1).getItems().get(1).getItems();
List<Agent> l1 = new ArrayList<>(); // List<Agent> l1 = new ArrayList<>();
l1.add(TempleUtils.getFrameRakking()); // l1.add(TempleUtils.getFrameRakking());
thirdRow.get(0).setFirstItem(l1); // thirdRow.get(0).setFirstItem(l1);
thirdRow.get(0).getItems().get(0).setData(buildDataList(ScheduleService.RANKING_LIST, 1)); // thirdRow.get(0).getItems().get(0).setData(buildDataList(ScheduleService.RANKING_LIST, 1));
//
List<Agent> l2 = new ArrayList<>(); // List<Agent> l2 = new ArrayList<>();
l2.add(TempleUtils.getFrameRecommand()); // l2.add(TempleUtils.getFrameRecommand());
thirdRow.get(1).setFirstItem(l2); // thirdRow.get(1).setFirstItem(l2);
thirdRow.get(1).getItems().get(0).setData(buildDataList(ScheduleService.RECOMMEND_LIST, 11)); // thirdRow.get(1).getItems().get(0).setData(buildDataList(ScheduleService.RECOMMEND_LIST, 11));
//
List<Agent> l3 = new ArrayList<>(); // List<Agent> l3 = new ArrayList<>();
l3.add(TempleUtils.getFrameCategory()); // l3.add(TempleUtils.getFrameCategory());
thirdRow.get(2).setFirstItem(l3); // thirdRow.get(2).setFirstItem(l3);
thirdRow.get(2).getItems().get(0).setData(buildCategoryDataList()); // thirdRow.get(2).getItems().get(0).setData(buildCategoryDataList());
CATEGORY_PROD = JSON.parseObject(getDPLTemple("static/json/categoryPro.json"), MyDocument.class); CATEGORY_PROD = JSON.parseObject(getDPLTemple("static/json/categoryPro.json"), MyDocument.class);
List<Item> container = CATEGORY_PROD.getMainTemplate().getItems().get(0).getItems(); List<Item> container = CATEGORY_PROD.getMainTemplate().getItems().get(0).getItems();
...@@ -132,6 +136,10 @@ public class DplBotService extends BaseBot { ...@@ -132,6 +136,10 @@ public class DplBotService extends BaseBot {
RenderDocument renderDocument = new RenderDocument(FIRST_PAGE); RenderDocument renderDocument = new RenderDocument(FIRST_PAGE);
this.addDirective(renderDocument); this.addDirective(renderDocument);
OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, Constants.WelcomeWord.WELCOME); OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, Constants.WelcomeWord.WELCOME);
POOL.submit(() -> {
XiaoDuHistoryTBRepository repository = BaseHolder.getBean("xiaoDuHistoryTBRepository");
USER_HISTORY.put(getUserId(), repository.getUserHostory(getUserId()));
});
return new Response(outputSpeech); return new Response(outputSpeech);
} }
...@@ -317,11 +325,11 @@ public class DplBotService extends BaseBot { ...@@ -317,11 +325,11 @@ public class DplBotService extends BaseBot {
OverTimeDetail detail; OverTimeDetail detail;
if ((detail = LAST_OUTTIME_RESULT.remove(userId)) != null) { if ((detail = LAST_OUTTIME_RESULT.remove(userId)) != null) {
for (Directive directive : detail.getDirectives()) { for (Directive directive : detail.getDirectives()) {
log.info("上次超时保存的Directive:{}",directive.getClass().getName()); //log.info("上次超时保存的Directive:{}",directive.getClass().getName());
this.addDirective(directive); this.addDirective(directive);
} }
for (String key : detail.getAttributes().keySet()) { for (String key : detail.getAttributes().keySet()) {
log.info("上次超时保存的key:{}",key); //log.info("上次超时保存的key:{}",key);
this.setSessionAttribute(key, detail.getAttributes().get(key)); this.setSessionAttribute(key, detail.getAttributes().get(key));
} }
return detail.getResponse(); return detail.getResponse();
...@@ -553,7 +561,7 @@ public class DplBotService extends BaseBot { ...@@ -553,7 +561,7 @@ public class DplBotService extends BaseBot {
return new Response(outputSpeech); return new Response(outputSpeech);
} }
} else if ("loadingPage".equals(componentId)) { } else if ("loadingPage".equals(componentId)) {
RenderDocument renderDocument = new RenderDocument(LOAD_DOCUMENT); RenderDocument renderDocument = new RenderDocument(LunchUtils.getLunchDocument());
this.addDirective(new PushStack()); this.addDirective(new PushStack());
this.addDirective(renderDocument); this.addDirective(renderDocument);
return new Response(); return new Response();
...@@ -1121,7 +1129,7 @@ public class DplBotService extends BaseBot { ...@@ -1121,7 +1129,7 @@ public class DplBotService extends BaseBot {
char second; char second;
if (trace == null || trace.length() <= 2 || getQuery().contains("首")) { if (trace == null || trace.length() <= 2 || getQuery().contains("首")) {
// home page // home page
RenderDocument renderDocument = new RenderDocument(LOAD_DOCUMENT); RenderDocument renderDocument = new RenderDocument(LunchUtils.getLunchDocument());
dplBotService.addDirective(renderDocument); dplBotService.addDirective(renderDocument);
dplBotService.setSessionAttribute(BACK_TRACE,null); dplBotService.setSessionAttribute(BACK_TRACE,null);
detail.getDirectives().add(renderDocument); detail.getDirectives().add(renderDocument);
...@@ -1139,7 +1147,7 @@ public class DplBotService extends BaseBot { ...@@ -1139,7 +1147,7 @@ public class DplBotService extends BaseBot {
second = trace.charAt(1); second = trace.charAt(1);
switch (second){ switch (second){
case '0':{ case '0':{
RenderDocument renderDocument = new RenderDocument(LOAD_DOCUMENT); RenderDocument renderDocument = new RenderDocument(LunchUtils.getLunchDocument());
dplBotService.addDirective(renderDocument); dplBotService.addDirective(renderDocument);
dplBotService.setSessionAttribute(BACK_TRACE,null); dplBotService.setSessionAttribute(BACK_TRACE,null);
detail.getAttributes().put(BACK_TRACE,null); detail.getAttributes().put(BACK_TRACE,null);
...@@ -1150,7 +1158,7 @@ public class DplBotService extends BaseBot { ...@@ -1150,7 +1158,7 @@ public class DplBotService extends BaseBot {
//collect //collect
String appUserId = getSessionAttribute("userId"); String appUserId = getSessionAttribute("userId");
if (appUserId == null) { if (appUserId == null) {
RenderDocument renderDocument = new RenderDocument(LOAD_DOCUMENT); RenderDocument renderDocument = new RenderDocument(LunchUtils.getLunchDocument());
dplBotService.addDirective(renderDocument); dplBotService.addDirective(renderDocument);
dplBotService.setSessionAttribute(BACK_TRACE,null); dplBotService.setSessionAttribute(BACK_TRACE,null);
detail.getAttributes().put(BACK_TRACE,null); detail.getAttributes().put(BACK_TRACE,null);
...@@ -1192,8 +1200,7 @@ public class DplBotService extends BaseBot { ...@@ -1192,8 +1200,7 @@ public class DplBotService extends BaseBot {
String recommendNextCount = dplBotService.getSessionAttribute("comCnt"); String recommendNextCount = dplBotService.getSessionAttribute("comCnt");
int count = 1; int count = 1;
if (recommendNextCount != null) count = Integer.parseInt(recommendNextCount); if (recommendNextCount != null) count = Integer.parseInt(recommendNextCount);
int begin = (count-1)*8; RecommandDocument recommandDocument = RecommendUtil.getRecommendDocument(count-1);
RecommandDocument recommandDocument = TempleUtils.getRecommend(begin);
RenderDocument render = new RenderDocument(); RenderDocument render = new RenderDocument();
render.setDocument(recommandDocument); render.setDocument(recommandDocument);
dplBotService.addDirective(render); dplBotService.addDirective(render);
...@@ -1289,10 +1296,10 @@ public class DplBotService extends BaseBot { ...@@ -1289,10 +1296,10 @@ public class DplBotService extends BaseBot {
detail.setResponse(dealOpenNum(rankToken,detail)); detail.setResponse(dealOpenNum(rankToken,detail));
//LAST_OUTTIME_RESULT.put(userId, dealOpenNum(rankToken)); //LAST_OUTTIME_RESULT.put(userId, dealOpenNum(rankToken));
} else if (recommengToken != null) { } else if (recommengToken != null) {
detail.setResponse(dealOpenNum(recommengToken,detail)); detail.setResponse(dealOpenNumInRecommend(recommengToken,detail));
//LAST_OUTTIME_RESULT.put(userId, dealOpenNum(recommengToken)); //LAST_OUTTIME_RESULT.put(userId, dealOpenNum(recommengToken));
} else { } else {
OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, "似乎出了什么问题,请点击屏幕吧"); OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, "屏幕上的图标都是可以点击的哦");
detail.getResponse().setOutputSpeech(outputSpeech); detail.getResponse().setOutputSpeech(outputSpeech);
//LAST_OUTTIME_RESULT.put(userId, new Response(outputSpeech)); //LAST_OUTTIME_RESULT.put(userId, new Response(outputSpeech));
} }
...@@ -1328,8 +1335,7 @@ public class DplBotService extends BaseBot { ...@@ -1328,8 +1335,7 @@ public class DplBotService extends BaseBot {
break; break;
} }
int count = Integer.parseInt(recommendNextCount); int count = Integer.parseInt(recommendNextCount);
int begin = (count-2)*8; RecommandDocument document = RecommendUtil.getRecommendDocument(count-2);
RecommandDocument document = TempleUtils.getRecommend(begin);
RenderDocument render = new RenderDocument(document); RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(render); dplBotService.addDirective(render);
detail.getDirectives().add(render); detail.getDirectives().add(render);
...@@ -1411,11 +1417,11 @@ public class DplBotService extends BaseBot { ...@@ -1411,11 +1417,11 @@ public class DplBotService extends BaseBot {
String recommendNextCount = dplBotService.getSessionAttribute("comCnt"); String recommendNextCount = dplBotService.getSessionAttribute("comCnt");
int count = 1; int count = 1;
if (recommendNextCount != null) count = Integer.parseInt(recommendNextCount); if (recommendNextCount != null) count = Integer.parseInt(recommendNextCount);
int begin = count*8; RecommandDocument document = RecommendUtil.getRecommendDocument(count);
if (begin >= ScheduleService.getAllProductCount()) { if (document == null) {
detail.setResponse(buildErrorResponse("客观你已经翻到底啦,没有更多了")); detail.setResponse(buildErrorResponse("客观你已经翻到底了,没有更多了"));
}else { break;
RecommandDocument document = TempleUtils.getRecommend(begin); }
RenderDocument render = new RenderDocument(document); RenderDocument render = new RenderDocument(document);
dplBotService.addDirective(render); dplBotService.addDirective(render);
detail.getDirectives().add(render); detail.getDirectives().add(render);
...@@ -1424,7 +1430,6 @@ public class DplBotService extends BaseBot { ...@@ -1424,7 +1430,6 @@ public class DplBotService extends BaseBot {
detail.getAttributes().put("recommand",token); detail.getAttributes().put("recommand",token);
dplBotService.setSessionAttribute("comCnt",String.valueOf(count+1)); dplBotService.setSessionAttribute("comCnt",String.valueOf(count+1));
detail.getAttributes().put("comCnt",String.valueOf(count+1)); detail.getAttributes().put("comCnt",String.valueOf(count+1));
}
break; break;
} }
case 4: { case 4: {
...@@ -1502,7 +1507,8 @@ public class DplBotService extends BaseBot { ...@@ -1502,7 +1507,8 @@ public class DplBotService extends BaseBot {
LAST_OUTTIME_RESULT.put(userId, detail); LAST_OUTTIME_RESULT.put(userId, detail);
return; return;
} else if ("recommand".equals(intentName)) { } else if ("recommand".equals(intentName)) {
RecommandDocument recommandDocument = TempleUtils.getRecommend(0); //RecommandDocument recommandDocument = TempleUtils.getRecommend(0);
RecommandDocument recommandDocument = RecommendUtil.getRecommendDocument(0);
RenderDocument render = new RenderDocument(); RenderDocument render = new RenderDocument();
render.setDocument(recommandDocument); render.setDocument(recommandDocument);
dplBotService.addDirective(render); dplBotService.addDirective(render);
...@@ -1838,13 +1844,28 @@ public class DplBotService extends BaseBot { ...@@ -1838,13 +1844,28 @@ public class DplBotService extends BaseBot {
} }
} }
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("这个数字超出了范围");
OnProductDetail detail = ScheduleService.PRODUCT_ID_DETAIL.get(tokenList[collectNum-1]);
if (doesUserPlayed(detail.getBotAccount())) {
String productName = correctName(detail.getName());
return directInProduct(productName, detail.getBotAccount(), overDetail);
} else {
return enterProductInfo(detail.getName(), overDetail);
}
}
private Response dealOpenNumInHome(int num, OverTimeDetail detail) { private Response dealOpenNumInHome(int num, OverTimeDetail detail) {
if (num > 0 && num <= 10) { if (num > 0 && num <= 10) {
GameProjectTb bot = ScheduleService.getRankingList().get(num-1); GameProjectTb bot = ScheduleService.getRankingList().get(num-1);
return enterProductInfo(bot.getName(), detail); if (doesUserPlayed(bot.getBotAccount())) return enterProductInfo(bot.getName(), detail);
else return directInProduct(bot.getName(), bot.getBotAccount(), detail);
} else if (num > 10 && num <= 20) { } else if (num > 10 && num <= 20) {
GameProjectTb bot = ScheduleService.getRecommendList().get(num-11); GameProjectTb bot = ScheduleService.getRecommendList().get(num-11);
return enterProductInfo(bot.getName(), detail); if (doesUserPlayed(bot.getBotAccount())) return enterProductInfo(bot.getName(), detail);
else return directInProduct(bot.getName(), bot.getBotAccount(), detail);
} else if (num > 20 && num <= 30) { } else if (num > 20 && num <= 30) {
String categoryName = ScheduleService.CATEGORY[num-21]; String categoryName = ScheduleService.CATEGORY[num-21];
displayCategoryProd(categoryName); displayCategoryProd(categoryName);
...@@ -1861,6 +1882,42 @@ public class DplBotService extends BaseBot { ...@@ -1861,6 +1882,42 @@ public class DplBotService extends BaseBot {
} }
} }
private Response directInProduct(String name,String botId,OverTimeDetail detail) {
String productName = correctName(name);
String enterProductWord = new StringBuilder(Constants.PRE_PRODUCT_PLAY).append(productName).toString();
log.info("进入作品语句:{}", enterProductWord);
QiWuResponse data = null;
try {
data = RequestTerminal.requestTerminate(enterProductWord, getCustomerId());
} catch (IOException e) {
log.error("请求终端接口出错:", e.toString());
}
if (data == null) {
return buildErrorResponse(SORRY_UNCATCH);
}
String text = data.getText();
text = text.substring(text.indexOf("】")+1);
PlayDocument document = PlayUtils.getPlayDocument(productName, data.getAudio(), text);
RenderDocument render = new RenderDocument(document);
this.setSessionAttribute(PRE_COLLE, null);
detail.getAttributes().put(PRE_COLLE, null);
String trace = getSessionAttribute(BACK_TRACE);
if (trace == null || trace.length() != 2) trace = "00";
String backTrace = new StringBuilder(trace).append(botId).toString();
this.setSessionAttribute(BACK_TRACE, backTrace);
detail.getAttributes().put(BACK_TRACE,backTrace);
this.addDirective(render);
detail.getDirectives().add(render);
return new Response();
}
private boolean doesUserPlayed(String botAccount) {
List<String> playedBotIds = USER_HISTORY.get(getUserId());
if (playedBotIds != null) return playedBotIds.contains(botAccount);
return false;
}
private Response enterProductInfo(String productName, OverTimeDetail detail) { private Response enterProductInfo(String productName, OverTimeDetail detail) {
OnProductDetail productDetail = ScheduleService.PRODUCT_NAME_DETAIL.get(productName); OnProductDetail productDetail = ScheduleService.PRODUCT_NAME_DETAIL.get(productName);
if (productDetail == null && !productName.equals("清新传")) { if (productDetail == null && !productName.equals("清新传")) {
......
package ai.qiwu.com.xiaoduhome.service; package ai.qiwu.com.xiaoduhome.service;
import ai.qiwu.com.xiaoduhome.common.temple.onLunch.LunchUtils;
import ai.qiwu.com.xiaoduhome.entity.primary.GameProjectTb; import ai.qiwu.com.xiaoduhome.entity.primary.GameProjectTb;
import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail; import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail;
import ai.qiwu.com.xiaoduhome.repository.primary.AllOnProductInfoRepository; import ai.qiwu.com.xiaoduhome.repository.primary.AllOnProductInfoRepository;
...@@ -8,16 +9,19 @@ import ai.qiwu.com.xiaoduhome.repository.primary.ProjectLabelRepository; ...@@ -8,16 +9,19 @@ import ai.qiwu.com.xiaoduhome.repository.primary.ProjectLabelRepository;
import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuHistoryTBRepository; import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuHistoryTBRepository;
import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuOrderTbRepository; import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuOrderTbRepository;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import okhttp3.OkHttpClient;
import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.sql.Date;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
/** /**
* @author 苗权威 * @author 苗权威
...@@ -32,11 +36,12 @@ public class ScheduleService implements InitializingBean { ...@@ -32,11 +36,12 @@ public class ScheduleService implements InitializingBean {
static volatile List<OnProductDetail> ALL_ON_PRODUCT = new ArrayList<>(); static volatile List<OnProductDetail> ALL_ON_PRODUCT = new ArrayList<>();
static final HashMap<String, OnProductDetail> PRODUCT_NAME_DETAIL = new HashMap<>(); static final HashMap<String, OnProductDetail> PRODUCT_NAME_DETAIL = new HashMap<>();
static final HashMap<String, OnProductDetail> PRODUCT_ID_DETAIL = new HashMap<>(); static final HashMap<String, OnProductDetail> PRODUCT_ID_DETAIL = new HashMap<>();
static final HashMap<String, String> NX2_BOT_TO_HZ1 = new HashMap<>();
static final HashMap<String, String> NX2_BOT_TO_HZ1 = new HashMap<>();
static final List<String> EXCEPT_BOT_ACCOUNT = new ArrayList<>(); static final List<String> EXCEPT_BOT_ACCOUNT = new ArrayList<>();
static final String[] CATEGORY = {"古风", "科幻", "占星", "恋爱", "灾难", "架空", "儿童", "经营", "冒险", "武侠"}; 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<>(); static final ConcurrentHashMap<String, List<GameProjectTb>> CATEGORY_PRODUCT_LIST = new ConcurrentHashMap<>();
private final GameProjectTbRepository gameProjectTbRepository; private final GameProjectTbRepository gameProjectTbRepository;
...@@ -71,7 +76,7 @@ public class ScheduleService implements InitializingBean { ...@@ -71,7 +76,7 @@ public class ScheduleService implements InitializingBean {
//log.error("更新排行榜出错:{}", e.getMessage()); //log.error("更新排行榜出错:{}", e.getMessage());
} }
@Scheduled(cron = "0 0 18 * * ?") @Scheduled(cron = "0 0 */1 * * ?")
public void initRecommendList() { public void initRecommendList() {
new Thread(() -> { new Thread(() -> {
RECOMMEND_LIST = gameProjectTbRepository.recommendList(); RECOMMEND_LIST = gameProjectTbRepository.recommendList();
...@@ -132,6 +137,14 @@ public class ScheduleService implements InitializingBean { ...@@ -132,6 +137,14 @@ public class ScheduleService implements InitializingBean {
}).start(); }).start();
} }
@Scheduled(cron = "0 0 */1 * * ?")
public void shuffleAllProList() {
new Thread(() -> {
Collections.shuffle(ALL_ON_PRODUCT);
LunchUtils.setLunchDocument(LunchUtils.buildLunchDocument());
}).start();
}
@Override @Override
public void afterPropertiesSet() throws Exception { public void afterPropertiesSet() throws Exception {
initAllOnTableProductInfo(); initAllOnTableProductInfo();
...@@ -142,6 +155,7 @@ public class ScheduleService implements InitializingBean { ...@@ -142,6 +155,7 @@ public class ScheduleService implements InitializingBean {
deleteUnPayedOrder(); deleteUnPayedOrder();
tian(); tian();
keng(); keng();
Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
} }
private void keng() { private void keng() {
...@@ -200,4 +214,12 @@ public class ScheduleService implements InitializingBean { ...@@ -200,4 +214,12 @@ public class ScheduleService implements InitializingBean {
public static int getAllProductCount() { public static int getAllProductCount() {
return allProductCount; return allProductCount;
} }
public static String[] getCATEGORY() {
return CATEGORY;
}
public static String[] getCategoryCharac() {
return CATEGORY_CHARAC;
}
} }
{ {
"type": "Container", "type": "Container",
"flex-direction": "row", "flex-direction": "row",
"margin-bottom": "15dp", "height": "50dp",
"margin-top": "30dp",
"items": [ "items": [
{ {
"type": "Text", "type": "Text",
"text": "排行榜", "font-size": "31dp",
"font-size": "34dp",
"margin-left": "30dp" "margin-left": "30dp"
}, },
{ {
"type": "Frame", "type": "Frame",
"margin-left": "15dp", "margin-left": "15dp",
"border-top-left-radius": "25dp", "border-top-left-radius": "25dp",
"border-top-right-radius": "15dp", "border-top-right-radius": "18dp",
"border-bottom-right-radius": "15dp", "border-bottom-right-radius": "18dp",
"padding-vertical": "8dp", "padding-vertical": "8dp",
"padding-horizontal": "15dp", "padding-horizontal": "15dp",
"background-color": "rgba(0,0,0,0.2)", "background-color": "rgba(0,0,0,0.3)",
"items": [ "items": [
{ {
"type": "Text", "type": "Text",
"font-size": "24dp", "font-size": "23dp",
"color": "rgb(255,255,255)" "color": "rgb(255,255,255)"
} }
] ]
......
...@@ -16,13 +16,6 @@ ...@@ -16,13 +16,6 @@
"width": "100%" "width": "100%"
}, },
{ {
"type": "Container",
"height": "100%",
"width": "100%",
"padding-right": "20dp",
"componentId": "whole",
"items": [
{
"type": "Header", "type": "Header",
"headerImage": "https://aliyun-hz1.chewrobot.com/xiaodu/image/5b2d0a11/lvzhou/15640330891628686.jpg", "headerImage": "https://aliyun-hz1.chewrobot.com/xiaodu/image/5b2d0a11/lvzhou/15640330891628686.jpg",
"headerTitle": "交游天下", "headerTitle": "交游天下",
...@@ -264,6 +257,4 @@ ...@@ -264,6 +257,4 @@
} }
] ]
} }
]
}
} }
\ No newline at end of file
...@@ -21,22 +21,42 @@ ...@@ -21,22 +21,42 @@
"hasBackIcon": false "hasBackIcon": false
}, },
{ {
"type": "Container",
"height": "100%",
"width": "100%",
"items": [
{
"type": "Container",
"width": "100%",
"margin-left": "15dp",
"direction": "horizontal",
"items": [
]
},
{
"type": "List", "type": "List",
"width": "100%", "width": "100%",
"height": "100%", "margin-left": "15dp",
"direction": "vertical", "direction": "horizontal",
"items": [ "items": [
{ {
"type": "Container", "type": "Container",
"flex-direction": "row", "width":"220dp",
"margin-bottom": "35dp",
"margin-left": "15dp",
"items": [ "items": [
{ {
"type": "Image", "type": "Image",
"width": "230dp", "width": "170dp",
"height": "230dp", "height": "170dp",
"src": "${data.imageSrc}", "margin-left": "7dp",
"margin-top": "7dp",
"position": "absolute", "position": "absolute",
"border-radius": "15dp", "componentId": "${data.imageId}",
"scale-type": "fitXY",
"border-radius": "10dp",
"src": "${data.imageSrc}",
"onClick": [ "onClick": [
{ {
"type": "SendEvent", "type": "SendEvent",
...@@ -45,84 +65,52 @@ ...@@ -45,84 +65,52 @@
] ]
}, },
{ {
"type": "Image", "type": "Frame",
"src": "${data.logo}", "width": "40dp",
"width": "30dp", "height": "40dp",
"height": "30dp", "background-color": "rgba(0,0,0,0.9)",
"border-radius": "5dp" "border-radius": "12dp",
},
{
"type": "Container",
"margin-left": "250dp",
"flex-direction": "column",
"items": [ "items": [
{ {
"type": "Text",
"margin-top": "10dp",
"text": "${data.imageName}",
"font-size": "38dp",
"margin-left": "5%"
},
{
"type": "Text",
"text": "${data.watches}",
"margin-top": "10dp",
"font-size": "25dp",
"margin-left": "5%"
},
{
"type": "Container", "type": "Container",
"margin-top": "10dp", "width": "100%",
"flex-direction":"row", "height": "100%",
"items":[ "align-items":"center",
{ "items": [
"type": "Text",
"text": "${data.time}",
"font-size": "22dp",
"margin-left": "5%"
},
{ {
"type": "Text", "type": "Text",
"text": "${data.auth}", "text": "${data.num}",
"font-size": "22dp", "font-size": "25dp"
"margin-left": "10%"
} }
] ]
},
{
"type": "Container",
"margin-top": "6dp",
"flex-direction":"row",
"items":[
{
"type": "Text",
"max-lines": 1,
"text": "${data.label}",
"font-size": "22dp",
"margin-left": "5%"
} }
] ]
}, },
{ {
"type": "Container",
"margin-top": "9dp",
"margin-right": "26dp",
"items": [
{
"type": "Text", "type": "Text",
"font-size": "25dp", "font-size": "25dp",
"line-height": "20dp", "margin-top": "140dp",
"text": "${data.intro}", "margin-left": "7dp",
"margin-top": "30dp", "text": "${data.imageName}"
"max-lines": 3,
"text-overflow": "ellipsis",
"margin-left": "5%"
} }
] ]
} }
] ]
} }
] ]
},
{
"type": "Container",
"position": "absolute",
"width": "100%",
"left": "0",
"bottom": "0",
"items": [
{
"type": "Footer",
"hints": [
"打开第一个","下一页","上一页","返回"
]
} }
] ]
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"hasBackIcon": false "hasBackIcon": false
}, },
{ {
"type": "Container", "type": "ScrollView",
"height": "100%", "height": "100%",
"width": "100%", "width": "100%",
"items": [ "items": [
......
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