Commit 7b2df62c by 苗权威

9.23

parent 43bd8ab8
......@@ -5,18 +5,16 @@
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tts_service/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/tts_service/src/main/resources/application.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTBTiny.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTBTiny.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBRepository.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBTintRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBTintRepository.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/repository/secondary/XiaoDuOrderTBIdRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTBIdRepository.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" beforeDir="false" afterPath="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" />
<ignored path="$PROJECT_DIR$/target/" />
......@@ -59,11 +57,20 @@
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="321">
<caret line="254" column="22" lean-forward="true" selection-start-line="254" selection-start-column="22" selection-end-line="254" selection-end-column="22" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoPojo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="306">
<caret line="151" column="46" lean-forward="true" selection-start-line="151" selection-start-column="46" selection-end-line="151" selection-end-column="46" />
<state relative-caret-position="526">
<caret line="45" column="19" selection-start-line="45" selection-start-column="19" selection-end-line="45" selection-end-column="19" />
<folding>
<element signature="imports" expanded="true" />
</folding>
......@@ -71,61 +78,55 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="9" column="28" selection-start-line="9" selection-start-column="17" selection-end-line="9" selection-end-column="28" />
<state relative-caret-position="300">
<caret line="17" column="60" selection-start-line="17" selection-start-column="38" selection-end-line="17" selection-end-column="60" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/String.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="132">
<caret line="2405" column="6" lean-forward="true" selection-start-line="2405" selection-start-column="6" selection-end-line="2405" selection-end-column="6" />
<state relative-caret-position="234">
<caret line="79" column="36" lean-forward="true" selection-start-line="79" selection-start-column="36" selection-end-line="79" selection-end-column="36" />
<folding>
<element signature="e#94598#94599#0" expanded="true" />
<element signature="e#94636#94637#0" expanded="true" />
<element signature="imports" expanded="true" />
<element signature="e#3549#3550#0" expanded="true" />
<element signature="e#3576#3577#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTBTiny.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="526">
<caret line="439" column="37" selection-start-line="439" selection-start-column="21" selection-end-line="439" selection-end-column="37" />
<state relative-caret-position="374">
<caret line="19" column="16" selection-start-line="19" selection-start-column="16" selection-end-line="19" selection-end-column="16" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="702">
<caret line="1154" column="17" selection-start-line="1154" selection-start-column="17" selection-end-line="1154" selection-end-column="17" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#28336#28382#0" />
<element signature="e#29251#29365#0" />
<element signature="e#34361#34370#0" />
</folding>
<state relative-caret-position="526">
<caret line="38" column="48" selection-start-line="38" selection-start-column="48" selection-end-line="38" selection-end-column="48" />
</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/DplBotService.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="256">
<caret line="159" column="17" selection-start-line="159" selection-start-column="17" selection-end-line="159" selection-end-column="17" />
<folding>
<element signature="e#8809#8811#0" />
<element signature="e#22305#22356#0" />
</folding>
<state relative-caret-position="484">
<caret line="26" column="27" selection-start-line="26" selection-start-column="27" selection-end-line="26" selection-end-column="27" />
</state>
</provider>
</entry>
......@@ -133,8 +134,12 @@
<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="4252">
<caret line="235" column="44" selection-start-line="235" selection-start-column="44" selection-end-line="235" selection-end-column="44" />
<state relative-caret-position="402">
<caret line="291" column="9" selection-start-line="291" selection-start-column="9" selection-end-line="291" selection-end-column="9" />
<folding>
<element signature="e#11262#11263#0" expanded="true" />
<element signature="e#11299#11300#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
......@@ -153,10 +158,6 @@
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>HZ1_BOT_TO_NX2</find>
<find>PlayUtils</find>
<find>res</find>
<find>botName</find>
<find>PERSON_MOODURL</find>
<find>OFFLINE_SERVER</find>
<find>successUpLoadFileIds</find>
......@@ -174,7 +175,6 @@
<find>url</find>
<find>folder</find>
<find>allOldname2Id</find>
<find>tts</find>
<find>id2Info</find>
<find>allRepeateName2Info</find>
<find>repeateName2Ids</find>
......@@ -183,6 +183,11 @@
<find>buildMp3Response</find>
<find>HttpServletResponse</find>
<find>check</find>
<find>USER_HISTORY</find>
<find>getJsonFromName</find>
<find>T</find>
<find>userId</find>
<find>tts</find>
</findStrings>
<replaceStrings>
<replace>OPENID_CACHE</replace>
......@@ -198,21 +203,11 @@
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/spirit/pom.xml" />
<option value="$PROJECT_DIR$/tts_offline/pom.xml" />
<option value="$PROJECT_DIR$/xiaodu/pom.xml" />
<option value="$PROJECT_DIR$/xiaoya/pom.xml" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/Utils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/TempleUtils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/AsideImageResponse.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/playAside/AsideImageResponse.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/playAside/AsideImage.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/RequestTerminal.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/GameProjectTbRepository.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/entity/primary/OnProductDetail.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/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml" />
<option value="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/request/XiaoAiRequest.java" />
<option value="$PROJECT_DIR$/xiaoai/src/main/java/ai/qiwu/mi/xiaoai/model/response/Test.java" />
......@@ -236,19 +231,29 @@
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/MultipartResolver.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/GlobalExceptionHandler.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/resources/application.yml" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBRepository.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/repository/secondary/XiaoDuOrderTBIdRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java" />
<option value="$PROJECT_DIR$/xiaoduhome/pom.xml" />
<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/repository/primary/AppFavoriteTBRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBTintRepository.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTBTiny.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/resources/application.yml" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.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/productInfo/ProductInfoPojo.java" />
<option value="$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/pom.xml" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoMainTemplete.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoDocument.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoMainTemplate.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoUtils.java" />
<option value="$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java" />
</list>
</option>
</component>
......@@ -281,8 +286,8 @@
<option name="skipTests" value="true" />
</component>
<component name="ProjectFrameBounds">
<option name="x" value="160" />
<option name="y" value="71" />
<option name="x" value="339" />
<option name="y" value="82" />
<option name="width" value="1438" />
<option name="height" value="973" />
</component>
......@@ -304,25 +309,25 @@
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" 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="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
......@@ -330,50 +335,80 @@
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" 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="xiaoduhome" 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="xiaoduhome" 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" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="tts_service" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
<item name="onLunch" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
<item name="playUpdate" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
<item name="productInfo" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
<item name="smartbox" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
<item name="temple" type="462c0819:PsiDirectoryNode" />
<item name="rank" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -381,6 +416,9 @@
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="repository" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -389,6 +427,9 @@
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="repository" type="462c0819:PsiDirectoryNode" />
<item name="primary" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -398,6 +439,15 @@
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="java" type="462c0819:PsiDirectoryNode" />
<item name="xiaoduhome" 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="xiaoduhome" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="smartbox" type="b2602c69:ProjectViewProjectNode" />
......@@ -406,13 +456,14 @@
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="main" type="462c0819:PsiDirectoryNode" />
<item name="resources" type="462c0819:PsiDirectoryNode" />
<item name="json" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="PackagesPane" />
<pane id="Scope" />
<pane id="PackagesPane" />
</panes>
</component>
<component name="PropertiesComponent">
......@@ -426,7 +477,7 @@
<property name="RequestMappingsPanelWidth2" value="75" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1569064172230" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1569243497110" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../game_editor/backend_rebuild" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
......@@ -478,7 +529,7 @@
</list>
</option>
</component>
<component name="RunManager" selected="Application.TestBuild">
<component name="RunManager" selected="Application.TTSUtils">
<configuration name="DplBotService" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="ai.qiwu.com.xiaoduhome.service.DplBotService" />
<module name="xiaoduhome" />
......@@ -881,8 +932,8 @@
</list>
<recent_temporary>
<list>
<item itemvalue="Application.TestBuild" />
<item itemvalue="Application.TTSUtils" />
<item itemvalue="Application.TestBuild" />
<item itemvalue="Application.RequestTerminal" />
<item itemvalue="Application.RecommendUtil" />
<item itemvalue="Application.DplBotService" />
......@@ -987,7 +1038,8 @@
<workItem from="1568857014509" duration="55000" />
<workItem from="1568857106635" duration="35300000" />
<workItem from="1568943225685" duration="29355000" />
<workItem from="1569029605369" duration="28317000" />
<workItem from="1569029605369" duration="28417000" />
<workItem from="1569203185522" duration="24107000" />
</task>
<servers />
</component>
......@@ -997,7 +1049,7 @@
</history-entry>
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="2194084000" />
<option name="totallyTimeSpent" value="2218291000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
......@@ -1009,9 +1061,10 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="160" y="71" width="1438" height="973" extended-state="0" />
<frame x="339" y="82" width="1438" height="973" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Structure" order="0" sideWeight="0.51135004" side_tool="true" weight="0.20321637" />
<window_info id="Structure" order="0" sideWeight="0.5121951" side_tool="true" weight="0.18129496" />
<window_info id="Designer" order="1" />
<window_info id="Image Layers" order="2" />
<window_info id="Capture Tool" order="3" />
......@@ -1019,7 +1072,7 @@
<window_info id="Favorites" order="5" sideWeight="0.5017626" side_tool="true" weight="0.25712198" />
<window_info id="Alibaba Cloud Explorer" order="6" sideWeight="0.49941108" weight="0.32843497" />
<window_info id="Web" order="7" side_tool="true" />
<window_info active="true" content_ui="combo" id="Project" order="8" sideWeight="0.48864993" visible="true" weight="0.21438849" />
<window_info active="true" content_ui="combo" id="Project" order="8" sideWeight="0.4878049" visible="true" weight="0.18129496" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.2902439" />
<window_info anchor="bottom" id="Run" order="2" weight="0.50609756" />
......@@ -1042,7 +1095,7 @@
<window_info anchor="right" id="Maven" order="3" weight="0.23453237" />
<window_info anchor="right" id="Palette" order="4" />
<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.32733813" />
<window_info anchor="right" id="Palette&#9;" order="7" />
<window_info anchor="right" id="Theme Preview" order="8" />
<window_info anchor="right" id="Alibaba Log Console" order="9" />
......@@ -1057,413 +1110,429 @@
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/net/URLEncoder.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="199" column="25" selection-start-line="199" selection-start-column="25" selection-end-line="199" selection-end-column="25" />
<state relative-caret-position="924">
<caret line="55" column="37" selection-start-line="55" selection-start-column="37" selection-end-line="55" selection-end-column="37" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSConstants.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="507">
<caret line="34" column="15" selection-start-line="34" selection-start-column="15" selection-end-line="34" selection-end-column="15" />
<state relative-caret-position="220">
<caret line="49" column="49" selection-start-line="49" selection-start-column="49" selection-end-line="49" selection-end-column="49" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/spring-web/5.1.8.RELEASE/spring-web-5.1.8.RELEASE-sources.jar!/org/springframework/web/multipart/MultipartFile.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Collection.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="49" column="11" selection-start-line="49" selection-start-column="11" selection-end-line="49" selection-end-column="11" />
<state relative-caret-position="924">
<caret line="359" column="12" selection-start-line="359" selection-start-column="12" selection-end-line="359" selection-end-column="12" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/commons-fileupload/commons-fileupload/1.4/commons-fileupload-1.4-sources.jar!/org/apache/commons/fileupload/FileItem.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/List.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="165" column="11" selection-start-line="165" selection-start-column="11" selection-end-line="165" selection-end-column="11" />
<state relative-caret-position="528">
<caret line="707" column="12" selection-start-line="707" selection-start-column="12" selection-end-line="707" selection-end-column="12" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/spring-web/5.1.8.RELEASE/spring-web-5.1.8.RELEASE-sources.jar!/org/springframework/web/multipart/commons/CommonsMultipartFile.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">
<state relative-caret-position="286">
<caret line="91" column="34" lean-forward="true" selection-start-line="91" selection-start-column="34" selection-end-line="91" selection-end-column="34" />
<state relative-caret-position="330">
<caret line="115" column="44" selection-start-line="115" selection-start-column="38" selection-end-line="115" selection-end-column="44" />
<folding>
<element signature="e#2856#2857#0" expanded="true" />
<element signature="e#2898#2899#0" expanded="true" />
<element signature="e#8485#8486#0" expanded="true" />
<element signature="e#8519#8520#0" expanded="true" />
<element signature="e#8578#8579#0" expanded="true" />
<element signature="e#8615#8616#0" expanded="true" />
<element signature="e#8724#8725#0" expanded="true" />
<element signature="e#8756#8757#0" expanded="true" />
<element signature="e#8818#8819#0" expanded="true" />
<element signature="e#8869#8870#0" expanded="true" />
<element signature="e#8923#8924#0" expanded="true" />
<element signature="e#8967#8968#0" expanded="true" />
<element signature="e#9072#9073#0" expanded="true" />
<element signature="e#9110#9111#0" expanded="true" />
<element signature="e#9285#9286#0" expanded="true" />
<element signature="e#9317#9318#0" expanded="true" />
<element signature="e#9485#9486#0" expanded="true" />
<element signature="e#9527#9528#0" expanded="true" />
<element signature="e#9580#9581#0" expanded="true" />
<element signature="e#9622#9623#0" expanded="true" />
<element signature="e#9676#9677#0" expanded="true" />
<element signature="e#9719#9720#0" expanded="true" />
<element signature="e#9872#9873#0" expanded="true" />
<element signature="e#9909#9910#0" expanded="true" />
<element signature="e#9953#9954#0" expanded="true" />
<element signature="e#9987#9988#0" expanded="true" />
<element signature="e#10121#10122#0" expanded="true" />
<element signature="e#10180#10181#0" expanded="true" />
<element signature="e#10233#10234#0" expanded="true" />
<element signature="e#10271#10272#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/upload/UploadOneSenData.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AllOnProductInfoRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="26" column="11" selection-start-line="26" selection-start-column="11" selection-end-line="26" selection-end-column="11" />
<state relative-caret-position="198">
<caret line="13" column="17" selection-start-line="13" selection-start-column="17" selection-end-line="13" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSLSRequest.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="17" column="13" selection-start-line="17" selection-start-column="13" selection-end-line="17" selection-end-column="13" />
<state relative-caret-position="330">
<caret line="23" column="4" selection-start-line="23" selection-start-column="4" selection-end-line="23" selection-end-column="4" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppUserTBRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="418">
<caret line="20" column="19" selection-start-line="20" selection-start-column="19" selection-end-line="20" selection-end-column="19" />
<state relative-caret-position="198">
<caret line="14" column="17" selection-start-line="14" selection-start-column="17" selection-end-line="14" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/GameProjectTbRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2464">
<caret line="127" column="24" selection-start-line="127" selection-start-column="24" selection-end-line="127" selection-end-column="24" />
<state relative-caret-position="198">
<caret line="15" column="17" selection-start-line="15" selection-start-column="17" selection-end-line="15" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/DelCacheCallbackUrlRequest.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/ProjectLabelRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286">
<caret line="13" column="39" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="39" />
<folding>
<element signature="imports" expanded="true" />
</folding>
<state relative-caret-position="198">
<caret line="15" column="17" selection-start-line="15" selection-start-column="17" selection-end-line="15" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/spring-web/5.1.8.RELEASE/spring-web-5.1.8.RELEASE-sources.jar!/org/springframework/web/multipart/commons/CommonsFileUploadSupport.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryBotTimeRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="256">
<caret line="116" column="68" lean-forward="true" selection-start-line="116" selection-start-column="68" selection-end-line="116" selection-end-column="68" />
<state relative-caret-position="176">
<caret line="11" column="17" selection-start-line="11" selection-start-column="17" selection-end-line="11" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/boot/spring-boot/2.1.6.RELEASE/spring-boot-2.1.6.RELEASE.jar!/org/springframework/boot/web/server/WebServerFactoryCustomizer.class">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTBIdRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="110">
<caret line="8" column="17" selection-start-line="8" selection-start-column="17" selection-end-line="8" selection-end-column="17" />
<state relative-caret-position="242">
<caret line="14" column="4" selection-start-line="14" selection-start-column="4" selection-end-line="14" selection-end-column="4" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/springframework/boot/spring-boot/2.1.6.RELEASE/spring-boot-2.1.6.RELEASE.jar!/org/springframework/boot/web/server/WebServerFactory.class">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="88">
<caret line="7" column="17" selection-start-line="7" selection-start-column="17" selection-end-line="7" selection-end-column="17" />
<state relative-caret-position="660">
<caret line="38" column="1" lean-forward="true" selection-start-line="38" selection-start-column="1" selection-end-line="38" selection-end-column="1" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/tomcat/embed/tomcat-embed-core/9.0.21/tomcat-embed-core-9.0.21.jar!/org/apache/catalina/connector/Connector.class">
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9-sources.jar!/org/apache/commons/lang3/StringUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-132">
<caret line="34" column="13" selection-start-line="34" selection-start-column="13" selection-end-line="34" selection-end-column="13" />
<state relative-caret-position="22">
<caret line="116" column="13" selection-start-line="116" selection-start-column="13" selection-end-line="116" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/MyEmbeddedServletContainerFactory.java" />
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/ServiceConfig.java" />
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/OkHttp3Utils.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/pom.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-2282">
<caret line="173" column="36" selection-start-line="173" selection-start-column="36" selection-end-line="173" selection-end-column="36" />
<state relative-caret-position="666">
<caret line="95" column="21" selection-start-line="95" selection-start-column="21" selection-end-line="95" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/tts.properties">
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/net/sourceforge/javacsv/javacsv/2.0/javacsv-2.0.jar!/com/csvreader/CsvReader.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="330">
<caret line="15" column="54" selection-start-line="15" selection-start-column="54" selection-end-line="15" selection-end-column="54" />
<state relative-caret-position="246">
<caret line="30" column="19" selection-start-line="30" selection-start-column="19" selection-end-line="30" selection-end-column="19" />
<folding>
<element signature="e#4920#4921#0" expanded="true" />
<element signature="e#4957#4958#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSResponse.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/String.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308">
<caret line="19" column="27" lean-forward="true" selection-start-line="19" selection-start-column="27" selection-end-line="19" selection-end-column="27" />
<state relative-caret-position="51216">
<caret line="2405" column="6" selection-start-line="2405" selection-start-column="6" selection-end-line="2405" selection-end-column="6" />
<folding>
<element signature="e#94598#94599#0" expanded="true" />
<element signature="e#94636#94637#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/MultipartResolver.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ResponseEncapsulation.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308">
<caret line="18" column="47" selection-start-line="18" selection-start-column="47" selection-end-line="18" selection-end-column="47" />
<state relative-caret-position="-66">
<caret line="44" column="13" selection-start-line="44" selection-start-column="13" selection-end-line="44" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/GlobalExceptionHandler.java">
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/io/IOException.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="572">
<caret line="26" column="5" lean-forward="true" selection-start-line="26" selection-start-column="5" selection-end-line="26" selection-end-column="5" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#288#289#0" expanded="true" />
<element signature="e#314#315#0" expanded="true" />
<element signature="e#683#684#0" expanded="true" />
<element signature="e#726#727#0" expanded="true" />
</folding>
<state relative-caret-position="264">
<caret line="38" column="6" selection-start-line="38" selection-start-column="6" selection-end-line="38" selection-end-column="6" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/CallPython.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-256">
<caret line="157" column="14" selection-start-line="157" selection-start-column="14" selection-end-line="157" selection-end-column="14" />
<state relative-caret-position="220">
<caret line="10" column="28" lean-forward="true" selection-start-line="10" selection-start-column="28" selection-end-line="10" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/baidu/ThirdPartyService.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/BaseHolder.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="924">
<caret line="55" column="37" selection-start-line="55" selection-start-column="37" selection-end-line="55" selection-end-column="37" />
<state relative-caret-position="440">
<caret line="25" column="24" selection-start-line="25" selection-start-column="24" selection-end-line="25" selection-end-column="24" />
<folding>
<element signature="e#773#774#0" expanded="true" />
<element signature="e#836#837#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTServiceUtil.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryTB.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="220">
<caret line="49" column="49" selection-start-line="49" selection-start-column="49" selection-end-line="49" selection-end-column="49" />
<state relative-caret-position="264">
<caret line="23" column="13" selection-start-line="23" selection-start-column="13" selection-end-line="23" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/Collection.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="924">
<caret line="359" column="12" selection-start-line="359" selection-start-column="12" selection-end-line="359" selection-end-column="12" />
<state relative-caret-position="427">
<caret line="29" column="38" selection-start-line="29" selection-start-column="38" selection-end-line="29" selection-end-column="38" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/util/List.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBTintRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="528">
<caret line="707" column="12" selection-start-line="707" selection-start-column="12" selection-end-line="707" selection-end-column="12" />
<state relative-caret-position="440">
<caret line="20" column="55" lean-forward="true" selection-start-line="20" selection-start-column="55" selection-end-line="20" selection-end-column="56" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/application.yml">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/primary/AppFlowerTBTiny.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="614">
<caret line="34" column="2" selection-start-line="34" selection-start-column="2" selection-end-line="34" selection-end-column="2" />
<state relative-caret-position="374">
<caret line="19" column="16" selection-start-line="19" selection-start-column="16" selection-end-line="19" selection-end-column="16" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/Config.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="317">
<caret line="30" column="9" lean-forward="true" selection-start-line="30" selection-start-column="9" selection-end-line="30" selection-end-column="9" />
<state relative-caret-position="484">
<caret line="26" column="27" selection-start-line="26" selection-start-column="27" selection-end-line="26" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/Initialize.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="330">
<caret line="115" column="44" selection-start-line="115" selection-start-column="38" selection-end-line="115" selection-end-column="44" />
<state relative-caret-position="556">
<caret line="198" column="40" selection-start-line="198" selection-start-column="40" selection-end-line="198" selection-end-column="40" />
<folding>
<element signature="e#8485#8486#0" expanded="true" />
<element signature="e#8519#8520#0" expanded="true" />
<element signature="e#8578#8579#0" expanded="true" />
<element signature="e#8615#8616#0" expanded="true" />
<element signature="e#8724#8725#0" expanded="true" />
<element signature="e#8756#8757#0" expanded="true" />
<element signature="e#8818#8819#0" expanded="true" />
<element signature="e#8869#8870#0" expanded="true" />
<element signature="e#8923#8924#0" expanded="true" />
<element signature="e#8967#8968#0" expanded="true" />
<element signature="e#9072#9073#0" expanded="true" />
<element signature="e#9110#9111#0" expanded="true" />
<element signature="e#9285#9286#0" expanded="true" />
<element signature="e#9317#9318#0" expanded="true" />
<element signature="e#9485#9486#0" expanded="true" />
<element signature="e#9527#9528#0" expanded="true" />
<element signature="e#9580#9581#0" expanded="true" />
<element signature="e#9622#9623#0" expanded="true" />
<element signature="e#9676#9677#0" expanded="true" />
<element signature="e#9719#9720#0" expanded="true" />
<element signature="e#9872#9873#0" expanded="true" />
<element signature="e#9909#9910#0" expanded="true" />
<element signature="e#9953#9954#0" expanded="true" />
<element signature="e#9987#9988#0" expanded="true" />
<element signature="e#10121#10122#0" expanded="true" />
<element signature="e#10180#10181#0" expanded="true" />
<element signature="e#10233#10234#0" expanded="true" />
<element signature="e#10271#10272#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AllOnProductInfoRepository.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="13" column="17" selection-start-line="13" selection-start-column="17" selection-end-line="13" selection-end-column="17" />
<state relative-caret-position="526">
<caret line="38" column="48" selection-start-line="38" selection-start-column="48" selection-end-line="38" selection-end-column="48" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFavoriteTBRepository.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">
<state relative-caret-position="440">
<caret line="34" column="4" selection-start-line="34" selection-start-column="4" selection-end-line="34" selection-end-column="4" />
<state relative-caret-position="185">
<caret line="24" column="10" selection-start-line="24" selection-start-column="10" selection-end-line="24" selection-end-column="10" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBRepository.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/resources/application.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="330">
<caret line="23" column="4" selection-start-line="23" selection-start-column="4" selection-end-line="23" selection-end-column="4" />
<state relative-caret-position="482">
<caret line="23" column="8" lean-forward="true" selection-start-line="23" selection-start-column="8" selection-end-line="23" selection-end-column="8" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppFlowerTBTintRepository.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">
<state relative-caret-position="198">
<caret line="13" column="17" selection-start-line="13" selection-start-column="17" selection-end-line="13" selection-end-column="17" />
<state relative-caret-position="402">
<caret line="291" column="9" selection-start-line="291" selection-start-column="9" selection-end-line="291" selection-end-column="9" />
<folding>
<element signature="e#11262#11263#0" expanded="true" />
<element signature="e#11299#11300#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/AppUserTBRepository.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/play/PlayUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="14" column="17" selection-start-line="14" selection-start-column="17" selection-end-line="14" selection-end-column="17" />
<state relative-caret-position="-1276">
<caret line="31" column="89" selection-start-line="31" selection-start-column="89" selection-end-line="31" selection-end-column="89" />
</state>
</provider>
</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/temple/productInfo.java">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/playUpdate/PlayUpdateDocument.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="15" column="17" selection-start-line="15" selection-start-column="17" selection-end-line="15" selection-end-column="17" />
<state relative-caret-position="286">
<caret line="15" lean-forward="true" selection-start-line="15" selection-end-line="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/primary/ProjectLabelRepository.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/playUpdate/PlayUpdateMainTemplate.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="15" column="17" selection-start-line="15" selection-start-column="17" selection-end-line="15" selection-end-column="17" />
<state relative-caret-position="286">
<caret line="18" lean-forward="true" selection-start-line="18" selection-end-line="18" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryBotTimeRepository.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">
<state relative-caret-position="176">
<caret line="11" column="17" selection-start-line="11" selection-start-column="17" selection-end-line="11" selection-end-column="17" />
<state relative-caret-position="658">
<caret line="56" column="40" lean-forward="true" selection-start-line="21" selection-start-column="4" selection-end-line="56" selection-end-column="40" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/rank/RankUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="484">
<caret line="30" column="4" selection-start-line="30" selection-start-column="4" selection-end-line="30" selection-end-column="4" />
<state relative-caret-position="336">
<caret line="138" column="39" lean-forward="true" selection-start-line="138" selection-start-column="39" selection-end-line="138" selection-end-column="39" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTBIdRepository.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/static/json/productInfo.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="242">
<caret line="14" column="4" selection-start-line="14" selection-start-column="4" selection-end-line="14" selection-end-column="4" />
<state relative-caret-position="482">
<caret line="214" column="9" lean-forward="true" selection-end-line="233" selection-end-column="1" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/dpl/Event.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="660">
<caret line="38" column="1" lean-forward="true" selection-start-line="38" selection-start-column="1" selection-end-line="38" selection-end-column="1" />
<state relative-caret-position="463">
<caret line="32" column="30" selection-start-line="32" selection-start-column="30" selection-end-line="32" selection-end-column="30" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoPojo.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308">
<caret line="18" column="65" selection-start-line="18" selection-start-column="65" selection-end-line="18" selection-end-column="65" />
<state relative-caret-position="526">
<caret line="45" column="19" selection-start-line="45" selection-start-column="19" selection-end-line="45" selection-end-column="19" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="4252">
<caret line="235" column="44" selection-start-line="235" selection-start-column="44" selection-end-line="235" selection-end-column="44" />
<state relative-caret-position="578">
<caret line="452" column="5" lean-forward="true" selection-start-line="452" selection-start-column="5" selection-end-line="452" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/TtsServiceApplication.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="256">
<caret line="159" column="17" selection-start-line="159" selection-start-column="17" selection-end-line="159" selection-end-column="17" />
<folding>
<element signature="e#8809#8811#0" />
<element signature="e#22305#22356#0" />
</folding>
<state relative-caret-position="176">
<caret line="12" column="13" selection-start-line="12" selection-start-column="13" selection-end-line="12" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9-sources.jar!/org/apache/commons/lang3/StringUtils.java">
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="22">
<caret line="116" column="13" selection-start-line="116" selection-start-column="13" selection-end-line="116" selection-end-column="13" />
<state relative-caret-position="452">
<caret line="204" column="9" lean-forward="true" selection-start-line="204" selection-start-column="9" selection-end-line="204" selection-end-column="9" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#34927#34936#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="702">
<caret line="1154" column="17" selection-start-line="1154" selection-start-column="17" selection-end-line="1154" selection-end-column="17" />
<state relative-caret-position="234">
<caret line="79" column="36" lean-forward="true" selection-start-line="79" selection-start-column="36" selection-end-line="79" selection-end-column="36" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#28336#28382#0" />
<element signature="e#29251#29365#0" />
<element signature="e#34361#34370#0" />
<element signature="e#3549#3550#0" expanded="true" />
<element signature="e#3576#3577#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/pom.xml">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchMainTemplate.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="666">
<caret line="95" column="21" selection-start-line="95" selection-start-column="21" selection-end-line="95" selection-end-column="21" />
<state relative-caret-position="396">
<caret line="24" column="5" lean-forward="true" selection-start-line="24" selection-start-column="5" selection-end-line="24" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tts_service/src/main/java/ai/qiwu/com/tts_service/common/TTSUtils.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchDocument.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="526">
<caret line="439" column="37" selection-start-line="439" selection-start-column="21" selection-end-line="439" selection-end-column="37" />
<state relative-caret-position="264">
<caret line="16" column="13" selection-start-line="16" selection-start-column="13" selection-end-line="16" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../maven/myRepository/net/sourceforge/javacsv/javacsv/2.0/javacsv-2.0.jar!/com/csvreader/CsvReader.class">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoMainTemplate.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="246">
<caret line="30" column="19" selection-start-line="30" selection-start-column="19" selection-end-line="30" selection-end-column="19" />
<state relative-caret-position="352">
<caret line="16" column="13" selection-start-line="16" selection-start-column="13" selection-end-line="16" selection-end-column="13" />
<folding>
<element signature="e#4920#4921#0" expanded="true" />
<element signature="e#4957#4958#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="jar://$PROJECT_DIR$/../../../../java/jdk1.8.0_211/src.zip!/java/lang/String.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoDocument.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="132">
<caret line="2405" column="6" lean-forward="true" selection-start-line="2405" selection-start-column="6" selection-end-line="2405" selection-end-column="6" />
<state relative-caret-position="308">
<caret line="14" column="49" lean-forward="true" selection-start-line="14" selection-start-column="49" selection-end-line="14" selection-end-column="49" />
<folding>
<element signature="e#94598#94599#0" expanded="true" />
<element signature="e#94636#94637#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="306">
<caret line="151" column="46" lean-forward="true" selection-start-line="151" selection-start-column="46" selection-end-line="151" selection-end-column="46" />
<state relative-caret-position="176">
<caret line="26" column="38" selection-start-line="26" selection-start-column="26" selection-end-line="26" selection-end-column="38" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300">
<caret line="17" column="60" selection-start-line="17" selection-start-column="38" selection-end-line="17" selection-end-column="60" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/resources/application.yml">
<entry file="file://$PROJECT_DIR$/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotService.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="9" column="28" selection-start-line="9" selection-start-column="17" selection-end-line="9" selection-end-column="28" />
<state relative-caret-position="321">
<caret line="254" column="22" lean-forward="true" selection-start-line="254" selection-start-column="22" selection-end-line="254" selection-end-column="22" />
</state>
</provider>
</entry>
......
......@@ -20,8 +20,8 @@ public class Config {
private static Properties properties;
static {
// String filename = "tts.properties";
String filename = "ttsTest.properties";
String filename = "tts.properties";
// String filename = "ttsTest.properties";
properties = new Properties();
try {
properties.load(new InputStreamReader(Config.class.getClassLoader().getResourceAsStream(filename), StandardCharsets.UTF_8));
......
......@@ -17,6 +17,8 @@ import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.text.Normalizer;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
......@@ -437,8 +439,16 @@ public class TTSUtils {
}
public static void main(String[] args) {
String v1 = "/home/yf01/下载/齐齐-人工配音关系对于表(1).csv";
String v2 = "/home/yf01/下载/%E6%B0%B4%E5%BF%83%E6%B9%96.csv";
test(v1, v2);
String s = "好的。苏琪家好像是住北城,我家乡刚好在北城隔壁,顺路。";
Pattern pattern = Pattern.compile("\uD83C\uDD70(.*?)\uD83C\uDD71");
Matcher matcher = pattern.matcher(s);
System.out.println(matcher.find());
System.out.println(s);
// while (matcher.find()) {
// String variableText = matcher.group(1);
// System.out.println(variableText);
// }
String ss = "他们循{/xun2/}声{/sheng1/}来到一颗大榕树后{/hou4/}的一座^木{/mu4/}屋{/wu1/}旁,见到音乐家捧{/peng3/}着{/zhe/}一个像笛子一样的乐器正在入{/ru4/}神地吹奏{/zou4/}着{/zhe/}。后来,音乐家很高兴接纳了他们,并{/bing4/}在^木{/mu4/}屋{/wu1/}旁边给他们^安{/an1/}了新家,四个小伙伴和善良的音乐家开心地住在水{/shui3/}心{/xin1/}湖{/hu2/}边,再{/zai4/}也{/ye3/}不用担惊受怕了。每天和{/he2/}音乐家一起弹{/tan2/}奏{/zou4/}唱跳,认识他们的人都亲切地称他们为{/wei2/}“水{/shui3/}心{/xin1/}湖{/hu2/}的音乐家”。";
System.out.println(buildMP3Filename(ss));
}
}
......@@ -24,12 +24,12 @@ logging:
level:
root: info
server:
# port: 9663
port: 8188
port: 9663
# port: 8188
tomcat:
accesslog:
enabled: true
pattern: '%h %l %u %t "%r" %s %b bytes %D ms'
# directory: /home/ubuntu/project/tts/tomcat
directory: /root/GameEditor/mqw/project/ttsTest/tomcat
directory: /home/ubuntu/project/tts/tomcat
# directory: /root/GameEditor/mqw/project/ttsTest/tomcat
connection-timeout: 240000
package ai.qiwu.com.xiaoduhome.common.temple.productInfo;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
/**
* @author 苗权威
* @dateTime 19-9-23 下午5:22
*/
@Getter
@Setter
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class ProductInfoDocument {
private ProductInfoMainTemplate mainTemplate;
}
package ai.qiwu.com.xiaoduhome.common.temple.productInfo;
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-23 下午5:23
*/
@Getter
@Setter
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class ProductInfoMainTemplate {
private List<String> parameters = new ArrayList<>();
private List<ProductInfoPojo> items;
public ProductInfoMainTemplate() {
this.parameters.add("payload");
this.items = new ArrayList<>();
}
}
package ai.qiwu.com.xiaoduhome.common.temple.productInfo;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
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-23 下午5:24
*/
@Getter
@Setter
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class ProductInfoPojo {
private String type;
private String position;
private String top;
private String bottom;
private String left;
private String src;
private String height;
private String width;
private String headerTitle;
private Boolean hasBackIcon;
private String componentId;
private List<ProductInfoPojo> items;
@JsonProperty("flex-direction")
private String flexDirection;
@JsonProperty("border-radius")
private String borderRadius;
@JsonProperty("scale-type")
private String scaleType;
@JsonProperty("margin-left")
private String marginLeft;
@JsonProperty("margin-top")
private String marginTop;
private List<Event> onClick;
@JsonProperty("font-size")
private String fontSize;
private String text;
@JsonProperty("max-lines")
private Integer maxLines;
@JsonProperty("margin-right")
private String marginRight;
@JsonProperty("line-height")
private String lineHeight;
@JsonProperty("text-overflow")
private String textOverflow;
@JsonProperty("align-items")
private String alignItems;
private List<String> hints;
}
package ai.qiwu.com.xiaoduhome.common.temple.productInfo;
import ai.qiwu.com.xiaoduhome.pojo.dpl.Event;
import java.util.Arrays;
import java.util.Collections;
/**
* @author 苗权威
* @dateTime 19-9-23 下午5:37
*/
public class ProductInfoUtils {
private static final ProductInfoPojo BACK_IMG = buildProductInfoBackgroundImg();
private static final ProductInfoPojo HEADER = buildProductInfoHead();
private static final ProductInfoPojo FOOTER = buildProductInfoFooter();
public static ProductInfoDocument getProductINfoDocument(String src, String productName, String time, String author, String labelText,
String introText,String startComponId, String flowerId, String flowerText,
String collectId, String collectSrc, String collectText) {
ProductInfoDocument document = new ProductInfoDocument();
ProductInfoMainTemplate mainTemplate = new ProductInfoMainTemplate();
document.setMainTemplate(mainTemplate);
mainTemplate.getItems().addAll(Arrays.asList(BACK_IMG, HEADER, buildLeftRightPart(src, productName, time,
author, labelText, introText, startComponId, flowerId, flowerText, collectId, collectSrc, collectText), FOOTER));
return document;
}
private static ProductInfoPojo buildLeftRightPart(String src, String productName, String time, String author, String labelText,
String introText,String startComponId, String flowerId, String flowerText,
String collectId, String collectSrc, String collectText) {
ProductInfoPojo lrCon = new ProductInfoPojo();
lrCon.setType("Container");
lrCon.setFlexDirection("row");
lrCon.setWidth("100%");
lrCon.setHeight("100%");
lrCon.setItems(Arrays.asList(buildLeftCoverImage(src), buildRightPart(productName, time, author, labelText,
introText, startComponId, flowerId, flowerText, collectId, collectSrc, collectText)));
return lrCon;
}
private static ProductInfoPojo buildLeftCoverImage(String src) {
ProductInfoPojo coverImage = new ProductInfoPojo();
coverImage.setType("Image");
coverImage.setWidth("280dp");
coverImage.setHeight("280dp");
coverImage.setBorderRadius("30dp");
coverImage.setScaleType("fitCenter");
coverImage.setMarginLeft("50dp");
coverImage.setMarginTop("12dp");
coverImage.setComponentId("imgPro");
coverImage.setSrc(src);
Event rotateAnimation = new Event("Animation", "imgPro");
rotateAnimation.setFrom("0");
rotateAnimation.setTo("360");
rotateAnimation.setEasing("ease-out");
rotateAnimation.setAttribute("rotation");
rotateAnimation.setDuration(2000L);
rotateAnimation.setRepeatCount("1");
rotateAnimation.setRepeatMode("reverse");
coverImage.setOnClick(Collections.singletonList(rotateAnimation));
return coverImage;
}
private static ProductInfoPojo buildRightPart(String productName, String time, String author, String labelText,
String introText,String startComponId, String flowerId, String flowerText,
String collectId, String collectSrc, String collectText) {
ProductInfoPojo rightPartCon = new ProductInfoPojo();
rightPartCon.setType("Container");
rightPartCon.setFlexDirection("column");
rightPartCon.setWidth("600dp");
rightPartCon.setHeight("100%");
rightPartCon.setItems(Arrays.asList(buildProductName(productName), buildTimeAuthor(time, author), buildLabel(labelText),
buildIntro(introText), buildIconCon(startComponId, flowerId, flowerText, collectId, collectSrc, collectText)));
return rightPartCon;
}
private static ProductInfoPojo buildProductName(String productName) {
ProductInfoPojo name = new ProductInfoPojo();
name.setType("Text");
name.setMarginTop("10dp");
name.setFontSize("38dp");
name.setMarginLeft("5%");
return name;
}
private static ProductInfoPojo buildTimeAuthor(String time, String author) {
ProductInfoPojo timeAuthorCon = new ProductInfoPojo();
timeAuthorCon.setType("Container");
timeAuthorCon.setMarginTop("10dp");
timeAuthorCon.setFlexDirection("row");
ProductInfoPojo timePojo = new ProductInfoPojo();
timePojo.setType("Text");
timePojo.setMarginLeft("5%");
timePojo.setFontSize("22dp");
timePojo.setText(time);
ProductInfoPojo authorPojo = new ProductInfoPojo();
authorPojo.setType("Text");
authorPojo.setMarginLeft("10%");
authorPojo.setFontSize("22dp");
authorPojo.setText(author);
timeAuthorCon.setItems(Arrays.asList(timePojo, authorPojo));
return timeAuthorCon;
}
private static ProductInfoPojo buildLabel(String labelText) {
ProductInfoPojo labelCon = new ProductInfoPojo();
labelCon.setType("Container");
labelCon.setMarginTop("6dp");
labelCon.setFlexDirection("row");
ProductInfoPojo label = new ProductInfoPojo();
label.setType("Text");
label.setMarginLeft("5%");
label.setFontSize("22dp");
label.setMaxLines(1);
label.setText(labelText);
labelCon.setItems(Collections.singletonList(label));
return labelCon;
}
private static ProductInfoPojo buildIntro(String introText) {
ProductInfoPojo introCon = new ProductInfoPojo();
introCon.setType("Container");
introCon.setMarginTop("9dp");
introCon.setMarginRight("26dp");
ProductInfoPojo intro = new ProductInfoPojo();
intro.setType("Text");
intro.setMarginLeft("5%");
intro.setFontSize("25dp");
intro.setLineHeight("20dp");
intro.setMarginTop("30dp");
intro.setMaxLines(3);
intro.setTextOverflow("ellipsis");
intro.setText(introText);
introCon.setItems(Collections.singletonList(intro));
return introCon;
}
private static ProductInfoPojo buildIconCon(String startComponId, String flowerId, String flowerText,
String collectId, String collectSrc, String collectText) {
ProductInfoPojo iconCon = new ProductInfoPojo();
iconCon.setType("Container");
iconCon.setPosition("absolute");
iconCon.setFlexDirection("row");
iconCon.setBottom("160dp");
iconCon.setItems(Arrays.asList(buildStart(startComponId), buildFlower(flowerId, flowerText),
buildCollect(collectId, collectSrc, collectText)));
return iconCon;
}
private static ProductInfoPojo buildStart(String startComponId) {
ProductInfoPojo startCon = new ProductInfoPojo();
startCon.setType("Container");
startCon.setAlignItems("center");
startCon.setMarginLeft("50dp");
startCon.setOnClick(Collections.singletonList(new Event("SendEvent", startComponId)));
ProductInfoPojo image = new ProductInfoPojo();
image.setType("Image");
image.setHeight("60dp");
image.setWidth("60dp");
image.setSrc("https://aliyun-hz1.chewrobot.com/xiaoduhome/image/feel.png");
image.setScaleType("fitCenter");
ProductInfoPojo startText = new ProductInfoPojo();
startText.setType("Text");
startText.setText("开始体验");
startText.setMarginTop("10dp");
startText.setFontSize("20dp");
startCon.setItems(Arrays.asList(image, startText));
return startCon;
}
private static ProductInfoPojo buildFlower(String flowerId, String flowerText) {
ProductInfoPojo flowerCon = new ProductInfoPojo();
flowerCon.setType("Container");
flowerCon.setAlignItems("center");
flowerCon.setMarginLeft("130dp");
flowerCon.setOnClick(Collections.singletonList(new Event("SendEvent", flowerId)));
ProductInfoPojo image = new ProductInfoPojo();
image.setType("Image");
image.setHeight("60dp");
image.setWidth("60dp");
image.setSrc("https://aliyun-hz1.chewrobot.com/xiaoduhome/image/flower.png");
image.setScaleType("fitCenter");
ProductInfoPojo flower = new ProductInfoPojo();
flower.setType("Text");
flower.setText(flowerText);
flower.setMarginTop("10dp");
flower.setFontSize("20dp");
flowerCon.setItems(Arrays.asList(image, flower));
return flowerCon;
}
private static ProductInfoPojo buildCollect(String collectId, String collectSrc, String collectText) {
ProductInfoPojo collectCon = new ProductInfoPojo();
collectCon.setType("Container");
collectCon.setAlignItems("center");
collectCon.setMarginLeft("120dp");
collectCon.setOnClick(Collections.singletonList(new Event("SendEvent", collectId)));
ProductInfoPojo image = new ProductInfoPojo();
image.setType("Image");
image.setHeight("60dp");
image.setWidth("60dp");
image.setComponentId("collectImage");
image.setSrc(collectSrc);
image.setScaleType("fitCenter");
ProductInfoPojo collect = new ProductInfoPojo();
collect.setType("Text");
collect.setComponentId("collectText");
collect.setText(collectText);
collect.setMarginTop("10dp");
collect.setFontSize("20dp");
collectCon.setItems(Arrays.asList(image, collect));
return collectCon;
}
private static ProductInfoPojo buildProductInfoFooter() {
ProductInfoPojo footerCon = new ProductInfoPojo();
footerCon.setType("Container");
footerCon.setPosition("absolute");
footerCon.setWidth("100%");
footerCon.setLeft("0");
footerCon.setBottom("0");
ProductInfoPojo footer = new ProductInfoPojo();
footer.setType("Footer");
footer.setHints(Arrays.asList("开始","我要送花","收藏作品","回到首页","返回"));
footerCon.setItems(Collections.singletonList(footer));
return footerCon;
}
private static ProductInfoPojo buildProductInfoBackgroundImg() {
ProductInfoPojo backGroundImg = new ProductInfoPojo();
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 ProductInfoPojo buildProductInfoHead() {
ProductInfoPojo head = new ProductInfoPojo();
head.setType("Header");
head.setHeaderTitle("交游天下");
head.setHasBackIcon(false);
return head;
}
}
......@@ -14,10 +14,10 @@ import javax.persistence.*;
public class AppFlowerTBTiny {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private Long id;
@Column(name = "user_id")
private Integer userId;
private Long userId;
@Column(name = "unit_price")
private Double unitPrice;
......@@ -26,5 +26,5 @@ public class AppFlowerTBTiny {
private String botId;
@Column
private Integer number;
private Long number;
}
......@@ -6,6 +6,7 @@ import com.csvreader.CsvReader;
import com.csvreader.CsvWriter;
import com.eclipsesource.json.JsonObject;
import lombok.*;
import org.apache.commons.lang3.StringUtils;
import java.io.FileNotFoundException;
import java.io.IOException;
......@@ -195,6 +196,6 @@ public class TestBuild {
String v2 = "/home/yf01/下载/齐齐-人工配音关系对于表.csv";
//csvUtil(target, src, srcModify, v2);
check(src, srcModify, target);
//check(src, srcModify, target);
}
}
......@@ -13,8 +13,16 @@ import java.util.List;
@Getter
@Setter
public class UserBehaviorData {
// 用户浏览历史
private volatile HashMap<String, Byte> userBotId2History = new HashMap<>();
private volatile HashMap<String, Integer> userBotId2Flowers = new HashMap<>();
// 用户对作品所送花的数目
private volatile HashMap<String, Long> userBotId2Flowers = new HashMap<>();
// 用户是否收藏该作品
private volatile HashMap<String, Byte> userBotId2Collected = new HashMap<>();
// timestamp与mark之间的关系:清扫线程每五分钟更新缓存中所有mark为1的对象的timestamp并将mark改为0,
// 若发现mark为0的timestamp五分钟之前的则删除缓存
private volatile Long timeStamp = System.currentTimeMillis();
private volatile Byte mark = 1;
private volatile String jytUserId;
}
......@@ -30,6 +30,7 @@ public class Event {
private String repeatCount;
private String position;
private String value;
private String repeatMode;
public Event() {
}
......
......@@ -36,7 +36,7 @@ public interface AppFavoriteTBRepository extends JpaRepository<AppFavoriteTB, In
void deleteByBotIdAndUserId(String botId, Integer userId);
@Query(value="SELECT bot_username from app_favorite_tb where user_id=?1", nativeQuery = true)
List<String> getFavoriteBotIds(Integer userId);
List<String> getFavoriteBotIds(Long userId);
@Override
<S extends AppFavoriteTB> long count(Example<S> example);
......
......@@ -2,6 +2,7 @@ package ai.qiwu.com.xiaoduhome.repository.primary;
import ai.qiwu.com.xiaoduhome.entity.primary.AppFlowerTBTiny;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
......@@ -16,4 +17,7 @@ public interface AppFlowerTBTintRepository extends JpaRepository<AppFlowerTBTiny
AppFlowerTBTiny getByUserIdAndBotIdAndUnitPrice(Integer userId, String botId, Double unitPrice);
List<AppFlowerTBTiny> getByUserIdAndBotId(Integer userId, String botId);
@Query(value = "select number from app_flower_tb where user_id=?1 and bot_username=?2", nativeQuery = true)
List<Long> getFlowerNumByUserIdAndBotAccount(Long userId, String botAccount);
}
......@@ -34,6 +34,6 @@ public interface XiaoDuHistoryTBRepository extends JpaRepository<XiaoDuHistoryTB
XiaoDuHistoryTB getByXiaoduUserIdAndBotId(String xiaoduUserId, String botId);
@Query(value = "select distinct bot_id from xiaodu_history_tb where xiaodu_user_id=?1",nativeQuery = true)
@Query(value = "select bot_id from xiaodu_history_tb where xiaodu_user_id=?1",nativeQuery = true)
List<String> getUserHostory(String userId);
}
......@@ -8,6 +8,7 @@ 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.PlayUtils;
import ai.qiwu.com.xiaoduhome.common.temple.productInfo.ProductInfoUtils;
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.recommand.RecommandDocument;
......@@ -91,16 +92,16 @@ public class DplBotService extends BaseBot {
private static final int CORE = Runtime.getRuntime().availableProcessors();
public static final ThreadPoolExecutor POOL = new ThreadPoolExecutor(CORE+1, 1500,
2500, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(CORE), new ThreadPoolExecutor.CallerRunsPolicy());
// public static final ThreadPoolExecutor POOL = new ThreadPoolExecutor(CORE+1, 1500,
// 2500, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(CORE), new ThreadPoolExecutor.CallerRunsPolicy());
private static final ConcurrentHashMap<String, String> DU_ID_2_US_ID;
//private static final ConcurrentHashMap<String, String> DU_ID_2_US_ID;
private static final ConcurrentHashMap<String, OverTimeDetail> LAST_OUTTIME_RESULT = new ConcurrentHashMap<>();
private static volatile FunnyDocument FUNNY_DEFAULT_DOCUMENT;
private static final ConcurrentHashMap<String, UserBehaviorData> USER_HISTORY = new ConcurrentHashMap<>();
// private static final ConcurrentHashMap<String, UserBehaviorData> USER_HISTORY = new ConcurrentHashMap<>();
private final byte byteFill = 1;
......@@ -126,9 +127,9 @@ public class DplBotService extends BaseBot {
// List<Item> container = CATEGORY_PROD.getMainTemplate().getItems().get(0).getItems();
// CATEGORY_PROD_LIST = container.get(2).getItems().get(0);
// CATEGORY_PROD_HEAD = container.get(1);
PROD_INFO = JSON.parseObject(getDPLTemple("static/json/productInfo.json"), MyDocument.class);
FIRST_PAGE = JSON.parseObject(getDPLTemple("static/json/firstPage.json"), MyDocument.class);
DU_ID_2_US_ID = new ConcurrentHashMap<>();
PROD_INFO = JSON.parseObject(DplbotServiceUtil.getDPLTemple("static/json/productInfo.json"), MyDocument.class);
FIRST_PAGE = JSON.parseObject(DplbotServiceUtil.getDPLTemple("static/json/firstPage.json"), MyDocument.class);
// DU_ID_2_US_ID = new ConcurrentHashMap<>();
}
public DplBotService(HttpServletRequest request) throws IOException {
......@@ -140,222 +141,21 @@ public class DplBotService extends BaseBot {
RenderDocument renderDocument = new RenderDocument(FIRST_PAGE);
this.addDirective(renderDocument);
OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, Constants.WelcomeWord.WELCOME);
POOL.submit(() -> {
XiaoDuHistoryTBRepository repository = BaseHolder.getBean("xiaoDuHistoryTBRepository");
String userId = getUserId();
UserBehaviorData data = USER_HISTORY.computeIfAbsent(userId, s -> new UserBehaviorData());
HashMap<String,Byte> userBotId2History = data.getUserBotId2History();
for (String botId: repository.getUserHostory(getUserId())) {
userBotId2History.put(botId, byteFill);
}
//log.info("用户历史记录:{}",USER_HISTORY);
});
// 初次进入时创建用户的行为信息,包括历史记录,送花数,收藏记录
// 历史记录
DplbotServiceUtil.onLunchGetUserHistory(getUserId());
String jytUserId;
if (getAccessToken() != null) {
getUserFavorite();
// 收藏记录,送花数,郊游天下id
DplbotServiceUtil.onLunchFillUserBehaviorData(getAccessToken(), getUserId());
}
return new Response(outputSpeech);
}
private void getUserFavorite() {
POOL.submit(() -> {
AppFavoriteTBRepository favoriteTBRepository = BaseHolder.getBean("appFavoriteTBRepository");
try {
String userId = getUserId();
UserBehaviorData data = USER_HISTORY.get(userId);
if (data == null) {
data = new UserBehaviorData();
USER_HISTORY.put(userId, data);
}
String usUserId = getUsUserId();
List<String> favoriteBotIDS = favoriteTBRepository.getFavoriteBotIds(Integer.valueOf(usUserId));
for(String botId : favoriteBotIDS) {
data.getUserBotId2Collected().put(botId, byteFill);
}
} catch (IOException e) {
e.printStackTrace();
}
});
}
@Override
protected Response onInent(IntentRequest intentRequest) {
//
// final String userId = getCustomerId();
// String intentName = getIntent().getName();
// log.info("Intent name:{}",intentName);
// if ("load".equals(intentName)) {
// return load();
// } else if ("openCollect".equals(intentName)) {
// if (getAccessToken() == null) {
// OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, "该功能需要登录,请说小度小度,登录");
// return new Response(outputSpeech);
// } else {
// String appUserId = getSessionAttribute("userId");
// if (appUserId == null) {
// try {
// appUserId = getUserIdByToken(getAccessToken());
// } catch (IOException e) {
// log.error("打开收藏页时获取用户的郊游天下端id出错:{}", e.toString());
// OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, SORRY_UNCATCH);
// return new Response(outputSpeech);
// }
// if (appUserId == null) {
// OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, SORRY_UNCATCH);
// return new Response(outputSpeech);
// }
// }
// CollectHistoryDocument document = TempleUtils.getCollectPage(Integer.parseInt(appUserId));
// RenderDocument render = new RenderDocument(document);
// this.addDirective(render);
// this.setSessionAttribute(PRE_COLLE,document.getIdToken());
// return new Response();
// }
// } else if ("openNum".equals(intentName)) {
// String collectToken = getSessionAttribute(PRE_COLLE);
// String rankToken = getSessionAttribute("ranking");
// String recommengToken = getSessionAttribute("recommand");
// log.info("openNum slot value:{}", getSlot("sys.number"));
// if (collectToken != null) {
// return dealOpenNum(collectToken);
// } else if (rankToken != null){
// return dealOpenNum(rankToken);
// } else if (recommengToken != null) {
// return dealOpenNum(recommengToken);
// } else {
// OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, "似乎出了什么问题,请点击屏幕吧");
// return new Response(outputSpeech);
// }
// } else if ("history".equals(intentName)) {
// CollectHistoryDocument document = TempleUtils.getHistory(getUserId());
// RenderDocument render = new RenderDocument(document);
// this.addDirective(render);
// this.setSessionAttribute(PRE_COLLE,document.getIdToken());
// this.setSessionAttribute("ranking", null);
// this.setSessionAttribute("recommand", null);
// return new Response();
// } else if ("recommand".equals(intentName)) {
// RecommandDocument recommandDocument = TempleUtils.getRecommend();
// RenderDocument render = new RenderDocument();
// render.setDocument(recommandDocument);
// this.addDirective(render);
// this.addDirective(new PushStack());
// String token = recommandDocument.getRecommendIdList();
// if (token != null) {
// this.setSessionAttribute("recommand", token);
// this.setSessionAttribute(PRE_COLLE, null);
// this.setSessionAttribute("ranking", null);
// }
// return new Response();
// } else if ("ranking".equals(intentName)) {
// RankingDocument document = TempleUtils.getRanking();
// RenderDocument render = new RenderDocument();
// render.setDocument(document);
// this.addDirective(render);
// this.addDirective(new PushStack());
// String token = document.getRankBotIds();
// if (token != null) {
// this.setSessionAttribute("ranking", token);
// this.setSessionAttribute("recommand", null);
// this.setSessionAttribute(PRE_COLLE, null);
// }
// return new Response();
// }
// Query query = intentRequest.getQuery();
// String userWord = null;
// if (query != null) userWord = query.getOriginal();
// if (userWord == null){
// log.info("小度没有传来任何话语");
// return buildErrorResponse(SORRY_UNCATCH);
// }
// QiWuResponse data = null;
// try {
// data = RequestTerminal.requestTerminate(userWord, userId);
// } catch (Exception e) {
// log.error("请求终端接口出错:", e.toString());
// }
// if (data == null) {
// return buildErrorResponse(SORRY_UNCATCH);
// }
// String text = data.getText();
// log.info("小悟返回:{}", text);
// final String botAccount = ScheduleService.getNx2BotToHz1().get(data.getAipioneerUsername());
// String beforeBotAccount = getSessionAttribute("botAcc");
// if (botAccount == null || ScheduleService.getExceptBotAccount().contains(botAccount)) {
// OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, text.substring(text.indexOf("】")+1));
// return new Response(outputSpeech);
// }
// else if (!botAccount.equals(beforeBotAccount)) {
// List<Item> container = PLAY_DOCUMENT.getMainTemplate().getItems().get(2).getItems();
// container.get(1).setSrc(data.getAudio());
// text = text.substring(text.indexOf("】")+1);
// container.get(0).getItems().get(0).setText(text);
// RenderDocument render = new RenderDocument(PLAY_DOCUMENT);
// this.addDirective(render);
// new Thread(() -> {
// XiaoDuHistoryTBRepository repository = BaseHolder.getBean("xiaoDuHistoryTBRepository");
// XiaoDuHistoryTB historyTB = repository.getByXiaoduUserIdAndBotId(userId, botAccount);
// if (historyTB == null) {
// historyTB = new XiaoDuHistoryTB();
// historyTB.setLastTime(System.currentTimeMillis());
// historyTB.setBotId(botAccount);
// historyTB.setXiaoduUserId(userId);
// log.info("插入历史数据:{}", botAccount);
// } else {
// historyTB.setLastTime(System.currentTimeMillis());
// log.info("更新历史数据:{}", botAccount);
// }
// repository.save(historyTB);
// }).start();
// return new Response();
// } else {
// ExecuteCommands executeCommands = new ExecuteCommands();
// SetStateCommand audio = new SetStateCommand();
// SetStateCommand textState = new SetStateCommand();
// audio.setComponentId("audio");
// audio.setState("src");
// audio.setValue(data.getAudio());
// textState.setComponentId("text");
// textState.setState("text");
// textState.setValue(text);
//
// executeCommands.addCommand(audio);
// executeCommands.addCommand(textState);
// this.addDirective(executeCommands);
// this.setSessionAttribute("botAcc", botAccount);
// return new Response();
// }
// if ("测试".equals(intentRequest.getQuery().getOriginal())) {
// try {
// Document document = Document.getDocumentFromString(getDPLTemple("static/json/textComponent.json"));
// RenderDocument render = new RenderDocument(document);
// this.addDirective(render);
// } catch (IOException e) {
// e.printStackTrace();
// }
// return new Response();
// }else if ("旋转".equals(intentRequest.getQuery().getOriginal())) {
// try {
// Document document = Document.getDocumentFromString(getDPLTemple("static/json/textRota.json"));
// RenderDocument render = new RenderDocument(document);
// this.addDirective(render);
// } catch (IOException e) {
// e.printStackTrace();
// }
// return new Response();
// }else if ("拉伸".equals(intentRequest.getQuery().getOriginal()) ||
// "增加".equals(intentRequest.getQuery().getOriginal())) {
// try {
// Document document = Document.getDocumentFromString(getDPLTemple("static/json/testScale.json"));
// RenderDocument render = new RenderDocument(document);
// this.addDirective(render);
// } catch (IOException e) {
// e.printStackTrace();
// }
// return new Response();
// }
String userId = getUserId();
OverTimeDetail detail;
if ((detail = LAST_OUTTIME_RESULT.remove(userId)) != null) {
......@@ -370,7 +170,7 @@ public class DplBotService extends BaseBot {
return detail.getResponse();
}
try {
Future future = POOL.submit(new Task(intentRequest, this));
Future future = DplbotServiceUtil.getPOOL().submit(new Task(intentRequest, this));
future.get(2200, TimeUnit.MILLISECONDS);
} catch (InterruptedException | ExecutionException e) {
log.error("获取任务执行结果出错:{}", e.toString());
......@@ -391,6 +191,12 @@ public class DplBotService extends BaseBot {
return LAST_OUTTIME_RESULT.remove(getUserId()).getResponse();
}
/**
*
* @param idsToken 当前页面作品的id集合
* @param overDetail
* @return
*/
private Response dealOpenNum(String idsToken, OverTimeDetail overDetail) {
int collectNum = Integer.parseInt(getSlot("sys.number"));
String[] tokenList = new String(Base64.getDecoder().decode(idsToken)).split(File.separator);
......@@ -401,7 +207,7 @@ public class DplBotService extends BaseBot {
log.info("进入作品语句:{}", enterProductWord);
QiWuResponse data = null;
try {
data = RequestTerminal.requestTerminate(enterProductWord, getCustomerId());
data = RequestTerminal.requestTerminate(enterProductWord, getUserId());
} catch (IOException e) {
log.error("请求终端接口出错:", e.toString());
}
......@@ -409,13 +215,11 @@ public class DplBotService extends BaseBot {
return buildErrorResponse(SORRY_UNCATCH);
}
String text = data.getText();
int i1 = text.indexOf("【");
int i2 = text.indexOf("@");
String aside = text.substring(i1+1, i2);
String aside = DplbotServiceUtil.getAsideText(text);
text = text.substring(text.indexOf("】")+1);
log.info("旁白名字:{}",aside);
PlayDocument document = PlayUtils.getPlayDocument(productName, aside, ScheduleService.getAsideImgUrl(botID, aside),
data.getAudio(), text, doesUserCollectThisBot(botID));
data.getAudio(), text, DplbotServiceUtil.doesUserCollectThisBot(botID, getAccessToken(), getUserId()));
RenderDocument render = new RenderDocument(document);
this.setSessionAttribute(PRE_COLLE, null);
......@@ -430,39 +234,15 @@ public class DplBotService extends BaseBot {
return new Response();
}
private static String getDPLTemple(String path) {
String temple = null;
try {
temple = getJsonFromName(path);
} catch (IOException e) {
log.error("没有获取到json字符串:{}", e.toString());
}
return temple;
}
@Override
protected Response onUserEvent(UserEvent userEvent) {
log.info("onUserEvent事件触发,token:{}, componentId:{}",userEvent.getToken(),userEvent.getPayload().getComponentId());
if (getAccessToken() != null && getSessionAttribute("userId") == null) {
try {
String userId = getUserIdByToken(getAccessToken());
String userId = DplbotServiceUtil.getUsUserId(getAccessToken(), getUserId());
setSessionAttribute("userId", userId);
} catch (Exception e) {
log.error("新会话设置userId信息失败:{}",e.toString());
}
}
String componentId = userEvent.getPayload().getComponentId();
String componentPrefix;
// if ("frameTxtOver".equals(componentId)) {
// ExecuteCommands commands = new ExecuteCommands();
// SetStateCommand setState = new SetStateCommand();
// setState.setComponentId("frameTxt");
// setState.setState("text");
// setState.setValue("233333333333333333333");
// commands.addCommand(setState);
// this.addDirective(commands);
// return new Response();
// }
if ("audio".equals(componentId)){
setExpectSpeech(true);
}
......@@ -477,36 +257,17 @@ public class DplBotService extends BaseBot {
}
String imgUrl = new StringBuilder(Constants.IMG_PREFIX).append(productDetail.getBannerImgUrl()).toString();
List<Item> content = PROD_INFO.getMainTemplate().getItems().get(2).getItems().get(0).getItems().get(0).getItems();
// product picture
content.get(0).setSrc(imgUrl);
// text content
List<Item> contentText = content.get(1).getItems();
// product name
productName = correctName(productName);
contentText.get(0).setText(productName);
// product create time
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
String dateString = formatter.format(productDetail.getCreateTime());
contentText.get(1).getItems().get(0).setText(new StringBuilder(Constants.PRODUCT_INTRO.CREATE_TIME).append(dateString).toString());
// product author
contentText.get(1).getItems().get(1).setText(new StringBuilder(Constants.PRODUCT_INTRO.AUTHOR).append(productDetail.getAuthorName()).toString());
// product labels
String time = new StringBuilder(Constants.PRODUCT_INTRO.CREATE_TIME).append(dateString).toString();
String author = new StringBuilder(Constants.PRODUCT_INTRO.AUTHOR).append(productDetail.getAuthorName()).toString();
StringBuilder labels = new StringBuilder(Constants.PRODUCT_INTRO.LABEL);
for (String label: productDetail.getLabels()) {
labels.append(Constants.PRODUCT_INTRO.SPACE).append(label);
}
contentText.get(2).getItems().get(0).setText(labels.toString());
productDetail.getIntro();
ProductInfoUtils.getProductINfoDocument(imgUrl, productName, );
// product introduction
contentText.get(3).getItems().get(0).setText(productDetail.getIntro());
List<Item> icons = contentText.get(4).getItems();
// "start product" container button
String enterProName = new StringBuilder(Constants.PRE_ENTER_PRODUCT).append(productName).toString();
icons.get(0).setComponentId(enterProName);
......@@ -844,32 +605,6 @@ public class DplBotService extends BaseBot {
return executeCommands;
}
private String getUsUserId() throws IOException {
String usId = DU_ID_2_US_ID.get(getCustomerId());
if (usId == null) usId = getUserIdByToken(getAccessToken());
return usId;
}
private String getUserIdByToken(String accessToken) throws IOException {
HashMap<String, String> headers = new HashMap<>();
headers.put("App-Channel-Id", "JIAOYOUTIANXIA");
headers.put("Authorization", new StringBuilder(BEARER).append(accessToken).toString());
String str = OkHttp3Utils.doGet(USER_ID_BY_TOKEN, new HashMap<>(), headers);
log.info("getUserIdByToken:{}",str);
UserInfoByTokenResult info = JSON.parseObject(str, UserInfoByTokenResult.class);
if (info.getRetcode() == 0) {
Payload payload = JSON.parseObject(info.getPayload(), Payload.class);
String userId = payload.getInfoId();
log.info("通过Token获取的用户在app端的id:{}", userId);
DU_ID_2_US_ID.put(getCustomerId(), userId);
return userId;
}
else {
log.error("通过accessToken获取用户id出错:{}",str);
return null;
}
}
private Response load() {
Card card = new LinkAccountCard();
Response response = buildErrorResponse(LOAD_INTRO);
......@@ -1039,20 +774,6 @@ public class DplBotService extends BaseBot {
return userId;
}
private static String getJsonFromName(String filename) throws IOException {
InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(filename);
InputStreamReader reader = new InputStreamReader(inputStream);
char[] buffer = new char[512];
int ln;
StringBuilder builder = new StringBuilder();
while ((ln = reader.read(buffer)) != -1) {
builder.append(buffer, 0, ln);
}
return builder.toString();
}
class CollectThread implements Runnable {
final String botId;
final String userId;
......@@ -2404,28 +2125,7 @@ public class DplBotService extends BaseBot {
}
}
private boolean doesUserCollectThisBot(String botID) {
boolean collected = false;
if (getAccessToken() != null) {
UserBehaviorData userData = USER_HISTORY.get(getUserId());
if (userData != null) {
collected = userData.getUserBotId2Collected().containsKey(botID);
} else {
getUserFavorite();
try {
AppFavoriteTBRepository repository = BaseHolder.getBean("appFavoriteTBRepository");
AppFavoriteTB tb = new AppFavoriteTB();
tb.setBotId(botID);
tb.setUserId(Integer.valueOf(getUsUserId()));
Example<AppFavoriteTB> example = Example.of(tb);
collected = repository.exists(example);
} catch (Exception e) {
}
}
}
return collected;
}
public static void main(String[] args) throws IOException, InterruptedException, ExecutionException, TimeoutException {
String s = "NDM4MTU1MzY3NDU3NzIwMTM2NDY0MDIxNjQ3NTMzODk5NzYxODgxMTAyOTU1ODY4ODc5MDc3MjA4NjIyMTM5NjM1NjU3Mjc3MDA5MjgzOTM2OTQ5MzQ4Mjk3Mjc0MzI0MjY5ODI4MTM3MzkwNDczMTc3OTM2NTY1NTkwNTMzMTk2MTI1MzU0NTU3NjY3MzkxOTY=";
......
package ai.qiwu.com.xiaoduhome.service;
import ai.qiwu.com.xiaoduhome.common.BaseHolder;
import ai.qiwu.com.xiaoduhome.common.OkHttp3Utils;
import ai.qiwu.com.xiaoduhome.entity.primary.AppFavoriteTB;
import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail;
import ai.qiwu.com.xiaoduhome.pojo.Payload;
import ai.qiwu.com.xiaoduhome.pojo.UserBehaviorData;
import ai.qiwu.com.xiaoduhome.pojo.UserInfoByTokenResult;
import ai.qiwu.com.xiaoduhome.repository.primary.AppFavoriteTBRepository;
import ai.qiwu.com.xiaoduhome.repository.primary.AppFlowerTBTintRepository;
import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuHistoryTBRepository;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.springframework.data.domain.Example;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import static ai.qiwu.com.xiaoduhome.common.Constants.XIAOWU_API.BEARER;
import static ai.qiwu.com.xiaoduhome.common.Constants.XIAOWU_API.USER_ID_BY_TOKEN;
/**
* @author 苗权威
* @dateTime 19-9-23 上午10:26
*/
@Slf4j
public class DplbotServiceUtil {
private static final byte byteFill = 1;
private static final int CORE = Runtime.getRuntime().availableProcessors();
private static final ThreadPoolExecutor POOL = new ThreadPoolExecutor(CORE+1, 1500,
2500, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(CORE), new ThreadPoolExecutor.CallerRunsPolicy());
private static final ConcurrentHashMap<String, UserBehaviorData> USER_HISTORY = new ConcurrentHashMap<>();
static void getUserFavorite(final String userId, final String usUserId) {
POOL.submit(() -> {
AppFavoriteTBRepository favoriteTBRepository = BaseHolder.getBean("appFavoriteTBRepository");
try {
UserBehaviorData data = USER_HISTORY.computeIfAbsent(userId, s -> new UserBehaviorData());
List<String> favoriteBotIDS = favoriteTBRepository.getFavoriteBotIds(Long.valueOf(usUserId));
for(String botId : favoriteBotIDS) {
data.getUserBotId2Collected().put(botId, byteFill);
}
} catch (Exception e) {
e.printStackTrace();
}
});
}
static void getUserSendFlowerInfo(final String userId) {
POOL.submit(() -> {
UserBehaviorData data = USER_HISTORY.computeIfAbsent(userId, s -> new UserBehaviorData());
AppFlowerTBTintRepository repository = BaseHolder.getBean("appFlowerTBTintRepository");
for (OnProductDetail detail: ScheduleService.getAllOnProduct()) {
long sum = 0;
List<Long> nums = repository.getFlowerNumByUserIdAndBotAccount(Long.parseLong(userId), detail.getBotAccount());
for (Long num: nums) sum += num;
data.getUserBotId2Flowers().put(detail.getBotAccount(), sum);
}
});
}
static String getUsUserId(String userId, String accessToken) {
UserBehaviorData data = USER_HISTORY.computeIfAbsent(userId, s -> new UserBehaviorData());
String usId = data.getJytUserId();
if (usId == null) {
usId = getUserIdByToken(accessToken, userId);
data.setJytUserId(usId);
}
return usId;
}
static String getUserIdByToken(String accessToken, String userId) {
try {
HashMap<String, String> headers = new HashMap<>();
headers.put("App-Channel-Id", "JIAOYOUTIANXIA");
headers.put("Authorization", new StringBuilder(BEARER).append(accessToken).toString());
String str = OkHttp3Utils.doGet(USER_ID_BY_TOKEN, new HashMap<>(), headers);
log.info("getUserIdByToken:{}",str);
UserInfoByTokenResult info = JSON.parseObject(str, UserInfoByTokenResult.class);
if (info.getRetcode() == 0) {
Payload payload = JSON.parseObject(info.getPayload(), Payload.class);
String jytUserId = payload.getInfoId();
log.info("通过Token获取的用户在app端的id:{}", userId);
UserBehaviorData data = USER_HISTORY.computeIfAbsent(userId, s -> new UserBehaviorData());
data.setJytUserId(jytUserId);
return jytUserId;
}
} catch (Exception e) {
log.error("获取郊游天下用户id出错:{}", ExceptionUtils.getStackTrace(e));
}
return null;
}
static void onLunchGetUserHistory(final String userId) {
DplbotServiceUtil.getPOOL().submit(() -> {
XiaoDuHistoryTBRepository repository = BaseHolder.getBean("xiaoDuHistoryTBRepository");
UserBehaviorData data = USER_HISTORY.computeIfAbsent(userId, s -> new UserBehaviorData());
HashMap<String,Byte> userBotId2History = data.getUserBotId2History();
for (String botId: repository.getUserHostory(userId)) {
userBotId2History.put(botId, byteFill);
}
//log.info("用户历史记录:{}",USER_HISTORY);
});
}
static void onLunchFillUserBehaviorData(final String accessToken, final String userId) {
POOL.submit(() -> {
String jytUserId = DplbotServiceUtil.getUserIdByToken(accessToken, userId);
if (jytUserId != null) {
UserBehaviorData data = USER_HISTORY.computeIfAbsent(userId, s -> new UserBehaviorData());
data.setJytUserId(jytUserId);
getUserFavorite(userId, jytUserId);
getUserSendFlowerInfo(userId);
}
});
}
public static ThreadPoolExecutor getPOOL() {
return POOL;
}
static String getDPLTemple(String path) {
String temple = null;
try {
temple = getJsonFromName(path);
} catch (IOException e) {
log.error("没有获取到json字符串:{}", e.toString());
}
return temple;
}
private static String getJsonFromName(String filename) throws IOException {
InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(filename);
InputStreamReader reader = new InputStreamReader(inputStream);
char[] buffer = new char[512];
int ln;
StringBuilder builder = new StringBuilder();
while ((ln = reader.read(buffer)) != -1) {
builder.append(buffer, 0, ln);
}
return builder.toString();
}
static boolean doesUserCollectThisBot(String botID, String accessToken, String userId) {
boolean collected = false;
if (accessToken != null) {
UserBehaviorData userData = USER_HISTORY.get(userId);
if (userData != null) {
collected = userData.getUserBotId2Collected().containsKey(botID);
} else {
getUserFavorite(userId, getUsUserId(userId, accessToken));
try {
AppFavoriteTBRepository repository = BaseHolder.getBean("appFavoriteTBRepository");
AppFavoriteTB tb = new AppFavoriteTB();
tb.setBotId(botID);
tb.setUserId(Integer.valueOf(getUsUserId(userId, accessToken)));
Example<AppFavoriteTB> example = Example.of(tb);
collected = repository.exists(example);
} catch (Exception e) {
}
}
}
return collected;
}
static String getAsideText(String text) {
int i1 = text.indexOf("【");
int i2 = text.indexOf("@");
return text.substring(i1+1, i2);
}
}
......@@ -157,11 +157,15 @@ public class ScheduleService implements InitializingBean {
}
private void getAsideImg() {
DplBotService.POOL.submit(() -> {
DplbotServiceUtil.getPOOL().submit(() -> {
List<String> botIds = gameProjectTbRepository.getAllOnTableProductIds();
for (String botId: botIds) {
try {
botId = HZ1_BOT_TO_NX2.get(botId);
if (botId == null) {
log.info("找不到对应关系:{}",botId);
continue;
}
HashMap<String, String> params = new HashMap<>();
params.put("include", "npcHeadImgUrl");
params.put("aipioneerUsername",botId);
......@@ -286,14 +290,14 @@ public class ScheduleService implements InitializingBean {
}
public static String getAsideImgUrl(String botId, String name) {
String url = DEFAULT_ASIDE_IMG_URL;
String url;
Map<String,String> imgs = ASIDE_IMG.get(botId);
if (imgs == null) {
url = DEFAULT_ASIDE_IMG_URL;
} else {
url = imgs.get(name);
}
if (url == null) url = DEFAULT_ASIDE_IMG_URL;
return url;
// Map<String,String> imgs = ASIDE_IMG.get(botId);
// if (imgs == null) {
// url = DEFAULT_ASIDE_IMG_URL
// }
// String url = ASIDE_IMG.get(botId).get(name);
// if (url == null) url = DEFAULT_ASIDE_IMG_URL;
// return url;
}
}
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