diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..6e74ac6
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+smartbox
\ No newline at end of file
diff --git a/.idea/artifacts/dingdong_war.xml b/.idea/artifacts/dingdong_war.xml
new file mode 100644
index 0000000..5914656
--- /dev/null
+++ b/.idea/artifacts/dingdong_war.xml
@@ -0,0 +1,8 @@
+
+
+ $PROJECT_DIR$/dingdong/target
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/artifacts/dingdong_war_exploded.xml b/.idea/artifacts/dingdong_war_exploded.xml
new file mode 100644
index 0000000..974f85b
--- /dev/null
+++ b/.idea/artifacts/dingdong_war_exploded.xml
@@ -0,0 +1,54 @@
+
+
+ $PROJECT_DIR$/dingdong/target/dingdong
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/artifacts/xiaodu_war.xml b/.idea/artifacts/xiaodu_war.xml
new file mode 100644
index 0000000..cecf5ac
--- /dev/null
+++ b/.idea/artifacts/xiaodu_war.xml
@@ -0,0 +1,8 @@
+
+
+ $PROJECT_DIR$/xiaodu/target
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/artifacts/xiaodu_war_exploded.xml b/.idea/artifacts/xiaodu_war_exploded.xml
new file mode 100644
index 0000000..1cd1c61
--- /dev/null
+++ b/.idea/artifacts/xiaodu_war_exploded.xml
@@ -0,0 +1,80 @@
+
+
+ $PROJECT_DIR$/xiaodu/target/xiaodu
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 3cb42ad..45b411f 100755
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -2,45 +2,26 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
\ No newline at end of file
diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml
deleted file mode 100755
index 4b81514..0000000
--- a/.idea/dataSources.local.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
- master_key
- root
-
-
-
\ No newline at end of file
diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml
deleted file mode 100755
index 6ad498e..0000000
--- a/.idea/dataSources.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
- mysql
- true
- com.mysql.jdbc.Driver
- jdbc:mysql://localhost:3306/TTS
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index 7be22c9..498ac8b 100755
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -1,17 +1,12 @@
-
+
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
index 1e773a6..e9844ba 100755
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -1,7 +1,6 @@
-
-
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__antlr_antlr_2_7_7.xml b/.idea/libraries/Maven__antlr_antlr_2_7_7.xml
new file mode 100644
index 0000000..536821c
--- /dev/null
+++ b/.idea/libraries/Maven__antlr_antlr_2_7_7.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml b/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml
new file mode 100644
index 0000000..dd874c7
--- /dev/null
+++ b/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml b/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml
new file mode 100644
index 0000000..974b2b2
--- /dev/null
+++ b/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_alibaba_fastjson_1_2_60.xml b/.idea/libraries/Maven__com_alibaba_fastjson_1_2_60.xml
new file mode 100644
index 0000000..29ed3cc
--- /dev/null
+++ b/.idea/libraries/Maven__com_alibaba_fastjson_1_2_60.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_alibaba_fastjson_1_2_62.xml b/.idea/libraries/Maven__com_alibaba_fastjson_1_2_62.xml
new file mode 100644
index 0000000..07ced7e
--- /dev/null
+++ b/.idea/libraries/Maven__com_alibaba_fastjson_1_2_62.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_baidu_aip_java_sdk_4_11_3.xml b/.idea/libraries/Maven__com_baidu_aip_java_sdk_4_11_3.xml
new file mode 100644
index 0000000..9d1d244
--- /dev/null
+++ b/.idea/libraries/Maven__com_baidu_aip_java_sdk_4_11_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_baidu_apm_bot_monitor_java_1_1_0.xml b/.idea/libraries/Maven__com_baidu_apm_bot_monitor_java_1_1_0.xml
new file mode 100644
index 0000000..ff5934b
--- /dev/null
+++ b/.idea/libraries/Maven__com_baidu_apm_bot_monitor_java_1_1_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_baidu_dueros_bot_sdk_1_2_0.xml b/.idea/libraries/Maven__com_baidu_dueros_bot_sdk_1_2_0.xml
new file mode 100644
index 0000000..efd064e
--- /dev/null
+++ b/.idea/libraries/Maven__com_baidu_dueros_bot_sdk_1_2_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_eclipsesource_minimal_json_minimal_json_0_9_4.xml b/.idea/libraries/Maven__com_eclipsesource_minimal_json_minimal_json_0_9_4.xml
new file mode 100644
index 0000000..4d02e8d
--- /dev/null
+++ b/.idea/libraries/Maven__com_eclipsesource_minimal_json_minimal_json_0_9_4.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_classmate_1_4_0.xml b/.idea/libraries/Maven__com_fasterxml_classmate_1_4_0.xml
new file mode 100644
index 0000000..d9050a4
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_classmate_1_4_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_classmate_1_5_0.xml b/.idea/libraries/Maven__com_fasterxml_classmate_1_5_0.xml
new file mode 100644
index 0000000..45da810
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_classmate_1_5_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_0.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_0.xml
new file mode 100644
index 0000000..5a0625b
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
new file mode 100644
index 0000000..0077091
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_10_0.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_10_0.xml
new file mode 100644
index 0000000..9e06cc0
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_10_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_9.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_9.xml
new file mode 100644
index 0000000..66985d9
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_9.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_10_0.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_10_0.xml
new file mode 100644
index 0000000..f8eb31f
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_10_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_9.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_9.xml
new file mode 100644
index 0000000..df46f3c
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_9.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_0.xml b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_0.xml
new file mode 100644
index 0000000..ad5aed3
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_9.xml b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_9.xml
new file mode 100644
index 0000000..8502ae4
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_9.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_0.xml b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_0.xml
new file mode 100644
index 0000000..16a5ca9
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_9.xml b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_9.xml
new file mode 100644
index 0000000..b4de13c
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_9.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_0.xml b/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_0.xml
new file mode 100644
index 0000000..c69b85e
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_9.xml b/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_9.xml
new file mode 100644
index 0000000..0c8bdee
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_9.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_github_wnameless_json_flattener_0_4_0.xml b/.idea/libraries/Maven__com_github_wnameless_json_flattener_0_4_0.xml
new file mode 100644
index 0000000..f757d12
--- /dev/null
+++ b/.idea/libraries/Maven__com_github_wnameless_json_flattener_0_4_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml b/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml
new file mode 100644
index 0000000..05bc174
--- /dev/null
+++ b/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_code_gson_gson_2_8_5.xml b/.idea/libraries/Maven__com_google_code_gson_gson_2_8_5.xml
new file mode 100644
index 0000000..0ab965c
--- /dev/null
+++ b/.idea/libraries/Maven__com_google_code_gson_gson_2_8_5.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_3_2.xml b/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_3_2.xml
new file mode 100644
index 0000000..ffbe837
--- /dev/null
+++ b/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_3_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_guava_failureaccess_1_0_1.xml b/.idea/libraries/Maven__com_google_guava_failureaccess_1_0_1.xml
new file mode 100644
index 0000000..c70d93b
--- /dev/null
+++ b/.idea/libraries/Maven__com_google_guava_failureaccess_1_0_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_guava_guava_18_0.xml b/.idea/libraries/Maven__com_google_guava_guava_18_0.xml
new file mode 100644
index 0000000..1746120
--- /dev/null
+++ b/.idea/libraries/Maven__com_google_guava_guava_18_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_guava_guava_28_1_jre.xml b/.idea/libraries/Maven__com_google_guava_guava_28_1_jre.xml
new file mode 100644
index 0000000..d17f5f0
--- /dev/null
+++ b/.idea/libraries/Maven__com_google_guava_guava_28_1_jre.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xml b/.idea/libraries/Maven__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xml
new file mode 100644
index 0000000..d5b1f39
--- /dev/null
+++ b/.idea/libraries/Maven__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_j2objc_j2objc_annotations_1_3.xml b/.idea/libraries/Maven__com_google_j2objc_j2objc_annotations_1_3.xml
new file mode 100644
index 0000000..6451915
--- /dev/null
+++ b/.idea/libraries/Maven__com_google_j2objc_j2objc_annotations_1_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml b/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml
new file mode 100644
index 0000000..a9e262b
--- /dev/null
+++ b/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_squareup_okhttp3_okhttp_4_0_0.xml b/.idea/libraries/Maven__com_squareup_okhttp3_okhttp_4_0_0.xml
new file mode 100644
index 0000000..9abb1b4
--- /dev/null
+++ b/.idea/libraries/Maven__com_squareup_okhttp3_okhttp_4_0_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_squareup_okio_okio_2_2_2.xml b/.idea/libraries/Maven__com_squareup_okio_okio_2_2_2.xml
new file mode 100644
index 0000000..4392d1a
--- /dev/null
+++ b/.idea/libraries/Maven__com_squareup_okio_okio_2_2_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_3_0_8.xml b/.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_3_0_8.xml
new file mode 100644
index 0000000..e7e2a1b
--- /dev/null
+++ b/.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_3_0_8.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_sun_xml_fastinfoset_FastInfoset_1_2_16.xml b/.idea/libraries/Maven__com_sun_xml_fastinfoset_FastInfoset_1_2_16.xml
new file mode 100644
index 0000000..3f66664
--- /dev/null
+++ b/.idea/libraries/Maven__com_sun_xml_fastinfoset_FastInfoset_1_2_16.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml b/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
new file mode 100644
index 0000000..c987dd2
--- /dev/null
+++ b/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_zaxxer_HikariCP_3_2_0.xml b/.idea/libraries/Maven__com_zaxxer_HikariCP_3_2_0.xml
new file mode 100644
index 0000000..5ccc3aa
--- /dev/null
+++ b/.idea/libraries/Maven__com_zaxxer_HikariCP_3_2_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_zaxxer_HikariCP_3_4_1.xml b/.idea/libraries/Maven__com_zaxxer_HikariCP_3_4_1.xml
new file mode 100644
index 0000000..24cab60
--- /dev/null
+++ b/.idea/libraries/Maven__com_zaxxer_HikariCP_3_4_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_8_3.xml b/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_8_3.xml
new file mode 100644
index 0000000..3e4e7c9
--- /dev/null
+++ b/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_8_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__commons_codec_commons_codec_1_11.xml b/.idea/libraries/Maven__commons_codec_commons_codec_1_11.xml
new file mode 100644
index 0000000..a6d25f2
--- /dev/null
+++ b/.idea/libraries/Maven__commons_codec_commons_codec_1_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__commons_digester_commons_digester_2_1.xml b/.idea/libraries/Maven__commons_digester_commons_digester_2_1.xml
new file mode 100644
index 0000000..085d078
--- /dev/null
+++ b/.idea/libraries/Maven__commons_digester_commons_digester_2_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__commons_fileupload_commons_fileupload_1_4.xml b/.idea/libraries/Maven__commons_fileupload_commons_fileupload_1_4.xml
new file mode 100644
index 0000000..9d8bac7
--- /dev/null
+++ b/.idea/libraries/Maven__commons_fileupload_commons_fileupload_1_4.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__commons_io_commons_io_2_2.xml b/.idea/libraries/Maven__commons_io_commons_io_2_2.xml
new file mode 100644
index 0000000..b0ed416
--- /dev/null
+++ b/.idea/libraries/Maven__commons_io_commons_io_2_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__commons_io_commons_io_2_4.xml b/.idea/libraries/Maven__commons_io_commons_io_2_4.xml
new file mode 100644
index 0000000..1989a47
--- /dev/null
+++ b/.idea/libraries/Maven__commons_io_commons_io_2_4.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml b/.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml
new file mode 100644
index 0000000..a3b5d10
--- /dev/null
+++ b/.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml b/.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml
new file mode 100644
index 0000000..8dafc72
--- /dev/null
+++ b/.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_lettuce_lettuce_core_5_1_7_RELEASE.xml b/.idea/libraries/Maven__io_lettuce_lettuce_core_5_1_7_RELEASE.xml
new file mode 100644
index 0000000..407bd92
--- /dev/null
+++ b/.idea/libraries/Maven__io_lettuce_lettuce_core_5_1_7_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_lettuce_lettuce_core_5_2_0_RELEASE.xml b/.idea/libraries/Maven__io_lettuce_lettuce_core_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..0f5999a
--- /dev/null
+++ b/.idea/libraries/Maven__io_lettuce_lettuce_core_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_buffer_4_1_36_Final.xml b/.idea/libraries/Maven__io_netty_netty_buffer_4_1_36_Final.xml
new file mode 100644
index 0000000..9e545c8
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_buffer_4_1_36_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_buffer_4_1_42_Final.xml b/.idea/libraries/Maven__io_netty_netty_buffer_4_1_42_Final.xml
new file mode 100644
index 0000000..39b09d1
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_buffer_4_1_42_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_codec_4_1_36_Final.xml b/.idea/libraries/Maven__io_netty_netty_codec_4_1_36_Final.xml
new file mode 100644
index 0000000..c9bc793
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_codec_4_1_36_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_codec_4_1_42_Final.xml b/.idea/libraries/Maven__io_netty_netty_codec_4_1_42_Final.xml
new file mode 100644
index 0000000..1bbf6b8
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_codec_4_1_42_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_common_4_1_36_Final.xml b/.idea/libraries/Maven__io_netty_netty_common_4_1_36_Final.xml
new file mode 100644
index 0000000..bbfbe47
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_common_4_1_36_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_common_4_1_42_Final.xml b/.idea/libraries/Maven__io_netty_netty_common_4_1_42_Final.xml
new file mode 100644
index 0000000..8d91b47
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_common_4_1_42_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_handler_4_1_36_Final.xml b/.idea/libraries/Maven__io_netty_netty_handler_4_1_36_Final.xml
new file mode 100644
index 0000000..adb937d
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_handler_4_1_36_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_handler_4_1_42_Final.xml b/.idea/libraries/Maven__io_netty_netty_handler_4_1_42_Final.xml
new file mode 100644
index 0000000..b7d5c4c
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_handler_4_1_42_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_resolver_4_1_36_Final.xml b/.idea/libraries/Maven__io_netty_netty_resolver_4_1_36_Final.xml
new file mode 100644
index 0000000..f2c851c
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_resolver_4_1_36_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_resolver_4_1_42_Final.xml b/.idea/libraries/Maven__io_netty_netty_resolver_4_1_42_Final.xml
new file mode 100644
index 0000000..d1aeb0e
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_resolver_4_1_42_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_transport_4_1_36_Final.xml b/.idea/libraries/Maven__io_netty_netty_transport_4_1_36_Final.xml
new file mode 100644
index 0000000..d2b121e
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_transport_4_1_36_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_netty_netty_transport_4_1_42_Final.xml b/.idea/libraries/Maven__io_netty_netty_transport_4_1_42_Final.xml
new file mode 100644
index 0000000..9ff01d7
--- /dev/null
+++ b/.idea/libraries/Maven__io_netty_netty_transport_4_1_42_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_projectreactor_reactor_core_3_2_10_RELEASE.xml b/.idea/libraries/Maven__io_projectreactor_reactor_core_3_2_10_RELEASE.xml
new file mode 100644
index 0000000..fed4626
--- /dev/null
+++ b/.idea/libraries/Maven__io_projectreactor_reactor_core_3_2_10_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__io_projectreactor_reactor_core_3_3_0_RELEASE.xml b/.idea/libraries/Maven__io_projectreactor_reactor_core_3_3_0_RELEASE.xml
new file mode 100644
index 0000000..ea28ff5
--- /dev/null
+++ b/.idea/libraries/Maven__io_projectreactor_reactor_core_3_3_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_1.xml b/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_1.xml
new file mode 100644
index 0000000..fe811a7
--- /dev/null
+++ b/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml b/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml
new file mode 100644
index 0000000..5ddce8f
--- /dev/null
+++ b/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__jakarta_persistence_jakarta_persistence_api_2_2_3.xml b/.idea/libraries/Maven__jakarta_persistence_jakarta_persistence_api_2_2_3.xml
new file mode 100644
index 0000000..913d3a6
--- /dev/null
+++ b/.idea/libraries/Maven__jakarta_persistence_jakarta_persistence_api_2_2_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__jakarta_transaction_jakarta_transaction_api_1_3_3.xml b/.idea/libraries/Maven__jakarta_transaction_jakarta_transaction_api_1_3_3.xml
new file mode 100644
index 0000000..85df205
--- /dev/null
+++ b/.idea/libraries/Maven__jakarta_transaction_jakarta_transaction_api_1_3_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_2_0_1.xml b/.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_2_0_1.xml
new file mode 100644
index 0000000..c92ad75
--- /dev/null
+++ b/.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_2_0_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml b/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml
new file mode 100644
index 0000000..e3b68df
--- /dev/null
+++ b/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__javax_activation_javax_activation_api_1_2_0.xml b/.idea/libraries/Maven__javax_activation_javax_activation_api_1_2_0.xml
new file mode 100644
index 0000000..2a6ad8a
--- /dev/null
+++ b/.idea/libraries/Maven__javax_activation_javax_activation_api_1_2_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml b/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml
new file mode 100644
index 0000000..095c286
--- /dev/null
+++ b/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__javax_persistence_javax_persistence_api_2_2.xml b/.idea/libraries/Maven__javax_persistence_javax_persistence_api_2_2.xml
new file mode 100644
index 0000000..8822cbd
--- /dev/null
+++ b/.idea/libraries/Maven__javax_persistence_javax_persistence_api_2_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__javax_servlet_javax_servlet_api_4_0_1.xml b/.idea/libraries/Maven__javax_servlet_javax_servlet_api_4_0_1.xml
new file mode 100644
index 0000000..8c82208
--- /dev/null
+++ b/.idea/libraries/Maven__javax_servlet_javax_servlet_api_4_0_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_3.xml b/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_3.xml
new file mode 100644
index 0000000..7f75e49
--- /dev/null
+++ b/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml b/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml
new file mode 100644
index 0000000..877ae02
--- /dev/null
+++ b/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_3_1.xml b/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_3_1.xml
new file mode 100644
index 0000000..542a247
--- /dev/null
+++ b/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_3_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__junit_junit_4_12.xml b/.idea/libraries/Maven__junit_junit_4_12.xml
new file mode 100644
index 0000000..d3b7192
--- /dev/null
+++ b/.idea/libraries/Maven__junit_junit_4_12.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__log4j_log4j_1_2_17.xml b/.idea/libraries/Maven__log4j_log4j_1_2_17.xml
new file mode 100644
index 0000000..cfa1c7f
--- /dev/null
+++ b/.idea/libraries/Maven__log4j_log4j_1_2_17.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_16.xml b/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_16.xml
new file mode 100644
index 0000000..58b88df
--- /dev/null
+++ b/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_16.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_18.xml b/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_18.xml
new file mode 100644
index 0000000..a432725
--- /dev/null
+++ b/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_18.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_1.xml b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_1.xml
new file mode 100644
index 0000000..3f22ce5
--- /dev/null
+++ b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_13.xml b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_13.xml
new file mode 100644
index 0000000..4658d94
--- /dev/null
+++ b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_13.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_10_1.xml b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_10_1.xml
new file mode 100644
index 0000000..fc441dc
--- /dev/null
+++ b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_10_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_13.xml b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_13.xml
new file mode 100644
index 0000000..a15e9e4
--- /dev/null
+++ b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_13.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml b/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml
new file mode 100644
index 0000000..c85dd2a
--- /dev/null
+++ b/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml b/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml
new file mode 100644
index 0000000..fdd4d46
--- /dev/null
+++ b/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__net_sourceforge_javacsv_javacsv_2_0.xml b/.idea/libraries/Maven__net_sourceforge_javacsv_javacsv_2_0.xml
new file mode 100644
index 0000000..c52e444
--- /dev/null
+++ b/.idea/libraries/Maven__net_sourceforge_javacsv_javacsv_2_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_commons_commons_csv_1_7.xml b/.idea/libraries/Maven__org_apache_commons_commons_csv_1_7.xml
new file mode 100644
index 0000000..e28b2ae
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_commons_commons_csv_1_7.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_8_1.xml b/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_8_1.xml
new file mode 100644
index 0000000..8017f0f
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_8_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_9.xml b/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_9.xml
new file mode 100644
index 0000000..2a8e2c0
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_9.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_httpcomponents_httpasyncclient_4_1_4.xml b/.idea/libraries/Maven__org_apache_httpcomponents_httpasyncclient_4_1_4.xml
new file mode 100644
index 0000000..6b22287
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_httpcomponents_httpasyncclient_4_1_4.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_8.xml b/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_8.xml
new file mode 100644
index 0000000..c586ba0
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_8.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_9.xml b/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_9.xml
new file mode 100644
index 0000000..484d5b0
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_9.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_11.xml b/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_11.xml
new file mode 100644
index 0000000..2c6e92d
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_nio_4_4_11.xml b/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_nio_4_4_11.xml
new file mode 100644
index 0000000..4c10910
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_nio_4_4_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_httpcomponents_httpmime_4_5_9.xml b/.idea/libraries/Maven__org_apache_httpcomponents_httpmime_4_5_9.xml
new file mode 100644
index 0000000..a6cd8ba
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_httpcomponents_httpmime_4_5_9.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_11_2.xml b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_11_2.xml
new file mode 100644
index 0000000..a8ccd8c
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_11_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_12_1.xml b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_12_1.xml
new file mode 100644
index 0000000..5001eaf
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_12_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xml b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xml
new file mode 100644
index 0000000..c07afd0
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_12_1.xml b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_12_1.xml
new file mode 100644
index 0000000..176e75d
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_12_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_21.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_21.xml
new file mode 100644
index 0000000..795ffb7
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_21.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_27.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_27.xml
new file mode 100644
index 0000000..426b730
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_27.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_21.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_21.xml
new file mode 100644
index 0000000..a37a09d
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_21.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_27.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_27.xml
new file mode 100644
index 0000000..39e5e90
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_27.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_21.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_21.xml
new file mode 100644
index 0000000..8c4edf7
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_21.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_27.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_27.xml
new file mode 100644
index 0000000..29b29fe
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_27.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_0.xml b/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_0.xml
new file mode 100644
index 0000000..e6ecab0
--- /dev/null
+++ b/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_4.xml b/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_4.xml
new file mode 100644
index 0000000..f26a3cf
--- /dev/null
+++ b/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_4.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_assertj_assertj_core_3_11_1.xml b/.idea/libraries/Maven__org_assertj_assertj_core_3_11_1.xml
new file mode 100644
index 0000000..6c94569
--- /dev/null
+++ b/.idea/libraries/Maven__org_assertj_assertj_core_3_11_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_assertj_assertj_core_3_13_2.xml b/.idea/libraries/Maven__org_assertj_assertj_core_3_13_2.xml
new file mode 100644
index 0000000..e598e0c
--- /dev/null
+++ b/.idea/libraries/Maven__org_assertj_assertj_core_3_13_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_attoparser_attoparser_2_0_5_RELEASE.xml b/.idea/libraries/Maven__org_attoparser_attoparser_2_0_5_RELEASE.xml
new file mode 100644
index 0000000..32fd30f
--- /dev/null
+++ b/.idea/libraries/Maven__org_attoparser_attoparser_2_0_5_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_checkerframework_checker_qual_2_8_1.xml b/.idea/libraries/Maven__org_checkerframework_checker_qual_2_8_1.xml
new file mode 100644
index 0000000..a5a455d
--- /dev/null
+++ b/.idea/libraries/Maven__org_checkerframework_checker_qual_2_8_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_codehaus_mojo_animal_sniffer_annotations_1_18.xml b/.idea/libraries/Maven__org_codehaus_mojo_animal_sniffer_annotations_1_18.xml
new file mode 100644
index 0000000..2a5b470
--- /dev/null
+++ b/.idea/libraries/Maven__org_codehaus_mojo_animal_sniffer_annotations_1_18.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_dom4j_dom4j_2_1_1.xml b/.idea/libraries/Maven__org_dom4j_dom4j_2_1_1.xml
new file mode 100644
index 0000000..1eeada6
--- /dev/null
+++ b/.idea/libraries/Maven__org_dom4j_dom4j_2_1_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_2_3_2.xml b/.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_2_3_2.xml
new file mode 100644
index 0000000..85ebc67
--- /dev/null
+++ b/.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_2_3_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_glassfish_jaxb_txw2_2_3_2.xml b/.idea/libraries/Maven__org_glassfish_jaxb_txw2_2_3_2.xml
new file mode 100644
index 0000000..96d2f28
--- /dev/null
+++ b/.idea/libraries/Maven__org_glassfish_jaxb_txw2_2_3_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_2_1.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_2_1.xml
new file mode 100644
index 0000000..018848e
--- /dev/null
+++ b/.idea/libraries/Maven__org_hamcrest_hamcrest_2_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
new file mode 100644
index 0000000..e5d35d8
--- /dev/null
+++ b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml
new file mode 100644
index 0000000..2a1ddc2
--- /dev/null
+++ b/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_4_Final.xml b/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_4_Final.xml
new file mode 100644
index 0000000..f3211b1
--- /dev/null
+++ b/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_4_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_1_0_Final.xml b/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_1_0_Final.xml
new file mode 100644
index 0000000..bf1d571
--- /dev/null
+++ b/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_1_0_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_hibernate_hibernate_core_5_3_10_Final.xml b/.idea/libraries/Maven__org_hibernate_hibernate_core_5_3_10_Final.xml
new file mode 100644
index 0000000..89f1e43
--- /dev/null
+++ b/.idea/libraries/Maven__org_hibernate_hibernate_core_5_3_10_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_hibernate_hibernate_core_5_4_6_Final.xml b/.idea/libraries/Maven__org_hibernate_hibernate_core_5_4_6_Final.xml
new file mode 100644
index 0000000..00a1768
--- /dev/null
+++ b/.idea/libraries/Maven__org_hibernate_hibernate_core_5_4_6_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_17_Final.xml b/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_17_Final.xml
new file mode 100644
index 0000000..489a30b
--- /dev/null
+++ b/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_17_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_javassist_javassist_3_23_2_GA.xml b/.idea/libraries/Maven__org_javassist_javassist_3_23_2_GA.xml
new file mode 100644
index 0000000..ac0cbf9
--- /dev/null
+++ b/.idea/libraries/Maven__org_javassist_javassist_3_23_2_GA.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_javassist_javassist_3_24_0_GA.xml b/.idea/libraries/Maven__org_javassist_javassist_3_24_0_GA.xml
new file mode 100644
index 0000000..239d0aa
--- /dev/null
+++ b/.idea/libraries/Maven__org_javassist_javassist_3_24_0_GA.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_jboss_jandex_2_0_5_Final.xml b/.idea/libraries/Maven__org_jboss_jandex_2_0_5_Final.xml
new file mode 100644
index 0000000..e8e2ac1
--- /dev/null
+++ b/.idea/libraries/Maven__org_jboss_jandex_2_0_5_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml b/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml
new file mode 100644
index 0000000..2c0713a
--- /dev/null
+++ b/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml b/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml
new file mode 100644
index 0000000..9a79b44
--- /dev/null
+++ b/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_jetbrains_annotations_13_0.xml b/.idea/libraries/Maven__org_jetbrains_annotations_13_0.xml
new file mode 100644
index 0000000..7296fd5
--- /dev/null
+++ b/.idea/libraries/Maven__org_jetbrains_annotations_13_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_1_2_71.xml b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_1_2_71.xml
new file mode 100644
index 0000000..b1eaec9
--- /dev/null
+++ b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_1_2_71.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_1_3_50.xml b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_1_3_50.xml
new file mode 100644
index 0000000..ffb97c7
--- /dev/null
+++ b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_1_3_50.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_common_1_2_71.xml b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_common_1_2_71.xml
new file mode 100644
index 0000000..4c256ae
--- /dev/null
+++ b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_common_1_2_71.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_common_1_3_50.xml b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_common_1_3_50.xml
new file mode 100644
index 0000000..28bffcf
--- /dev/null
+++ b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_common_1_3_50.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_json_json_20090211.xml b/.idea/libraries/Maven__org_json_json_20090211.xml
new file mode 100644
index 0000000..823b539
--- /dev/null
+++ b/.idea/libraries/Maven__org_json_json_20090211.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_json_json_20160810.xml b/.idea/libraries/Maven__org_json_json_20160810.xml
new file mode 100644
index 0000000..6cbf1eb
--- /dev/null
+++ b/.idea/libraries/Maven__org_json_json_20160810.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_5_2.xml b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_5_2.xml
new file mode 100644
index 0000000..60c40b6
--- /dev/null
+++ b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_5_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_5_2.xml b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_5_2.xml
new file mode 100644
index 0000000..c056d81
--- /dev/null
+++ b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_5_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_5_2.xml b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_5_2.xml
new file mode 100644
index 0000000..766b116
--- /dev/null
+++ b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_5_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_5_2.xml b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_5_2.xml
new file mode 100644
index 0000000..50218ee
--- /dev/null
+++ b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_5_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_5_2.xml b/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_5_2.xml
new file mode 100644
index 0000000..129f8ec
--- /dev/null
+++ b/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_5_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_5_2.xml b/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_5_2.xml
new file mode 100644
index 0000000..b1e019a
--- /dev/null
+++ b/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_5_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_junit_vintage_junit_vintage_engine_5_5_2.xml b/.idea/libraries/Maven__org_junit_vintage_junit_vintage_engine_5_5_2.xml
new file mode 100644
index 0000000..a0862e0
--- /dev/null
+++ b/.idea/libraries/Maven__org_junit_vintage_junit_vintage_engine_5_5_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_jvnet_staxex_stax_ex_1_8_1.xml b/.idea/libraries/Maven__org_jvnet_staxex_stax_ex_1_8_1.xml
new file mode 100644
index 0000000..72fccb4
--- /dev/null
+++ b/.idea/libraries/Maven__org_jvnet_staxex_stax_ex_1_8_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_mockito_mockito_core_2_23_4.xml b/.idea/libraries/Maven__org_mockito_mockito_core_2_23_4.xml
new file mode 100644
index 0000000..88a8a0f
--- /dev/null
+++ b/.idea/libraries/Maven__org_mockito_mockito_core_2_23_4.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_mockito_mockito_core_3_1_0.xml b/.idea/libraries/Maven__org_mockito_mockito_core_3_1_0.xml
new file mode 100644
index 0000000..d7574e2
--- /dev/null
+++ b/.idea/libraries/Maven__org_mockito_mockito_core_3_1_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_3_1_0.xml b/.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_3_1_0.xml
new file mode 100644
index 0000000..e4ca048
--- /dev/null
+++ b/.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_3_1_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml b/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml
new file mode 100644
index 0000000..4679a93
--- /dev/null
+++ b/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml b/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml
new file mode 100644
index 0000000..718b32e
--- /dev/null
+++ b/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml b/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml
new file mode 100644
index 0000000..acdc019
--- /dev/null
+++ b/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_projectlombok_lombok_1_18_8.xml b/.idea/libraries/Maven__org_projectlombok_lombok_1_18_8.xml
new file mode 100644
index 0000000..e3be194
--- /dev/null
+++ b/.idea/libraries/Maven__org_projectlombok_lombok_1_18_8.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_reactivestreams_reactive_streams_1_0_2.xml b/.idea/libraries/Maven__org_reactivestreams_reactive_streams_1_0_2.xml
new file mode 100644
index 0000000..8938b96
--- /dev/null
+++ b/.idea/libraries/Maven__org_reactivestreams_reactive_streams_1_0_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_reactivestreams_reactive_streams_1_0_3.xml b/.idea/libraries/Maven__org_reactivestreams_reactive_streams_1_0_3.xml
new file mode 100644
index 0000000..8b0988b
--- /dev/null
+++ b/.idea/libraries/Maven__org_reactivestreams_reactive_streams_1_0_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml b/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml
new file mode 100644
index 0000000..69c5c8a
--- /dev/null
+++ b/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_26.xml b/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_26.xml
new file mode 100644
index 0000000..26ce8fc
--- /dev/null
+++ b/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_26.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_28.xml b/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_28.xml
new file mode 100644
index 0000000..855d1e6
--- /dev/null
+++ b/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_28.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_26.xml b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_26.xml
new file mode 100644
index 0000000..9b43201
--- /dev/null
+++ b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_26.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_28.xml b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_28.xml
new file mode 100644
index 0000000..69a53e4
--- /dev/null
+++ b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_28.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..2f7f8c8
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..d4c8b9a
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..523177f
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..4dcac86
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..0ea6e5f
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..0939e52
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..131e3d1
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..a019660
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..f6d0aec
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..dc433c8
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..62f4787
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..2b02dc1
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..ae7c098
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..b5220b7
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..bb33e60
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..9df11bd
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..b008edd
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..1529430
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..cfc9507
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..fecf600
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..de858a6
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_thymeleaf_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_thymeleaf_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..63e6947
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_thymeleaf_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..3361f70
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..f18e576
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_validation_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_validation_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..ea8c588
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_validation_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..0dbd698
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..d72c58c
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_websocket_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_websocket_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..0f0342f
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_websocket_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..4adbab5
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..f906b2f
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_6_RELEASE.xml
new file mode 100644
index 0000000..7d59607
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..61764da
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_1_9_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_1_9_RELEASE.xml
new file mode 100644
index 0000000..4e84fe4
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_1_9_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..071087d
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_1_9_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_1_9_RELEASE.xml
new file mode 100644
index 0000000..be4e932
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_1_9_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..9cbc842
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_2_1_9_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_2_1_9_RELEASE.xml
new file mode 100644
index 0000000..0b1f60e
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_2_1_9_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..203f3ab
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_redis_2_1_9_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_redis_2_1_9_RELEASE.xml
new file mode 100644
index 0000000..08857d6
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_data_spring_data_redis_2_1_9_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_redis_2_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_redis_2_2_0_RELEASE.xml
new file mode 100644
index 0000000..805b9d8
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_data_spring_data_redis_2_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_aop_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_aop_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..e7af858
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_aop_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_aop_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_aop_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..7424a8d
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_aop_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_aspects_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_aspects_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..bbea567
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_aspects_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_aspects_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_aspects_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..ceeec2f
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_aspects_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_beans_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_beans_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..c035b66
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_beans_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_beans_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_beans_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..cd04350
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_beans_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_context_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_context_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..57a088a
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_context_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_context_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_context_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..9fca8c3
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_context_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_context_support_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_context_support_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..c92dc60
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_context_support_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_context_support_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_context_support_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..e9860f9
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_context_support_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_core_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_core_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..23dae66
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_core_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_core_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_core_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..afa6a9b
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_core_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_expression_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_expression_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..f8f60da
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_expression_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_expression_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_expression_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..5f89262
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_expression_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_jcl_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_jcl_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..5879c2c
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_jcl_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_jcl_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_jcl_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..c49aba0
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_jcl_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_jdbc_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_jdbc_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..5fb10cf
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_jdbc_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_jdbc_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_jdbc_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..b9e6ed8
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_jdbc_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_messaging_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_messaging_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..71d7d9e
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_messaging_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_orm_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_orm_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..ee2fe43
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_orm_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_orm_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_orm_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..ba6670c
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_orm_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_oxm_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_oxm_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..2da1dc7
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_oxm_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_oxm_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_oxm_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..a0bdf8b
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_oxm_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_test_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_test_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..d6a7850
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_test_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_test_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_test_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..9595bc3
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_test_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_tx_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_tx_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..65b5b99
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_tx_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_tx_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_tx_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..dfbbeee
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_tx_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_web_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_web_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..815e732
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_web_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_web_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_web_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..f76380d
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_web_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_webmvc_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_webmvc_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..7a41d36
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_webmvc_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_webmvc_5_2_0_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_webmvc_5_2_0_RELEASE.xml
new file mode 100644
index 0000000..e32e1c3
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_webmvc_5_2_0_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_springframework_spring_websocket_5_1_8_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_websocket_5_1_8_RELEASE.xml
new file mode 100644
index 0000000..60916b0
--- /dev/null
+++ b/.idea/libraries/Maven__org_springframework_spring_websocket_5_1_8_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_thymeleaf_extras_thymeleaf_extras_java8time_3_0_4_RELEASE.xml b/.idea/libraries/Maven__org_thymeleaf_extras_thymeleaf_extras_java8time_3_0_4_RELEASE.xml
new file mode 100644
index 0000000..08e943c
--- /dev/null
+++ b/.idea/libraries/Maven__org_thymeleaf_extras_thymeleaf_extras_java8time_3_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_thymeleaf_thymeleaf_3_0_11_RELEASE.xml b/.idea/libraries/Maven__org_thymeleaf_thymeleaf_3_0_11_RELEASE.xml
new file mode 100644
index 0000000..2408987
--- /dev/null
+++ b/.idea/libraries/Maven__org_thymeleaf_thymeleaf_3_0_11_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_thymeleaf_thymeleaf_spring5_3_0_11_RELEASE.xml b/.idea/libraries/Maven__org_thymeleaf_thymeleaf_spring5_3_0_11_RELEASE.xml
new file mode 100644
index 0000000..26fc97c
--- /dev/null
+++ b/.idea/libraries/Maven__org_thymeleaf_thymeleaf_spring5_3_0_11_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_unbescape_unbescape_1_1_6_RELEASE.xml b/.idea/libraries/Maven__org_unbescape_unbescape_1_1_6_RELEASE.xml
new file mode 100644
index 0000000..8fad250
--- /dev/null
+++ b/.idea/libraries/Maven__org_unbescape_unbescape_1_1_6_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_2.xml b/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_2.xml
new file mode 100644
index 0000000..bd7cb2f
--- /dev/null
+++ b/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_3.xml b/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_3.xml
new file mode 100644
index 0000000..172c3cb
--- /dev/null
+++ b/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_yaml_snakeyaml_1_23.xml b/.idea/libraries/Maven__org_yaml_snakeyaml_1_23.xml
new file mode 100644
index 0000000..5e24070
--- /dev/null
+++ b/.idea/libraries/Maven__org_yaml_snakeyaml_1_23.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_yaml_snakeyaml_1_25.xml b/.idea/libraries/Maven__org_yaml_snakeyaml_1_25.xml
new file mode 100644
index 0000000..02ba7eb
--- /dev/null
+++ b/.idea/libraries/Maven__org_yaml_snakeyaml_1_25.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__ws_schild_jave_core_2_7_1.xml b/.idea/libraries/Maven__ws_schild_jave_core_2_7_1.xml
new file mode 100644
index 0000000..b4d1298
--- /dev/null
+++ b/.idea/libraries/Maven__ws_schild_jave_core_2_7_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__ws_schild_jave_native_linux32_2_4_6.xml b/.idea/libraries/Maven__ws_schild_jave_native_linux32_2_4_6.xml
new file mode 100644
index 0000000..2d5ff0d
--- /dev/null
+++ b/.idea/libraries/Maven__ws_schild_jave_native_linux32_2_4_6.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__ws_schild_jave_native_linux64_2_4_6.xml b/.idea/libraries/Maven__ws_schild_jave_native_linux64_2_4_6.xml
new file mode 100644
index 0000000..9a29466
--- /dev/null
+++ b/.idea/libraries/Maven__ws_schild_jave_native_linux64_2_4_6.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index abea00f..7911fb2 100755
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,36 +1,23 @@
-
-
-
-
-
-
-
-
-
+
+
+
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..e82a38f
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml
deleted file mode 100755
index 56782ca..0000000
--- a/.idea/sqldialects.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
deleted file mode 100755
index e96534f..0000000
--- a/.idea/uiDesigner.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 0f412df..4217ec0 100755
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,53 +1,128 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
@@ -62,261 +137,467 @@
-
-
-
-
-
+
+
-
-
+
+
-
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
+
+
+
-
+
-
-
-
-
-
+
+
+
-
-
+
+
-
-
+
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- LUNCH_LIST_CATEGORY_CON
- 45
- 45dp
- onDefault
- onDefaultEvent
- Frame
- SendPart
- onDefaultEven
- (BaseBot
- NextRequiredEvent
- RenderDocument
- LunchDocument
- LunchUtils.getLunchDocument()
- LunchUtils
- CATEGORY_CHARAC
- CATEGORY
- category
- PushStack
buildBeforePayPojo
- xiaodu_no_screen
- ScheduleService
- setDevice
- createTimestamp
- jiaoyouChannel2Bots
- DplbotServiceUtil.onLunchFillUserBehaviorData
- DplbotServiceUtil.onLunchFillUserBehaviorDataInMaster
- onLunchFillUserBehaviorDataInMaster
- data.setUserBotId2Flowers()
- sendCancellToTerminate
- allProjects
+ noticeOtherServer
+ ONLINE_SERVER
+ LieHuSchedule
+ stringRedisTemplate.delete
+ NoticeReceiveData
+ notice
+ HOST_UTL_TEMP
+ getUsUserId
+ N6keiCTfw7DOtJ76KUHLnsoG
+ xe4nPWfClphv5+4SD5I8ocz/Km7t9hyNdXLKagm/jAk=
+ https://open.aligenie.com/console/skill
+ 8
+ csvDicForBotChange
+ updateAlreadyUploadedBot
+ dealResponse
+ PREFIX_REDIS_IDLE
+ out
+ iterator
+ iterator()
+ num
+ USER_HISTORY
+ System
+ stringRedisTemplate
+ lunchBottom
+ end
+ log.warn
+ down
+ dealCollectOrUnCollectIntent
+ getWorkNameByBotAccount
-
- OPENID_CACHE
- log
- PERSON_INFO_ONLINE
- 555
- spacing
- didi-gz5.jiaoyou365.com/duai
- 36328
- 44754
- log.error
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+ true
+ DEFINITION_ORDER
+
-
-
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Abstraction issuesJava
+
+
+ Assignment issuesGroovy
+
+
+ Assignment issuesJava
+
+
+ Assignment issuesJavaScript
+
+
+ CSS
+
+
+ Class structureJava
+
+
+ Code style issuesJava
+
+
+ CodeSpring CoreSpring
+
+
+ CoffeeScript
+
+
+ Declaration redundancyJava
+
+
+ Error handlingJava
+
+
+ General
+
+
+ GeneralCoffeeScript
+
+
+ GeneralJava
+
+
+ GeneralJavaScript
+
+
+ Groovy
+
+
+ Initialization issuesJava
+
+
+ J2ME issuesJava
+
+
+ Java
+
+
+ Java 5Java language level migration aidsJava
+
+
+ Java 8Java language level migration aidsJava
+
+
+ Java language level migration aidsJava
+
+
+ JavaScript
+
+
+ Naming conventionsJava
+
+
+ OSGi
+
+
+ Performance issuesJava
+
+
+ Plugin DevKit
+
+
+ Potentially confusing code constructsGroovy
+
+
+ Potentially confusing code constructsJavaScript
+
+
+ Probable bugsCSS
+
+
+ SQL
+
+
+ Security issuesJava
+
+
+ Spring
+
+
+ Spring CoreSpring
+
+
+ Spring DataSpring
+
+
+ UI Form Problems
+
+
+ WebSocket issues
+
+
+ toString() issuesJava
+
+
+
+
+ Duplicates
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -326,58 +607,31 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
+
+
+
+
+
+
@@ -389,1032 +643,735 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
+
+
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
+
+
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
-
-
-
+
+
-
+
-
-
-
+
+
-
+
-
-
-
+
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
- 1561553648378
+
+ 1580616404345
- 1561553648378
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ 1580616404345
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
+
+
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
-
-
-
-
-
+
+
+
-
+
-
-
+
+
+
-
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
-
-
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
+
+
+
+
-
+
-
+
+
+
+
-
+
-
+
+
+
-
+
-
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
+
+
+
+
+
+
-
+
-
+
+
+
+
-
+
-
+
+
+
-
+
-
+
+
+
-
+
-
+
+
+
-
+
-
-
+
+
-
+
-
-
+
+
+
+
+
+
-
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
-
+
-
-
-
-
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
-
-
-
+
+
+
-
+
-
-
-
-
-
+
+
+
-
+
-
-
+
+
-
+
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
-
-
+
+
-
+
+
+
+
+
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
-
+
-
- RokidBox:war
-
-
-
-
-
-
-
-
- Spring
-
-
-
-
@@ -1425,7 +1382,7 @@
-
+
@@ -1443,18 +1400,6 @@
-
-
- jdwhale
-
-
-
-
-
-
-
-
-
1.8
@@ -1469,18 +1414,6 @@
- Maven: antlr:antlr:2.7.7
-
-
-
-
-
-
-
-
-
-
-
diff --git a/dingdong/.mvn/wrapper/MavenWrapperDownloader.java b/dingdong/.mvn/wrapper/MavenWrapperDownloader.java
deleted file mode 100755
index 7f91a56..0000000
--- a/dingdong/.mvn/wrapper/MavenWrapperDownloader.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.channels.Channels;
-import java.nio.channels.ReadableByteChannel;
-import java.util.Properties;
-
-public class MavenWrapperDownloader {
-
- /**
- * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
- */
- private static final String DEFAULT_DOWNLOAD_URL =
- "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
-
- /**
- * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
- * use instead of the default one.
- */
- private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
- ".mvn/wrapper/maven-wrapper.properties";
-
- /**
- * Path where the maven-wrapper.jar will be saved to.
- */
- private static final String MAVEN_WRAPPER_JAR_PATH =
- ".mvn/wrapper/maven-wrapper.jar";
-
- /**
- * Name of the property which should be used to override the default download url for the wrapper.
- */
- private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
-
- public static void main(String args[]) {
- System.out.println("- Downloader started");
- File baseDirectory = new File(args[0]);
- System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
-
- // If the maven-wrapper.properties exists, read it and check if it contains a custom
- // wrapperUrl parameter.
- File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
- String url = DEFAULT_DOWNLOAD_URL;
- if (mavenWrapperPropertyFile.exists()) {
- FileInputStream mavenWrapperPropertyFileInputStream = null;
- try {
- mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
- Properties mavenWrapperProperties = new Properties();
- mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
- url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
- } catch (IOException e) {
- System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
- } finally {
- try {
- if (mavenWrapperPropertyFileInputStream != null) {
- mavenWrapperPropertyFileInputStream.close();
- }
- } catch (IOException e) {
- // Ignore ...
- }
- }
- }
- System.out.println("- Downloading from: : " + url);
-
- File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
- if (!outputFile.getParentFile().exists()) {
- if (!outputFile.getParentFile().mkdirs()) {
- System.out.println(
- "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
- }
- }
- System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
- try {
- downloadFileFromURL(url, outputFile);
- System.out.println("Done");
- System.exit(0);
- } catch (Throwable e) {
- System.out.println("- Error downloading");
- e.printStackTrace();
- System.exit(1);
- }
- }
-
- private static void downloadFileFromURL(String urlString, File destination) throws Exception {
- URL website = new URL(urlString);
- ReadableByteChannel rbc;
- rbc = Channels.newChannel(website.openStream());
- FileOutputStream fos = new FileOutputStream(destination);
- fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
- fos.close();
- rbc.close();
- }
-
-}
diff --git a/dingdong/.mvn/wrapper/maven-wrapper.jar b/dingdong/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index 01e6799..0000000
Binary files a/dingdong/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/dingdong/.mvn/wrapper/maven-wrapper.properties b/dingdong/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index cd0d451..0000000
--- a/dingdong/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
diff --git a/dingdong/mvnw b/dingdong/mvnw
deleted file mode 100755
index 8b9da3b..0000000
--- a/dingdong/mvnw
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- wget "$jarUrl" -O "$wrapperJarPath"
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- curl -o "$wrapperJarPath" "$jarUrl"
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/dingdong/mvnw.cmd b/dingdong/mvnw.cmd
deleted file mode 100755
index fef5a8f..0000000
--- a/dingdong/mvnw.cmd
+++ /dev/null
@@ -1,161 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM https://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
-FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- echo Found %WRAPPER_JAR%
-) else (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
- echo Finished downloading %WRAPPER_JAR%
-)
-@REM End of extension
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/jdwhale/.mvn/wrapper/MavenWrapperDownloader.java b/jdwhale/.mvn/wrapper/MavenWrapperDownloader.java
deleted file mode 100755
index 7f91a56..0000000
--- a/jdwhale/.mvn/wrapper/MavenWrapperDownloader.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.channels.Channels;
-import java.nio.channels.ReadableByteChannel;
-import java.util.Properties;
-
-public class MavenWrapperDownloader {
-
- /**
- * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
- */
- private static final String DEFAULT_DOWNLOAD_URL =
- "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
-
- /**
- * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
- * use instead of the default one.
- */
- private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
- ".mvn/wrapper/maven-wrapper.properties";
-
- /**
- * Path where the maven-wrapper.jar will be saved to.
- */
- private static final String MAVEN_WRAPPER_JAR_PATH =
- ".mvn/wrapper/maven-wrapper.jar";
-
- /**
- * Name of the property which should be used to override the default download url for the wrapper.
- */
- private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
-
- public static void main(String args[]) {
- System.out.println("- Downloader started");
- File baseDirectory = new File(args[0]);
- System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
-
- // If the maven-wrapper.properties exists, read it and check if it contains a custom
- // wrapperUrl parameter.
- File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
- String url = DEFAULT_DOWNLOAD_URL;
- if (mavenWrapperPropertyFile.exists()) {
- FileInputStream mavenWrapperPropertyFileInputStream = null;
- try {
- mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
- Properties mavenWrapperProperties = new Properties();
- mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
- url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
- } catch (IOException e) {
- System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
- } finally {
- try {
- if (mavenWrapperPropertyFileInputStream != null) {
- mavenWrapperPropertyFileInputStream.close();
- }
- } catch (IOException e) {
- // Ignore ...
- }
- }
- }
- System.out.println("- Downloading from: : " + url);
-
- File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
- if (!outputFile.getParentFile().exists()) {
- if (!outputFile.getParentFile().mkdirs()) {
- System.out.println(
- "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
- }
- }
- System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
- try {
- downloadFileFromURL(url, outputFile);
- System.out.println("Done");
- System.exit(0);
- } catch (Throwable e) {
- System.out.println("- Error downloading");
- e.printStackTrace();
- System.exit(1);
- }
- }
-
- private static void downloadFileFromURL(String urlString, File destination) throws Exception {
- URL website = new URL(urlString);
- ReadableByteChannel rbc;
- rbc = Channels.newChannel(website.openStream());
- FileOutputStream fos = new FileOutputStream(destination);
- fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
- fos.close();
- rbc.close();
- }
-
-}
diff --git a/jdwhale/.mvn/wrapper/maven-wrapper.jar b/jdwhale/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index 01e6799..0000000
Binary files a/jdwhale/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/jdwhale/.mvn/wrapper/maven-wrapper.properties b/jdwhale/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index cd0d451..0000000
--- a/jdwhale/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
diff --git a/jdwhale/mvnw b/jdwhale/mvnw
deleted file mode 100755
index 8b9da3b..0000000
--- a/jdwhale/mvnw
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- wget "$jarUrl" -O "$wrapperJarPath"
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- curl -o "$wrapperJarPath" "$jarUrl"
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/jdwhale/mvnw.cmd b/jdwhale/mvnw.cmd
deleted file mode 100755
index fef5a8f..0000000
--- a/jdwhale/mvnw.cmd
+++ /dev/null
@@ -1,161 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM https://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
-FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- echo Found %WRAPPER_JAR%
-) else (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
- echo Finished downloading %WRAPPER_JAR%
-)
-@REM End of extension
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/ruoqi/.mvn/wrapper/MavenWrapperDownloader.java b/ruoqi/.mvn/wrapper/MavenWrapperDownloader.java
deleted file mode 100755
index 7f91a56..0000000
--- a/ruoqi/.mvn/wrapper/MavenWrapperDownloader.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.channels.Channels;
-import java.nio.channels.ReadableByteChannel;
-import java.util.Properties;
-
-public class MavenWrapperDownloader {
-
- /**
- * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
- */
- private static final String DEFAULT_DOWNLOAD_URL =
- "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
-
- /**
- * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
- * use instead of the default one.
- */
- private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
- ".mvn/wrapper/maven-wrapper.properties";
-
- /**
- * Path where the maven-wrapper.jar will be saved to.
- */
- private static final String MAVEN_WRAPPER_JAR_PATH =
- ".mvn/wrapper/maven-wrapper.jar";
-
- /**
- * Name of the property which should be used to override the default download url for the wrapper.
- */
- private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
-
- public static void main(String args[]) {
- System.out.println("- Downloader started");
- File baseDirectory = new File(args[0]);
- System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
-
- // If the maven-wrapper.properties exists, read it and check if it contains a custom
- // wrapperUrl parameter.
- File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
- String url = DEFAULT_DOWNLOAD_URL;
- if (mavenWrapperPropertyFile.exists()) {
- FileInputStream mavenWrapperPropertyFileInputStream = null;
- try {
- mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
- Properties mavenWrapperProperties = new Properties();
- mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
- url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
- } catch (IOException e) {
- System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
- } finally {
- try {
- if (mavenWrapperPropertyFileInputStream != null) {
- mavenWrapperPropertyFileInputStream.close();
- }
- } catch (IOException e) {
- // Ignore ...
- }
- }
- }
- System.out.println("- Downloading from: : " + url);
-
- File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
- if (!outputFile.getParentFile().exists()) {
- if (!outputFile.getParentFile().mkdirs()) {
- System.out.println(
- "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
- }
- }
- System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
- try {
- downloadFileFromURL(url, outputFile);
- System.out.println("Done");
- System.exit(0);
- } catch (Throwable e) {
- System.out.println("- Error downloading");
- e.printStackTrace();
- System.exit(1);
- }
- }
-
- private static void downloadFileFromURL(String urlString, File destination) throws Exception {
- URL website = new URL(urlString);
- ReadableByteChannel rbc;
- rbc = Channels.newChannel(website.openStream());
- FileOutputStream fos = new FileOutputStream(destination);
- fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
- fos.close();
- rbc.close();
- }
-
-}
diff --git a/ruoqi/.mvn/wrapper/maven-wrapper.jar b/ruoqi/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index 01e6799..0000000
Binary files a/ruoqi/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/ruoqi/.mvn/wrapper/maven-wrapper.properties b/ruoqi/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index cd0d451..0000000
--- a/ruoqi/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
diff --git a/ruoqi/mvnw b/ruoqi/mvnw
deleted file mode 100755
index 8b9da3b..0000000
--- a/ruoqi/mvnw
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- wget "$jarUrl" -O "$wrapperJarPath"
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- curl -o "$wrapperJarPath" "$jarUrl"
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/ruoqi/mvnw.cmd b/ruoqi/mvnw.cmd
deleted file mode 100755
index fef5a8f..0000000
--- a/ruoqi/mvnw.cmd
+++ /dev/null
@@ -1,161 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM https://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
-FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- echo Found %WRAPPER_JAR%
-) else (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
- echo Finished downloading %WRAPPER_JAR%
-)
-@REM End of extension
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/smartbox.iml b/smartbox.iml
old mode 100755
new mode 100644
index 78b2cc5..4fd5057
--- a/smartbox.iml
+++ b/smartbox.iml
@@ -1,2 +1,12 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spirit/.mvn/wrapper/MavenWrapperDownloader.java b/spirit/.mvn/wrapper/MavenWrapperDownloader.java
deleted file mode 100755
index 7f91a56..0000000
--- a/spirit/.mvn/wrapper/MavenWrapperDownloader.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.channels.Channels;
-import java.nio.channels.ReadableByteChannel;
-import java.util.Properties;
-
-public class MavenWrapperDownloader {
-
- /**
- * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
- */
- private static final String DEFAULT_DOWNLOAD_URL =
- "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
-
- /**
- * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
- * use instead of the default one.
- */
- private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
- ".mvn/wrapper/maven-wrapper.properties";
-
- /**
- * Path where the maven-wrapper.jar will be saved to.
- */
- private static final String MAVEN_WRAPPER_JAR_PATH =
- ".mvn/wrapper/maven-wrapper.jar";
-
- /**
- * Name of the property which should be used to override the default download url for the wrapper.
- */
- private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
-
- public static void main(String args[]) {
- System.out.println("- Downloader started");
- File baseDirectory = new File(args[0]);
- System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
-
- // If the maven-wrapper.properties exists, read it and check if it contains a custom
- // wrapperUrl parameter.
- File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
- String url = DEFAULT_DOWNLOAD_URL;
- if (mavenWrapperPropertyFile.exists()) {
- FileInputStream mavenWrapperPropertyFileInputStream = null;
- try {
- mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
- Properties mavenWrapperProperties = new Properties();
- mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
- url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
- } catch (IOException e) {
- System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
- } finally {
- try {
- if (mavenWrapperPropertyFileInputStream != null) {
- mavenWrapperPropertyFileInputStream.close();
- }
- } catch (IOException e) {
- // Ignore ...
- }
- }
- }
- System.out.println("- Downloading from: : " + url);
-
- File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
- if (!outputFile.getParentFile().exists()) {
- if (!outputFile.getParentFile().mkdirs()) {
- System.out.println(
- "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
- }
- }
- System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
- try {
- downloadFileFromURL(url, outputFile);
- System.out.println("Done");
- System.exit(0);
- } catch (Throwable e) {
- System.out.println("- Error downloading");
- e.printStackTrace();
- System.exit(1);
- }
- }
-
- private static void downloadFileFromURL(String urlString, File destination) throws Exception {
- URL website = new URL(urlString);
- ReadableByteChannel rbc;
- rbc = Channels.newChannel(website.openStream());
- FileOutputStream fos = new FileOutputStream(destination);
- fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
- fos.close();
- rbc.close();
- }
-
-}
diff --git a/spirit/.mvn/wrapper/maven-wrapper.jar b/spirit/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index 01e6799..0000000
Binary files a/spirit/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/spirit/.mvn/wrapper/maven-wrapper.properties b/spirit/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index cd0d451..0000000
--- a/spirit/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
diff --git a/spirit/mvnw b/spirit/mvnw
deleted file mode 100755
index 8b9da3b..0000000
--- a/spirit/mvnw
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- wget "$jarUrl" -O "$wrapperJarPath"
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- curl -o "$wrapperJarPath" "$jarUrl"
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/spirit/mvnw.cmd b/spirit/mvnw.cmd
deleted file mode 100755
index fef5a8f..0000000
--- a/spirit/mvnw.cmd
+++ /dev/null
@@ -1,161 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM https://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
-FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- echo Found %WRAPPER_JAR%
-) else (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
- echo Finished downloading %WRAPPER_JAR%
-)
-@REM End of extension
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/spirit/src/main/java/ai/qiwu/tmall/spirit/controller/SpiritController.java b/spirit/src/main/java/ai/qiwu/tmall/spirit/controller/SpiritController.java
index a223d10..fc863ed 100644
--- a/spirit/src/main/java/ai/qiwu/tmall/spirit/controller/SpiritController.java
+++ b/spirit/src/main/java/ai/qiwu/tmall/spirit/controller/SpiritController.java
@@ -56,14 +56,14 @@ public class SpiritController {
return resultModel;
}
- @PostMapping(value = "/story") // 互动故事
- public ResultModel story(@RequestBody String taskQuery) {
+ @PostMapping(value = "/smart") // 智能故事
+ public ResultModel smart(@RequestBody String taskQuery) {
// log.info("TaskQuery:{}",taskQuery);
TaskQuery query = MetaFormat.parseToQuery(taskQuery);
// build response
ResultModel resultModel = new ResultModel<>();
- TaskResult taskResult = spiritService.getResponse(query,2);
+ TaskResult taskResult = spiritService.getResponse(query,4);
// logger.info("taskResult:"+taskResult);
resultModel.setReturnCode("0");
resultModel.setReturnValue(taskResult);
@@ -71,14 +71,14 @@ public class SpiritController {
return resultModel;
}
- @PostMapping(value = "/literature") // 互动文艺
- public ResultModel literature(@RequestBody String taskQuery) {
+ @PostMapping(value = "/story") // 互动故事
+ public ResultModel story(@RequestBody String taskQuery) {
// log.info("TaskQuery:{}",taskQuery);
TaskQuery query = MetaFormat.parseToQuery(taskQuery);
// build response
ResultModel resultModel = new ResultModel<>();
- TaskResult taskResult = spiritService.getResponse(query,3);
+ TaskResult taskResult = spiritService.getResponse(query,2);
// logger.info("taskResult:"+taskResult);
resultModel.setReturnCode("0");
resultModel.setReturnValue(taskResult);
@@ -86,14 +86,14 @@ public class SpiritController {
return resultModel;
}
- @PostMapping(value = "/smart") // 智能故事
- public ResultModel smart(@RequestBody String taskQuery) {
+ @PostMapping(value = "/literature") // 互动文艺
+ public ResultModel literature(@RequestBody String taskQuery) {
// log.info("TaskQuery:{}",taskQuery);
TaskQuery query = MetaFormat.parseToQuery(taskQuery);
// build response
ResultModel resultModel = new ResultModel<>();
- TaskResult taskResult = spiritService.getResponse(query,4);
+ TaskResult taskResult = spiritService.getResponse(query,3);
// logger.info("taskResult:"+taskResult);
resultModel.setReturnCode("0");
resultModel.setReturnValue(taskResult);
@@ -122,6 +122,12 @@ public class SpiritController {
return "success";
}
+ @GetMapping("/deleteBot")
+ public String delete(Long skillId, String path) {
+ new Thread(() -> spiritAudioUpload.deletTheBotAccount(skillId, path)).start();
+ return "success";
+ }
+
@GetMapping("/del")
public void del(String filepath, Long skillId) {
spiritAudioUpload.deleteAudio(filepath, skillId);
diff --git a/spirit/src/main/java/ai/qiwu/tmall/spirit/spirit/SpiritAudioUpload.java b/spirit/src/main/java/ai/qiwu/tmall/spirit/spirit/SpiritAudioUpload.java
index f802ca4..cff1edb 100644
--- a/spirit/src/main/java/ai/qiwu/tmall/spirit/spirit/SpiritAudioUpload.java
+++ b/spirit/src/main/java/ai/qiwu/tmall/spirit/spirit/SpiritAudioUpload.java
@@ -50,9 +50,9 @@ public class SpiritAudioUpload {
@Value("${csvDicForBotChange}")
private String csvDicForBotChange;
- private volatile String cookie = "cna=qsWIFY5RHlMCAXeJN3DsHj3O; isg=BNvaVmpjAXQDU34UoTi0hnnkaTaFGO4vMccg480nj1B7rE6P6IAnA6zqRsyHl0eq; CNZZDATA1261708326=1797143004-1560414985-%7C1578545339; _cnzz_CV1261708326=52463%7C%F0%9F%8C%8E%20skill%2F%E6%9F%A5%E8%AF%A2%E6%8A%80%E8%83%BD%7C0; enc=GlWCH0jde0teESrXYo%2BHF75NARTOPv7uKzyscUHesjr8NqyYTkHf%2BD6PG2iP4gPoGIsaO8aq%2BG41Q6kPPhYpvw%3D%3D; UM_distinctid=16ef9e5d343206-06ea6f889716618-76256753-1fa400-16ef9e5d344241; EGG_SESS=IdVWNkN2sAOQi1tLSNGnFK5nME5CTP2gTPH6kr89V-k6w6DhWzXgemwSZ-CtWPAe1Stlw2LZewllSuXxWuMyHGx_BNyTHR0DuqWpWr_t58VOdEaFO1qmpqmMOT0CSjxA5Rabb7w5lcyTHTy3w39hDbFqVW8sPjLq4KBzMvs1LcRawoGhgCaPLZ54bK7jJ41CgCLMRjekHPTq9HtHxzo2CEsmlBjYzt016HULppaaulo4FCE5d5IUGtVTmUeN3ufsxLeWrHSQFGz-s_XVflwSrlgtdjI3pKHw_fgunw-4bt8uFk8cG5dWYGacE6xkfq_KavlI2Ar_T61bhkdmvMFQhFRoqe_Qp8loplzIND3_jeoBHjQ25nmlzlYfsBHHIyOhbvwdPymLCcpmFkX2JpT5ovEHqUKV-lU45C93xsDPOY-9s2UrGPMRTAmGY84Kol57qfCNOXUl2wnfirzBKGeJEJo2o-v2T6qyeIFCc4WQqxOGKVYv30TvKQseKeLHFW0q31G-HzDYBoHAelres1yneHO_RLh61tsaYRvTAL4baQ2W5wKF2oxMf6pPtrP1gfmgCYdaW-Sf5WX3oAOTit-HBEGSS0tmQNX50yJprlGExPAPEMR2mzkyWaQhIIrcfXz4Cl8LgJasQZ12EbqbqxZA1x_G1_Bz7spmbOOAP6G97G_o2jQDNCh2_AtrIwFVA77nFIXPBru9FEjdGxyBk0xLqmsF5UClGg9ihLzZGEf8gF_-5BaRKhRXa0TPsYjLYkgUZVy9IHDmQLiMt7aSjZNtVdNJCbP8l5TNQ9wuKoslyb7sL--Jty-GiRWwQZEeqvMWois_KEqfsd3rLVrOUWDFeIPL_6hmvDxwYZgqOFWHjSeYc0bjntQRDpzG3oxMNBkHIM-rcy0eg1UiA1DvomfHYnyayFjqIXMxcOeH7v6l7_EGv9NKlUuHgvOjxwhl8MDfLWJ5jtEpjua6Idg8JH1FCth2icJTmwT9CfWWKWOYTYcwGKJuUiSA6T-Y2J-OHa4wmZwDU3bTggZDrSX_dmCFXbm_gxk2-FhunFJmZ9eWIl4_2YmPuAn7TKi8JBNxap5QGdpNF_XKN-78hyJR92_daoIv0IagZbvfdU1zGeNxpZeeudnraum8pNUXWtUWZlzuKs8OpjvY8JUuoK0Dx_mbZCQmY3-77ltZa5Z4PigPWMGMkYlGr1lusivSDqEW3fonRH5q79xvVIV2D61khPR2halgopkf87LBnnw53ym5i0Ne0q7oEbDzjgbsOliWWv6BUaCd6rg4lF3xWSM0vzvlAgu_R9cDy26h5t9ppxChHtzqw3sn-lFiOuuzgXwMh-uka3oLpvdgCHb2pXHBu-cU9ezQsSz5VA2jvDqbVHGpOFdK9YBoUNhNro4bwszvK_zWgPJiTTi1jx5VqQFWI61aIZnVrZUSVoq0kOuRK79-jTzOcsCqVY1gHCHPEvAw16BKQ584CW1QSFN52_ZsLlrP-SkkrjUJ7GZOMn_um9kbc-a68PKpBDVROG2rXvx8j5p66qY4vIFS9ayQJOeSQyHriQchweqHGeUEs4ngLcBdpeFk8JuAi-xJLUII3Rmt88vKax4SaZOg-9XKkvtef5jRE16NOPUXCiLD_0r9-Lbo0yKVSX3Wjim2gJXWvahilTtV8hBCw7VlQpbiwvAygEsrSFL9-B6dq-FS5cHbTqOZqTThxGdCRrAdMMVzPsfxR7UmSA8ykHRfmHgj3R6Xc1RyloPWr2JMKd9cf6wA03BV_XlpmfdoPzW8OH-cg0pcznY1dGmvkELbEI3RQk-2vDWhIBtcK6TR16wBTn955ZfI0tetTFMh9nD1i1E8qyDGqWJvC7WpikhlekHS3E_40Cvo-d5Kvs4oqrWLqWat-MNE61F-PCC7SDOiflXuf4agWpEWIeHwxaithtv0_32QWCzMGM_8lyGvRdazKMW_H4q7KiT0jtgTB4Tptjjtzs-DUeDXnuoVVNgIZ6evNQGi3QHGZgL3Okbhjn41elMxuu2COG3TgGfj-RfRc6Qlmj_da_Nzk54AkGkhCl_dS2XpmqCGdIrZg1PHjFaPvd_jktehC2kjN9IPdTt_9_BemwXUAJr2jRgcQKwMect1YMfehwG81w6Y3aLs4qXaPJXoEq8Tm03wuZ-uZBE6iGjNuIxe_gboReXulcdvWnxf-b7CoWpUgJBcO-h9bX3y6BS2RLVsPe-BJ0PLF1speq4GJlOYmkzjqt0caUtw83Bd5nXb-AP0jaEBxsdB0N0Nh23tFkjSGKbsCSS6WUOQ5jFDow9o7dld7NG-4g0UTU8fqiW5gjZ80gi8Vgh7kABVkypdeszxFUFdh06YsMe9pEJH8Su_vl4Rq6HL3ztMYA73Cq7SSh047A==; accountType=TB; confirmProtocolVersion=1; ctoken=hIPnBFZTxO70xYEKMWiVP5pJ; hng=CN%7Czh-CN%7CCNY%7C156; t=925ffaa4a0ded6c2dc567c2eedd425f0; tracknick=%5Cu9F50%5Cu609F%5Cu667A%5Cu80FD%5Cu8BED%5Cu97F3; lid=%E9%BD%90%E6%82%9F%E6%99%BA%E8%83%BD%E8%AF%AD%E9%9F%B3; _tb_token_=eebee77e7787e; cookie2=1bc42d8261746e9bfec4fbfb79e712fd; dnk=%5Cu9F50%5Cu609F%5Cu667A%5Cu80FD%5Cu8BED%5Cu97F3; uc1=lng=zh_CN&cookie16=VFC%2FuZ9az08KUQ56dCrZDlbNdA%3D%3D&pas=0&cookie15=V32FPkk%2Fw0dUvg%3D%3D&cookie21=V32FPkk%2FhSg%2F&existShop=false&cookie14=UoTbldffztSu3A%3D%3D&tag=8; _l_g_=Ug%3D%3D; unb=2201499686434; cookie1=BxSjQCQ6sp%2FKUbmJMrRM%2B%2FTeMnxnfP3Ky2LamSxw1u4%3D; login=true; cookie17=UUphy%2FZzlNvrKtsbCQ%3D%3D; _nk_=%5Cu9F50%5Cu609F%5Cu667A%5Cu80FD%5Cu8BED%5Cu97F3; sg=%E9%9F%B343; csg=04a77d7a; accountId=52463; token=t6PHfzW5l84NHrDFNmRRJVHclpUlndw3wDDsqNMRtbE=";
- private volatile String token = "t6PHfzW5l84NHrDFNmRRJVHclpUlndw3wDDsqNMRtbE=";
- private volatile String csrfToken = "hIPnBFZTxO70xYEKMWiVP5pJ";
+ private volatile String cookie = "dnk=tb13503054; t=f7d06d2e248fc07aa83289307aa4a764; tracknick=tb13503054; enc=nxqSx7%2Bh17LC3JcQmuWryBEA3g%2BBQXPR5Yjzs%2FgXE1NL3ugqfFWtSRIPXXeSIBbLjdMyJYXMRxPVk65RKEod0Q%3D%3D; _tb_token_=e373f335bb333; cookie2=144d7e656949f09b0f5432fa8fccc24a; cna=J1ApEybNe0UCAXQeRp7gOjrr; UM_distinctid=16ec8f74975752-01cfeaef5bdb6d-2393f61-e1000-16ec8f74976888; uc1=existShop=false&cookie14=UoTbmEhZbnUtCA%3D%3D&cart_m=0&cookie16=URm48syIJ1yk0MX2J7mAAEhTuw%3D%3D&pas=0&cookie15=UIHiLt3xD8xYTw%3D%3D&cookie21=VFC%2FuZ9ainBZ&tag=8&lng=zh_CN; _l_g_=Ug%3D%3D; unb=1038446007; cookie1=UNMubI1eQ0gVOzLdxFCJj7hzIKFouglcA%2BlE1IYgcZQ%3D; login=true; cookie17=UoH8Vd06g9TEfA%3D%3D; _nk_=tb13503054; sg=47f; csg=53964595; accountId=52463; accountType=TB; confirmProtocolVersion=1; ctoken=N6keiCTfw7DOtJ76KUHLnsoG; token=xe4nPWfClphv5+4SD5I8ocz/Km7t9hyNdXLKagm/jAk=; EGG_SESS=OG910qv3Q3gsrSK4yqRmX3-1-P_ARlUIzlqweqLqnRF5dKELPTe4hiVT80Slz3WPDCsXS99IeB9EJ08mKe1fnP_VI-r_CiXhigB24HUxJr2EAADqCPIuCrvinUugwUDdbQvx-ay8eof1QwEUukNH_zunLzRWU6aVqoN1ul2_uxG8FPkfVbnawQ6PePgZ2cUELrwNbcWjnHP0ZLLi24iOmdBLx_YbBF0QP4Okdq_EwdFH8aX3a0LQBQXzsSHl8nMpEIjz6-xe5ZAOYqvqBfOIoK49xcaVf3GDp7_k8DeYlqFyB9L0W8d1pjh6MN2nkh9PVoGsrZZ2r0dLBFv6of2yqocpMBv1rLwQS4dPwzlAFYnQ14QwsAv7PK1fElkRid4nhbOzs8YxwZYd0GBUOlKO1kukxu5n2JTcfbsFGD_uFc19GNnO2eH2oM6wQo2iMaeCuWHmDSs9AwHkK4ZZ7p7lNHLSjvSRNA2HH3XIPRRJcgc5w3H2626pQ8yvprnetQ-JzzoxsAM17tDZLIoUlhNZQrrcWW4RYz3cI5E6J5z-jcGKRtD4r0dTpSwUVsYp6a6-PNU71NynGTk1jzilhmwCXogo4K73iFIx0x7BJroamqlfe00a8BRFdpAqqvpcEk243NL8axaQacUFzhSFvJ8M91KPlH-PTMfQysaOx4GT9raVhqsJcePK22hH7PYG6PoMlK7ePw_wriHaHGB2KVPZbFW9pj20VH4UrcRUclVis0kQ5cnbCo3zIkK7ZAhFenMHe-XBf-E9RJ1qKf2Se8CJSzAjeuUb2xrF-qd8V1AqZ245Lb9scttIfohdjLGAF6Ou-Jw-8fCy1J4D_8P1VqLjz5vnwp0kkn3TZyTPC7-AfXkYOgBkd97LugAYpbZu0TY3_nYGUQVdNNlKLRcveVr1inGfDknqQXJZMs694Cr1swf_vX-ttoz3Sd4R0Ctyu2KbeldstqdZoU2jvTKMCNAXcyzwNyKFO_NkdKPH8ks_Yj6mQmz2Ow8f-l8eSSc5hzkcNBfNhZb1p26mFYAyVA5D1tFOBbMBybiLoYZXiQH7cm7YPow2yQbMtEz5mpKNisVV8rLAO9DGI88vEgJRyKvoiEqBzPVhfEiguuYa-XXMA2xXGnDBp7zwK3P2kaiJ63uvfbNhEQhve4reBfH2ojRJG4RXODXO_O9_s6lZy0yRUneBzY5S38kK2AyWl5gWOwKDWCZWHqxcYOy2qmcxYCAJfMV_We8WaUJjlP6eTN8P5rS0WXjCdQ3p7yBOXKdkEYXm6ysuoNxxoGB9QznmWJsaMxtRG00Wz0SCdI13TzQ1lfSbBVvILYw1BfG4qlvnxbO4r-tDR4eZClg3t_C6eHdWowgYy4G3Nnln9asw8IW4MhNjZLEekL7IVDtzdDlLf3nTANLIIckJMrQ-JCWwcb-Igwh7nvussBt0C8trJXACcWwct3M4VVUgOz53wz-pHHO-i2wK8eCarxtnwmAnppIbpHiePF5HZA5lIrFucbbWg6bCARAKfBgOgpNoD-Er52UKvjD9qu-R1Q3sggnEsqk_8SGIlx-pfPSaq9Y6A42ilqHZv2UyRUU5GmUO3i7JTNjzuvx22jBV0gl3vFg7vYdtuzAKj_8OJy5hF_iYy1RFj05IsGbwmUOC6p5xi-rQYgK0OTybeBovfsxxrApymMsTlLTVDvtSbSfe5b8piSACkGk73E-1SgE5X7NhdBVVlqhwM-TiNlVVzY5AyPWB0pc2U3_GFIZ56mtboU129YtpMhJGgm4YZ2znJV7sSU8AbXy8TKcvPUohUgf_5koZzByOiKrIoho2iiLkpqK5DzNrzk2H3loI8SWAydCzJg-7dCR2_s_3wMFXXWZNCpHadVgXpx1Nwd0RRN4eflamebFKlsPTx70naCDSdReR6oGjHliwBELuGb_tkKOYwfMNXEzCCHWkASYtFmHf0u3YK8VUyK9fgWnSh7bkrlh6zoOU1izX1fwDexI7CF9BE0LxqkaLC_nn295kZeIYlQO6Pk9-EP01Wjdvwqc9emWahrfOEMVEU6wdV_gO4_sHel8gAamUaWVRua7-Kl1u6igUm_hNwptHnBisAtCNtqV0WDZJ-oirGMpFqt4aghE9Wy9XiGwOJ3_I1wunKP2ddnxfSayg3iLVlH9RCPRxNR2atC9sQ3Nv__8QCa020V2EFU1LpwVU0lC5mxUACm8yuTzfa-aeiz7Qj2HJHTVLUI6yttmO66AlfAGfUPE63Z7Yseps2uReX6SRsKEDP5px59ufi5jrWpeGZ57Uh9oRJZv9fBZR7Q-Ajy0MJqUZEWYIKkpQ6D2ObDh0_nHxjvbBb4ZrQMQit5PehnXgoIwAExjk3L3y_3dLP_-lurBaV5LSMIiAj0B3IQ==; CNZZDATA1261708326=42777204-1575329673-https%253A%252F%252Fwww.aligenie.com%252F%7C1580998884; _cnzz_CV1261708326=52463%7C%F0%9F%8C%8E%20common%2F%E8%8E%B7%E5%8F%96%20oss%20token%7Cp; isg=BFpa7Yf70Gmj-18cC8krhnz9qwB8i95lub9gaWTZ0u1Z1-4RTxqDdaxhp6PLB1b9";
+ private volatile String token = "xe4nPWfClphv5+4SD5I8ocz/Km7t9hyNdXLKagm/jAk=";
+ private volatile String csrfToken = "N6keiCTfw7DOtJ76KUHLnsoG";
public void updateCookie(String cookie) {
this.cookie = cookie;
@@ -159,6 +159,33 @@ public class SpiritAudioUpload {
}
}
+ public void deletTheBotAccount(Long skillId, String path) {
+ Path pt = Paths.get(path);
+ if (Files.exists(pt)) {
+ List deleteList = new ArrayList<>();
+ try (CSVParser csvRecords = CSVFormat.EXCEL.parse(new BufferedReader(
+ new InputStreamReader(new FileInputStream(new File(path)), StandardCharsets.UTF_8)))) {
+ boolean first = true;
+ for (CSVRecord line: csvRecords) {
+ if (first) {
+ first = false;
+ continue;
+ }
+ // "person", "mood", "md5", "id", "upUrl"
+ String id = line.get(3);
+ if (StringUtils.isNotBlank(id)) deleteList.add(id);
+ if (deleteList.size() == 100) {
+ log.info("delete size 100");
+ deleteTheAudio(deleteList, skillId);
+ deleteList.clear();
+ }
+ }
+ } catch (Exception e) {
+ log.error("updateAlreadyUploadedBot:"+e.toString());
+ }
+ }
+ }
+
private void deleteTheAudio(List ids, Long skillId) {
log.error("要删除的id列表:"+ids.size());
String url = "https://open.aligenie.com/api/custom/audios/delete";
diff --git a/third_party_load/.mvn/wrapper/MavenWrapperDownloader.java b/third_party_load/.mvn/wrapper/MavenWrapperDownloader.java
deleted file mode 100755
index 7f91a56..0000000
--- a/third_party_load/.mvn/wrapper/MavenWrapperDownloader.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.channels.Channels;
-import java.nio.channels.ReadableByteChannel;
-import java.util.Properties;
-
-public class MavenWrapperDownloader {
-
- /**
- * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
- */
- private static final String DEFAULT_DOWNLOAD_URL =
- "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
-
- /**
- * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
- * use instead of the default one.
- */
- private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
- ".mvn/wrapper/maven-wrapper.properties";
-
- /**
- * Path where the maven-wrapper.jar will be saved to.
- */
- private static final String MAVEN_WRAPPER_JAR_PATH =
- ".mvn/wrapper/maven-wrapper.jar";
-
- /**
- * Name of the property which should be used to override the default download url for the wrapper.
- */
- private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
-
- public static void main(String args[]) {
- System.out.println("- Downloader started");
- File baseDirectory = new File(args[0]);
- System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
-
- // If the maven-wrapper.properties exists, read it and check if it contains a custom
- // wrapperUrl parameter.
- File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
- String url = DEFAULT_DOWNLOAD_URL;
- if (mavenWrapperPropertyFile.exists()) {
- FileInputStream mavenWrapperPropertyFileInputStream = null;
- try {
- mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
- Properties mavenWrapperProperties = new Properties();
- mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
- url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
- } catch (IOException e) {
- System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
- } finally {
- try {
- if (mavenWrapperPropertyFileInputStream != null) {
- mavenWrapperPropertyFileInputStream.close();
- }
- } catch (IOException e) {
- // Ignore ...
- }
- }
- }
- System.out.println("- Downloading from: : " + url);
-
- File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
- if (!outputFile.getParentFile().exists()) {
- if (!outputFile.getParentFile().mkdirs()) {
- System.out.println(
- "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
- }
- }
- System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
- try {
- downloadFileFromURL(url, outputFile);
- System.out.println("Done");
- System.exit(0);
- } catch (Throwable e) {
- System.out.println("- Error downloading");
- e.printStackTrace();
- System.exit(1);
- }
- }
-
- private static void downloadFileFromURL(String urlString, File destination) throws Exception {
- URL website = new URL(urlString);
- ReadableByteChannel rbc;
- rbc = Channels.newChannel(website.openStream());
- FileOutputStream fos = new FileOutputStream(destination);
- fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
- fos.close();
- rbc.close();
- }
-
-}
diff --git a/third_party_load/.mvn/wrapper/maven-wrapper.jar b/third_party_load/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index 01e6799..0000000
Binary files a/third_party_load/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/third_party_load/.mvn/wrapper/maven-wrapper.properties b/third_party_load/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index cd0d451..0000000
--- a/third_party_load/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
diff --git a/third_party_load/mvnw b/third_party_load/mvnw
deleted file mode 100755
index 8b9da3b..0000000
--- a/third_party_load/mvnw
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- wget "$jarUrl" -O "$wrapperJarPath"
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- curl -o "$wrapperJarPath" "$jarUrl"
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/third_party_load/mvnw.cmd b/third_party_load/mvnw.cmd
deleted file mode 100755
index fef5a8f..0000000
--- a/third_party_load/mvnw.cmd
+++ /dev/null
@@ -1,161 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM https://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
-FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- echo Found %WRAPPER_JAR%
-) else (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
- echo Finished downloading %WRAPPER_JAR%
-)
-@REM End of extension
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/tts_offline/.mvn/wrapper/MavenWrapperDownloader.java b/tts_offline/.mvn/wrapper/MavenWrapperDownloader.java
deleted file mode 100755
index 7f91a56..0000000
--- a/tts_offline/.mvn/wrapper/MavenWrapperDownloader.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.channels.Channels;
-import java.nio.channels.ReadableByteChannel;
-import java.util.Properties;
-
-public class MavenWrapperDownloader {
-
- /**
- * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
- */
- private static final String DEFAULT_DOWNLOAD_URL =
- "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
-
- /**
- * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
- * use instead of the default one.
- */
- private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
- ".mvn/wrapper/maven-wrapper.properties";
-
- /**
- * Path where the maven-wrapper.jar will be saved to.
- */
- private static final String MAVEN_WRAPPER_JAR_PATH =
- ".mvn/wrapper/maven-wrapper.jar";
-
- /**
- * Name of the property which should be used to override the default download url for the wrapper.
- */
- private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
-
- public static void main(String args[]) {
- System.out.println("- Downloader started");
- File baseDirectory = new File(args[0]);
- System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
-
- // If the maven-wrapper.properties exists, read it and check if it contains a custom
- // wrapperUrl parameter.
- File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
- String url = DEFAULT_DOWNLOAD_URL;
- if (mavenWrapperPropertyFile.exists()) {
- FileInputStream mavenWrapperPropertyFileInputStream = null;
- try {
- mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
- Properties mavenWrapperProperties = new Properties();
- mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
- url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
- } catch (IOException e) {
- System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
- } finally {
- try {
- if (mavenWrapperPropertyFileInputStream != null) {
- mavenWrapperPropertyFileInputStream.close();
- }
- } catch (IOException e) {
- // Ignore ...
- }
- }
- }
- System.out.println("- Downloading from: : " + url);
-
- File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
- if (!outputFile.getParentFile().exists()) {
- if (!outputFile.getParentFile().mkdirs()) {
- System.out.println(
- "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
- }
- }
- System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
- try {
- downloadFileFromURL(url, outputFile);
- System.out.println("Done");
- System.exit(0);
- } catch (Throwable e) {
- System.out.println("- Error downloading");
- e.printStackTrace();
- System.exit(1);
- }
- }
-
- private static void downloadFileFromURL(String urlString, File destination) throws Exception {
- URL website = new URL(urlString);
- ReadableByteChannel rbc;
- rbc = Channels.newChannel(website.openStream());
- FileOutputStream fos = new FileOutputStream(destination);
- fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
- fos.close();
- rbc.close();
- }
-
-}
diff --git a/tts_offline/.mvn/wrapper/maven-wrapper.jar b/tts_offline/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index 01e6799..0000000
Binary files a/tts_offline/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/tts_offline/.mvn/wrapper/maven-wrapper.properties b/tts_offline/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index cd0d451..0000000
--- a/tts_offline/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
diff --git a/tts_offline/mvnw b/tts_offline/mvnw
deleted file mode 100755
index 8b9da3b..0000000
--- a/tts_offline/mvnw
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- wget "$jarUrl" -O "$wrapperJarPath"
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- curl -o "$wrapperJarPath" "$jarUrl"
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/tts_offline/mvnw.cmd b/tts_offline/mvnw.cmd
deleted file mode 100755
index fef5a8f..0000000
--- a/tts_offline/mvnw.cmd
+++ /dev/null
@@ -1,161 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM https://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
-FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- echo Found %WRAPPER_JAR%
-) else (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
- echo Finished downloading %WRAPPER_JAR%
-)
-@REM End of extension
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/tts_service/.mvn/wrapper/MavenWrapperDownloader.java b/tts_service/.mvn/wrapper/MavenWrapperDownloader.java
deleted file mode 100755
index 7f91a56..0000000
--- a/tts_service/.mvn/wrapper/MavenWrapperDownloader.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.channels.Channels;
-import java.nio.channels.ReadableByteChannel;
-import java.util.Properties;
-
-public class MavenWrapperDownloader {
-
- /**
- * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
- */
- private static final String DEFAULT_DOWNLOAD_URL =
- "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
-
- /**
- * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
- * use instead of the default one.
- */
- private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
- ".mvn/wrapper/maven-wrapper.properties";
-
- /**
- * Path where the maven-wrapper.jar will be saved to.
- */
- private static final String MAVEN_WRAPPER_JAR_PATH =
- ".mvn/wrapper/maven-wrapper.jar";
-
- /**
- * Name of the property which should be used to override the default download url for the wrapper.
- */
- private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
-
- public static void main(String args[]) {
- System.out.println("- Downloader started");
- File baseDirectory = new File(args[0]);
- System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
-
- // If the maven-wrapper.properties exists, read it and check if it contains a custom
- // wrapperUrl parameter.
- File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
- String url = DEFAULT_DOWNLOAD_URL;
- if (mavenWrapperPropertyFile.exists()) {
- FileInputStream mavenWrapperPropertyFileInputStream = null;
- try {
- mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
- Properties mavenWrapperProperties = new Properties();
- mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
- url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
- } catch (IOException e) {
- System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
- } finally {
- try {
- if (mavenWrapperPropertyFileInputStream != null) {
- mavenWrapperPropertyFileInputStream.close();
- }
- } catch (IOException e) {
- // Ignore ...
- }
- }
- }
- System.out.println("- Downloading from: : " + url);
-
- File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
- if (!outputFile.getParentFile().exists()) {
- if (!outputFile.getParentFile().mkdirs()) {
- System.out.println(
- "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
- }
- }
- System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
- try {
- downloadFileFromURL(url, outputFile);
- System.out.println("Done");
- System.exit(0);
- } catch (Throwable e) {
- System.out.println("- Error downloading");
- e.printStackTrace();
- System.exit(1);
- }
- }
-
- private static void downloadFileFromURL(String urlString, File destination) throws Exception {
- URL website = new URL(urlString);
- ReadableByteChannel rbc;
- rbc = Channels.newChannel(website.openStream());
- FileOutputStream fos = new FileOutputStream(destination);
- fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
- fos.close();
- rbc.close();
- }
-
-}
diff --git a/tts_service/.mvn/wrapper/maven-wrapper.jar b/tts_service/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index 01e6799..0000000
Binary files a/tts_service/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/tts_service/.mvn/wrapper/maven-wrapper.properties b/tts_service/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index cd0d451..0000000
--- a/tts_service/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
diff --git a/tts_service/mvnw b/tts_service/mvnw
deleted file mode 100755
index 8b9da3b..0000000
--- a/tts_service/mvnw
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- wget "$jarUrl" -O "$wrapperJarPath"
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- curl -o "$wrapperJarPath" "$jarUrl"
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/tts_service/mvnw.cmd b/tts_service/mvnw.cmd
deleted file mode 100755
index fef5a8f..0000000
--- a/tts_service/mvnw.cmd
+++ /dev/null
@@ -1,161 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM https://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
-FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- echo Found %WRAPPER_JAR%
-) else (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
- echo Finished downloading %WRAPPER_JAR%
-)
-@REM End of extension
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/tts_service/pom.xml b/tts_service/pom.xml
index 6e1fcdf..472511c 100755
--- a/tts_service/pom.xml
+++ b/tts_service/pom.xml
@@ -27,6 +27,10 @@
org.springframework.boot
spring-boot-starter-web
+
+ org.springframework.boot
+ spring-boot-starter-data-redis
+
mysql
diff --git a/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java b/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java
index 03eb7ef..11eab43 100755
--- a/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java
+++ b/tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTService.java
@@ -18,6 +18,7 @@ import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
+import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import org.springframework.web.multipart.MultipartFile;
@@ -59,7 +60,7 @@ public class TTService {
/**
* 线程池,核心线程数cpu数目的两倍,非核心线程存活时间为3s
*/
- public static final ThreadPoolExecutor POOL = new ThreadPoolExecutor(CORE_THREAD_NUM*2,
+ private static final ThreadPoolExecutor POOL = new ThreadPoolExecutor(CORE_THREAD_NUM*2,
1500, 3, TimeUnit.SECONDS, new ArrayBlockingQueue<>(15),
new ThreadPoolExecutor.CallerRunsPolicy());
@@ -68,21 +69,24 @@ public class TTService {
*/
private final Initialize initialize;
+ private final StringRedisTemplate stringRedisTemplate;
+
/**
* 离线地址
*/
private final String offlineService;
- public static final HashSet XIAOAI_MP3_MARK = new HashSet<>();
+// private static final ConcurrentHashMap AUDIO_MARK = new ConcurrentHashMap<>();
/**
* 导入初始化类,构建离线地址
* @param initialize 初始化类
*/
@Autowired
- public TTService(Initialize initialize) {
+ public TTService(Initialize initialize, StringRedisTemplate stringRedisTemplate) {
this.initialize = initialize;
this.offlineService = String.format("%s/synthesize", Initialize.getOfflineServer());
+ this.stringRedisTemplate = stringRedisTemplate;
}
@Value("${audioUrl}")
@@ -380,9 +384,25 @@ public class TTService {
final String moodUrl = url;
Future future = POOL.submit(() -> {
// Long start = System.currentTimeMillis();
- ResponseCodeWithData response1 = generalMP3(moodUrl, data, path, "GET",true);
-// log.info("generalMP3耗时:"+(System.currentTimeMillis()-start));
- return response1;
+ String encodePth;
+ try {
+ encodePth = URLEncoder.encode(path, "UTF-8");
+ } catch (Exception e) {
+ encodePth = path;
+ }
+ if (Boolean.TRUE.equals(stringRedisTemplate.opsForValue().setIfAbsent(encodePth, "1", 20, TimeUnit.SECONDS))) {
+ ResponseCodeWithData response1 = generalMP3(moodUrl, data, path, "GET",true);
+ if (response1 == null) response1 = new ResponseCodeWithData(500, "tts_ls:generalMP3 return null");
+ stringRedisTemplate.delete(encodePth);
+ return response1;
+ } else {
+ return new ResponseCodeWithData(8, encodePth);
+ }
+
+// ResponseCodeWithData response1 = generalMP3(moodUrl, data, path, "GET",true);
+//// log.info("generalMP3耗时:"+(System.currentTimeMillis()-start));
+// if (response1 == null) response1 = new ResponseCodeWithData(500, "tts_ls generalMP3 return null ");
+// return response1;
});
futures.add(future);
}
@@ -427,13 +447,33 @@ public class TTService {
// ResponseCodeWithData data = future.get(60, TimeUnit.SECONDS);
ResponseCodeWithData data = future.get();
if (data.getCode() != 200) {
- if (data.getCode() == 404) {
- log.warn("404,音频没有找到");
- }else {
- log.error("下载音频失败, status:{}", data.getCode());
+ if (data.getCode() == 8) {
+ log.info("tts_ls:出现竞争情况->"+data.getRes()+",时间:"+new Date(System.currentTimeMillis()));
+ if (data.getRes() != null) {
+ int count = 0;
+ while (Boolean.TRUE.equals(stringRedisTemplate.hasKey(data.getRes())) && count < 20) {
+ try {
+ Thread.sleep(500);
+ } catch (Exception e){}
+ ++count;
+ }
+ if (count == 20 && Boolean.TRUE.equals(stringRedisTemplate.hasKey(data.getRes()))) {
+ log.warn("tts_ls:10s后竞争者仍未完成音频操作->"+data.getRes());
+ return;
+ }
+ }
+ } else {
+ log.error("tts_ls: future execute fail, status:"+data.getCode());
+ TTServiceUtil.buildTTS_lsResponse(response, new TTSResponse(data.getCode()), null, data.getCode());
+ return;
}
- TTServiceUtil.buildTTS_lsResponse(response, new TTSResponse(data.getCode()), null, data.getCode());
- return;
+// if (data.getCode() == 404) {
+// log.warn("404,音频没有找到");
+// }else {
+// log.error("下载音频失败, status:{}", data.getCode());
+// }
+// TTServiceUtil.buildTTS_lsResponse(response, new TTSResponse(data.getCode()), null, data.getCode());
+// return;
}
} catch (Exception e) {
log.error("tts_ls获取结果出错:{}", ExceptionUtils.getStackTrace(e));
@@ -458,17 +498,26 @@ public class TTService {
String tmp_audio_name = new StringBuilder(folder).append(File.separator).append(tmp_name).toString();
//log.info("小爱tmp_audio_name:{}", tmp_audio_name);
try {
- if (!TTSUtils.doesFileExist(tmp_audio_name)) {
- TTSUtils.makedir(folder);
+ if (Boolean.TRUE.equals(stringRedisTemplate.opsForValue()
+ .setIfAbsent(tmp_audio_name, "1", 20, TimeUnit.SECONDS))) {
+ if (!TTSUtils.doesFileExist(tmp_audio_name)) {
+ TTSUtils.makedir(folder);
// long startTime = System.currentTimeMillis();
- TTSUtils.combineMp3File(file_ls, tmp_audio_name);
+ TTSUtils.combineMp3File(file_ls, tmp_audio_name);
// log.info("ffmpeg合并耗时:"+(System.currentTimeMillis()-startTime));
- //CallPython.combine(file_ls, tmp_audio_name);
- }
- if (!TTSUtils.doesFileExist(tmp_audio_name)) {
- log.error("小爱平台的请求,聚合mp3文件失败");
- TTServiceUtil.buildTTS_lsResponse(response, new TTSResponse(555, "小爱平台的请求,聚合mp3文件失败"), null, 555);
+ //CallPython.combine(file_ls, tmp_audio_name);
+ }
+ stringRedisTemplate.delete(tmp_audio_name);
+ if (!TTSUtils.doesFileExist(tmp_audio_name)) {
+ log.error("小爱平台的请求,聚合mp3文件失败");
+ TTServiceUtil.buildTTS_lsResponse(response, new TTSResponse(555, "小爱平台的请求,聚合mp3文件失败"), null, 555);
+ } else {
+ String audio = Initialize.getServerUrl()+"/api/tts/get_audio?dirs=%s&filename=%s";
+ TTServiceUtil.buildTTS_lsResponse(response, new TTSResponse(String.format(audio, URLEncoder.encode(dirs, "UTF-8"),
+ tmp_name),200), null, 200);
+ }
} else {
+ log.warn("tts_ls xiaoai 合成竞争->"+tmp_audio_name+",时间:"+new Date(System.currentTimeMillis()));
String audio = Initialize.getServerUrl()+"/api/tts/get_audio?dirs=%s&filename=%s";
TTServiceUtil.buildTTS_lsResponse(response, new TTSResponse( String.format(audio, URLEncoder.encode(dirs, "UTF-8"),
tmp_name),200), null, 200);
@@ -794,26 +843,62 @@ public class TTService {
response = new TTSResponse(555, "编码URL中的中文出错");
}
}
+ boolean generate = true;
+ boolean setSuccess = false;
+ String redisKey = "";
// filepath文件不存在或是put请求,调用generalMP3生成该filepath所指的mp3文件
if (!TTSUtils.doesFileExist(filePath) || requestMethod.equals("PUT")){
+ generate = false;
GeneralMP3Data data = new GeneralMP3Data(Initialize.getServerName(), ttsRequest.getText(),
person, mood, botName, true, volume, speed, pitch);
data.setNpcName(npcName);
if (tmpRequest) data.setTmpName(fileName);
- ResponseCodeWithData codeWithData = generalMP3(moodUrl, data, filePath, requestMethod, getOnline);
- if (codeWithData.getCode() != 200) {
- if (codeWithData.getCode() == 404) {
- log.info("404,请求地址不存在");
- }else {
- log.error("下载:{}音频失败", moodUrl);
+ try {
+ redisKey = URLEncoder.encode(filePath, "UTF-8");
+ } catch (Exception e) {
+ redisKey = filePath;
+ }
+ try {
+ if ((setSuccess=Boolean.TRUE.equals(stringRedisTemplate.opsForValue().setIfAbsent(redisKey, "1", 15, TimeUnit.SECONDS)))) {
+ ResponseCodeWithData codeWithData = generalMP3(moodUrl, data, filePath, requestMethod, getOnline);
+ if (codeWithData == null) {
+ TTServiceUtil.buildServletResponse(servletResponse, new TTSResponse(500), null, codeWithData.getCode());
+ return;
+ }
+ if (codeWithData.getCode() != 200) {
+ if (codeWithData.getCode() == 404) {
+ log.info("404,请求地址不存在");
+ }else {
+ log.error("下载:{}音频失败", moodUrl);
+ }
+ TTServiceUtil.buildServletResponse(servletResponse, new TTSResponse(codeWithData.getCode()), null, codeWithData.getCode());
+ return;
+ }
}
- TTServiceUtil.buildServletResponse(servletResponse, new TTSResponse(codeWithData.getCode()), null, codeWithData.getCode());
- return;
+ } catch (Exception e) {
+ log.warn(ExceptionUtils.getStackTrace(e));
+ response = new TTSResponse(500, "出错");
+ } finally {
+ if (setSuccess) stringRedisTemplate.delete(redisKey);
}
-
}
if (response == null) {
- TTServiceUtil.buildServletResponse(servletResponse, null, new File(filePath), 200);
+ if (generate || setSuccess) TTServiceUtil.buildServletResponse(servletResponse, null, new File(filePath), 200);
+ else {
+ int count = 0;
+ while (Boolean.TRUE.equals(stringRedisTemplate.hasKey(redisKey)) && count < 10) {
+ try {
+ Thread.sleep(1000);
+ } catch (Exception e) {}
+ ++count;
+ }
+ if (count == 10 && Boolean.TRUE.equals(stringRedisTemplate.hasKey(redisKey))) {
+ log.warn("tts 竞争超时:"+redisKey);
+ TTServiceUtil.buildServletResponse(servletResponse, new TTSResponse(500), null, 200);
+ } else {
+ TTServiceUtil.buildServletResponse(servletResponse, null, new File(filePath), 200);
+ }
+ }
} else {
TTServiceUtil.buildServletResponse(servletResponse, response, null, 200);
}
@@ -1022,7 +1107,7 @@ public class TTService {
data.getTone(), data.getBotname(), data.getCache(),data.getVolume(),data.getSpeed(),data.getPitch());
String variablePathInUsDir = new StringBuilder(usDir).append(File.separator).append(variableTextFilename).toString();
ResponseCodeWithData response = generalMP3(url, variableData, variablePathInUsDir, requestMethod, getOnline);
- if (response.getCode() != 200) return false;
+ if (response == null || response.getCode() != 200) return false;
combineMp3Text2FilePath.put(variableText, variablePathInUsDir);
}else {
combineMp3Text2FilePath.put(variableText, variableTextPath);
@@ -1118,7 +1203,7 @@ public class TTService {
GeneralMP3Data notVariableData = new GeneralMP3Data(data.getServer(), pieceText,data.getPerson(),
data.getTone(), data.getBotname(), data.getCache(),data.getVolume(),data.getSpeed(),data.getPitch());
ResponseCodeWithData responseData = generalMP3(url, notVariableData, path, requestMethod, getOnline);
- if (responseData.getCode() != 200) return false;
+ if (responseData == null || responseData.getCode() != 200) return false;
combineMp3FilePathList.add(path);
}
} else {
@@ -1132,7 +1217,7 @@ public class TTService {
data.getTone(), data.getBotname(), data.getCache(),data.getVolume(),data.getSpeed(),data.getPitch());
String variablePathInUsDir = new StringBuilder(usDir).append(variableTextFilename).toString();
ResponseCodeWithData response = generalMP3(url, variableData, variablePathInUsDir, requestMethod, getOnline);
- if (response.getCode() != 200) return false;
+ if (response == null || response.getCode() != 200) return false;
combineMp3FilePathList.add(variablePathInUsDir);
}
}
@@ -2079,73 +2164,72 @@ public class TTService {
// }
// }
- public void apiAudioGet(String type, String path, HttpServletResponse response, HttpServletRequest request) {
- Path pt;
- boolean xiaoAi = StringUtils.isNotBlank(type);
- if (xiaoAi) {
- OkHttp3Utils.backPostAsync(audioUrl+type);
- }
-// Enumeration enumeration = request.getHeaderNames();
-// while (enumeration.hasMoreElements()) {
-// String name = (String) enumeration.nextElement();
-// log.warn(name+":"+request.getHeader(name));
+// public void apiAudioGet(String type, String path, HttpServletResponse response, HttpServletRequest request) {
+// Path pt;
+// boolean xiaoAi = StringUtils.isNotBlank(type);
+// if (xiaoAi) {
+// OkHttp3Utils.backPostAsync(audioUrl+type);
// }
- String range = request.getHeader("range");
- if (Files.exists((pt = Paths.get(path)))) {
- while (XIAOAI_MP3_MARK.contains(path)) {
- try {
- Thread.sleep(500);
- } catch (Exception e) {}
- }
- TTServiceUtil.buildMp3ResponseForAudio(response, path, xiaoAi,range);
- } else {
- try {
- Thread.sleep(1500);
- } catch (Exception e) {}
- if (Files.exists(pt)) {
- while (XIAOAI_MP3_MARK.contains(path)) {
- try {
- Thread.sleep(300);
- } catch (Exception e) {}
- }
- TTServiceUtil.buildMp3ResponseForAudio(response, path, xiaoAi,range);
- } else {
- log.error("等待2s后仍未获取到音箱的音频结果");
- }
- }
- }
+//// Enumeration enumeration = request.getHeaderNames();
+//// while (enumeration.hasMoreElements()) {
+//// String name = (String) enumeration.nextElement();
+//// log.warn(name+":"+request.getHeader(name));
+//// }
+// String range = request.getHeader("range");
+// if (Files.exists((pt = Paths.get(path)))) {
+// while (AUDIO_MARK.containsKey(path)) {
+// try {
+// Thread.sleep(500);
+// } catch (Exception e) {}
+// }
+// TTServiceUtil.buildMp3ResponseForAudio(response, path, xiaoAi,range);
+// } else {
+// try {
+// Thread.sleep(1500);
+// } catch (Exception e) {}
+// if (Files.exists(pt)) {
+// while (AUDIO_MARK.containsKey(path)) {
+// try {
+// Thread.sleep(300);
+// } catch (Exception e) {}
+// }
+// TTServiceUtil.buildMp3ResponseForAudio(response, path, xiaoAi,range);
+// } else {
+// log.error("等待2s后仍未获取到音箱的音频结果");
+// }
+// }
+// }
public void apiAudioGetNoRange(String type, String path, HttpServletResponse response) {
- Path pt;
boolean xiaoAi = StringUtils.isNotBlank(type);
if (xiaoAi) {
OkHttp3Utils.backPostAsync(audioUrl+type);
}
int count = 0;
- if (Files.exists((pt = Paths.get(path)))) {
- while (XIAOAI_MP3_MARK.contains(path) && count < 20) {
- try {
- Thread.sleep(500);
- count++;
- } catch (Exception e) {}
- }
- TTServiceUtil.buildMp3ResponseForAudioNoRange(response, path, xiaoAi);
- } else {
+ log.info("apiAudioGetNoRange: path->"+path);
+ Path pt = Paths.get(path);
+ boolean fileExist;
+ while (!(fileExist=Files.exists(pt)) && count < 15) {
try {
- Thread.sleep(1500);
+ Thread.sleep(500);
+ count++;
} catch (Exception e) {}
- if (Files.exists(pt)) {
- while (XIAOAI_MP3_MARK.contains(path) && count < 20) {
- try {
- Thread.sleep(300);
- count++;
- } catch (Exception e) {}
- }
- TTServiceUtil.buildMp3ResponseForAudioNoRange(response, path, xiaoAi);
- } else {
- log.error("等待2s后仍未获取到音箱的音频结果");
- }
}
+ if (!fileExist) {
+ log.warn("等待7.5s后音频文件仍不存在:"+path);
+ return;
+ }
+ while (Boolean.TRUE.equals(stringRedisTemplate.hasKey(path))&& count < 20) {
+ try {
+ Thread.sleep(500);
+ count++;
+ } catch (Exception e) {}
+ }
+ if (count == 20 && Boolean.TRUE.equals(stringRedisTemplate.hasKey(path))) {
+ log.warn("apiAudioGetNoRange:10s后竞争者仍未完成音频操作");
+ return;
+ }
+ TTServiceUtil.buildMp3ResponseForAudioNoRange(response, path, xiaoAi);
}
public String apiAudio(ApiAudioData apiAudioData) {
@@ -2246,7 +2330,26 @@ public class TTService {
Future future = POOL.submit(() -> {
// Long start = System.currentTimeMillis();
// log.info("generalMP3耗时:"+(System.currentTimeMillis()-start));
- return generalMP3(moodUrl, data, path, "GET",true);
+ String encodePth;
+ try {
+ encodePth = URLEncoder.encode(path, "UTF-8");
+ } catch (Exception e) {
+ encodePth = path;
+ }
+ boolean setSuccess = false;
+ try {
+ if ((setSuccess = Boolean.TRUE.equals(stringRedisTemplate.opsForValue()
+ .setIfAbsent(encodePth, "1", 20, TimeUnit.SECONDS)))) {
+ return generalMP3(moodUrl, data, path, "GET",true);
+ } else {
+ return new ResponseCodeWithData(8, encodePth);
+ }
+ } catch (Exception e) {
+ log.warn(ExceptionUtils.getStackTrace(e));
+ return new ResponseCodeWithData(500, encodePth);
+ } finally {
+ if (setSuccess) stringRedisTemplate.delete(encodePth);
+ }
});
futures.add(future);
}
@@ -2271,7 +2374,11 @@ public class TTService {
if (file_ls.size() == 1) {
final String tmp_audio_name = file_ls.get(0);
POOL.submit(() -> task(futures, tmp_audio_name, file_ls, null));
- return URLEncoder.encode(tmp_audio_name);
+ try {
+ return URLEncoder.encode(tmp_audio_name, "UTF-8");
+ } catch (Exception e) {
+ return URLEncoder.encode(tmp_audio_name);
+ }
} else {
temp = TTSUtils.pythonlistToStr(file_ls);
// String dirs = String.format("[%s,xiaoai]", botName);
@@ -2293,11 +2400,27 @@ public class TTService {
try {
// ResponseCodeWithData data = future.get(60, TimeUnit.SECONDS);
ResponseCodeWithData data = future.get();
- if (data.getCode() != 200) {
- if (data.getCode() == 404) {
- log.warn("404,音频没有找到");
- }else {
- log.error("下载音频失败, status:{}", data.getCode());
+ if (data == null) {
+ log.warn("task:data is null");
+ return;
+ }
+ else if (data.getCode() != 200) {
+ if (data.getCode() == 8) {
+ log.info("task:出现竞争情况->"+data.getRes());
+ if (data.getRes() != null) {
+ int count = 0;
+ while (Boolean.TRUE.equals(stringRedisTemplate.hasKey(data.getRes())) && count < 20) {
+ try {
+ Thread.sleep(500);
+ } catch (Exception e){}
+ ++count;
+ }
+ if (count == 20 && Boolean.TRUE.equals(stringRedisTemplate.hasKey(data.getRes()))) {
+ return;
+ }
+ }
+ } else {
+ log.warn("task: 下载音频失败,status="+data.getCode());
}
return;
}
@@ -2307,13 +2430,23 @@ public class TTService {
}
}
if (folder != null && !TTSUtils.doesFileExist(tmp_audio_name)) {
- TTSUtils.makedir(folder);
- XIAOAI_MP3_MARK.add(tmp_audio_name);
- TTSUtils.combineMp3File(file_ls, tmp_audio_name);
- if (!TTSUtils.doesFileExist(tmp_audio_name)) {
- log.error("小爱平台的请求,聚合mp3文件失败");
+ boolean addSuccess = false;
+ try {
+ if ((addSuccess=Boolean.TRUE.equals(stringRedisTemplate.opsForValue()
+ .setIfAbsent(tmp_audio_name, "1", 20, TimeUnit.SECONDS)))) {
+ TTSUtils.makedir(folder);
+ TTSUtils.combineMp3File(file_ls, tmp_audio_name);
+ if (!TTSUtils.doesFileExist(tmp_audio_name)) {
+ log.error("小爱平台的请求,聚合mp3文件失败");
+ }
+ } else {
+ log.info("task:小爱合并音频出现竞争->"+tmp_audio_name+",时间:"+new Date(System.currentTimeMillis()));
+ }
+ } catch (Exception e) {
+ log.warn(ExceptionUtils.getStackTrace(e));
+ } finally {
+ if (addSuccess) stringRedisTemplate.delete(tmp_audio_name);
}
- XIAOAI_MP3_MARK.remove(tmp_audio_name);
}
} catch (Exception e) {
log.error("合成多个音频文件出错:{}", e.toString());
@@ -2321,8 +2454,6 @@ public class TTService {
}
public static void main(String[] args) throws UnsupportedEncodingException {
- System.out.println(URLEncoder.encode("Ls69sFTjXN%2F6831N1VVdfw%3D%3D", "UTF-8"));
- System.out.println(URLEncoder.encode("%2BnzkUO6JnLrmiWSlBQaZ9g%3D%3D", "UTF-8"));
- System.out.println(URLEncoder.encode("EksNVVSieFTobNBZFEOeyw%3D%3D", "UTF-8"));
+ System.out.println(new Date(System.currentTimeMillis()));
}
}
diff --git a/xiaoai/.mvn/wrapper/MavenWrapperDownloader.java b/xiaoai/.mvn/wrapper/MavenWrapperDownloader.java
deleted file mode 100755
index 7f91a56..0000000
--- a/xiaoai/.mvn/wrapper/MavenWrapperDownloader.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.channels.Channels;
-import java.nio.channels.ReadableByteChannel;
-import java.util.Properties;
-
-public class MavenWrapperDownloader {
-
- /**
- * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
- */
- private static final String DEFAULT_DOWNLOAD_URL =
- "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
-
- /**
- * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
- * use instead of the default one.
- */
- private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
- ".mvn/wrapper/maven-wrapper.properties";
-
- /**
- * Path where the maven-wrapper.jar will be saved to.
- */
- private static final String MAVEN_WRAPPER_JAR_PATH =
- ".mvn/wrapper/maven-wrapper.jar";
-
- /**
- * Name of the property which should be used to override the default download url for the wrapper.
- */
- private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
-
- public static void main(String args[]) {
- System.out.println("- Downloader started");
- File baseDirectory = new File(args[0]);
- System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
-
- // If the maven-wrapper.properties exists, read it and check if it contains a custom
- // wrapperUrl parameter.
- File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
- String url = DEFAULT_DOWNLOAD_URL;
- if (mavenWrapperPropertyFile.exists()) {
- FileInputStream mavenWrapperPropertyFileInputStream = null;
- try {
- mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
- Properties mavenWrapperProperties = new Properties();
- mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
- url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
- } catch (IOException e) {
- System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
- } finally {
- try {
- if (mavenWrapperPropertyFileInputStream != null) {
- mavenWrapperPropertyFileInputStream.close();
- }
- } catch (IOException e) {
- // Ignore ...
- }
- }
- }
- System.out.println("- Downloading from: : " + url);
-
- File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
- if (!outputFile.getParentFile().exists()) {
- if (!outputFile.getParentFile().mkdirs()) {
- System.out.println(
- "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
- }
- }
- System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
- try {
- downloadFileFromURL(url, outputFile);
- System.out.println("Done");
- System.exit(0);
- } catch (Throwable e) {
- System.out.println("- Error downloading");
- e.printStackTrace();
- System.exit(1);
- }
- }
-
- private static void downloadFileFromURL(String urlString, File destination) throws Exception {
- URL website = new URL(urlString);
- ReadableByteChannel rbc;
- rbc = Channels.newChannel(website.openStream());
- FileOutputStream fos = new FileOutputStream(destination);
- fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
- fos.close();
- rbc.close();
- }
-
-}
diff --git a/xiaoai/.mvn/wrapper/maven-wrapper.jar b/xiaoai/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index 01e6799..0000000
Binary files a/xiaoai/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/xiaoai/.mvn/wrapper/maven-wrapper.properties b/xiaoai/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index cd0d451..0000000
--- a/xiaoai/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
diff --git a/xiaoai/mvnw b/xiaoai/mvnw
deleted file mode 100755
index 8b9da3b..0000000
--- a/xiaoai/mvnw
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- wget "$jarUrl" -O "$wrapperJarPath"
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- curl -o "$wrapperJarPath" "$jarUrl"
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/xiaoai/mvnw.cmd b/xiaoai/mvnw.cmd
deleted file mode 100755
index fef5a8f..0000000
--- a/xiaoai/mvnw.cmd
+++ /dev/null
@@ -1,161 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM https://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
-FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- echo Found %WRAPPER_JAR%
-) else (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
- echo Finished downloading %WRAPPER_JAR%
-)
-@REM End of extension
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/xiaodu/.mvn/wrapper/MavenWrapperDownloader.java b/xiaodu/.mvn/wrapper/MavenWrapperDownloader.java
deleted file mode 100755
index 7f91a56..0000000
--- a/xiaodu/.mvn/wrapper/MavenWrapperDownloader.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.channels.Channels;
-import java.nio.channels.ReadableByteChannel;
-import java.util.Properties;
-
-public class MavenWrapperDownloader {
-
- /**
- * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
- */
- private static final String DEFAULT_DOWNLOAD_URL =
- "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
-
- /**
- * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
- * use instead of the default one.
- */
- private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
- ".mvn/wrapper/maven-wrapper.properties";
-
- /**
- * Path where the maven-wrapper.jar will be saved to.
- */
- private static final String MAVEN_WRAPPER_JAR_PATH =
- ".mvn/wrapper/maven-wrapper.jar";
-
- /**
- * Name of the property which should be used to override the default download url for the wrapper.
- */
- private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
-
- public static void main(String args[]) {
- System.out.println("- Downloader started");
- File baseDirectory = new File(args[0]);
- System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
-
- // If the maven-wrapper.properties exists, read it and check if it contains a custom
- // wrapperUrl parameter.
- File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
- String url = DEFAULT_DOWNLOAD_URL;
- if (mavenWrapperPropertyFile.exists()) {
- FileInputStream mavenWrapperPropertyFileInputStream = null;
- try {
- mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
- Properties mavenWrapperProperties = new Properties();
- mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
- url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
- } catch (IOException e) {
- System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
- } finally {
- try {
- if (mavenWrapperPropertyFileInputStream != null) {
- mavenWrapperPropertyFileInputStream.close();
- }
- } catch (IOException e) {
- // Ignore ...
- }
- }
- }
- System.out.println("- Downloading from: : " + url);
-
- File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
- if (!outputFile.getParentFile().exists()) {
- if (!outputFile.getParentFile().mkdirs()) {
- System.out.println(
- "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
- }
- }
- System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
- try {
- downloadFileFromURL(url, outputFile);
- System.out.println("Done");
- System.exit(0);
- } catch (Throwable e) {
- System.out.println("- Error downloading");
- e.printStackTrace();
- System.exit(1);
- }
- }
-
- private static void downloadFileFromURL(String urlString, File destination) throws Exception {
- URL website = new URL(urlString);
- ReadableByteChannel rbc;
- rbc = Channels.newChannel(website.openStream());
- FileOutputStream fos = new FileOutputStream(destination);
- fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
- fos.close();
- rbc.close();
- }
-
-}
diff --git a/xiaodu/.mvn/wrapper/maven-wrapper.jar b/xiaodu/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index 01e6799..0000000
Binary files a/xiaodu/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/xiaodu/.mvn/wrapper/maven-wrapper.properties b/xiaodu/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index cd0d451..0000000
--- a/xiaodu/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
diff --git a/xiaodu/mvnw b/xiaodu/mvnw
deleted file mode 100755
index 8b9da3b..0000000
--- a/xiaodu/mvnw
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- wget "$jarUrl" -O "$wrapperJarPath"
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- curl -o "$wrapperJarPath" "$jarUrl"
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/xiaodu/mvnw.cmd b/xiaodu/mvnw.cmd
deleted file mode 100755
index fef5a8f..0000000
--- a/xiaodu/mvnw.cmd
+++ /dev/null
@@ -1,161 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM https://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
-FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- echo Found %WRAPPER_JAR%
-) else (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
- echo Finished downloading %WRAPPER_JAR%
-)
-@REM End of extension
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/xiaoduhome/.mvn/wrapper/MavenWrapperDownloader.java b/xiaoduhome/.mvn/wrapper/MavenWrapperDownloader.java
deleted file mode 100755
index 7f91a56..0000000
--- a/xiaoduhome/.mvn/wrapper/MavenWrapperDownloader.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.channels.Channels;
-import java.nio.channels.ReadableByteChannel;
-import java.util.Properties;
-
-public class MavenWrapperDownloader {
-
- /**
- * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
- */
- private static final String DEFAULT_DOWNLOAD_URL =
- "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
-
- /**
- * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
- * use instead of the default one.
- */
- private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
- ".mvn/wrapper/maven-wrapper.properties";
-
- /**
- * Path where the maven-wrapper.jar will be saved to.
- */
- private static final String MAVEN_WRAPPER_JAR_PATH =
- ".mvn/wrapper/maven-wrapper.jar";
-
- /**
- * Name of the property which should be used to override the default download url for the wrapper.
- */
- private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
-
- public static void main(String args[]) {
- System.out.println("- Downloader started");
- File baseDirectory = new File(args[0]);
- System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
-
- // If the maven-wrapper.properties exists, read it and check if it contains a custom
- // wrapperUrl parameter.
- File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
- String url = DEFAULT_DOWNLOAD_URL;
- if (mavenWrapperPropertyFile.exists()) {
- FileInputStream mavenWrapperPropertyFileInputStream = null;
- try {
- mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
- Properties mavenWrapperProperties = new Properties();
- mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
- url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
- } catch (IOException e) {
- System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
- } finally {
- try {
- if (mavenWrapperPropertyFileInputStream != null) {
- mavenWrapperPropertyFileInputStream.close();
- }
- } catch (IOException e) {
- // Ignore ...
- }
- }
- }
- System.out.println("- Downloading from: : " + url);
-
- File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
- if (!outputFile.getParentFile().exists()) {
- if (!outputFile.getParentFile().mkdirs()) {
- System.out.println(
- "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
- }
- }
- System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
- try {
- downloadFileFromURL(url, outputFile);
- System.out.println("Done");
- System.exit(0);
- } catch (Throwable e) {
- System.out.println("- Error downloading");
- e.printStackTrace();
- System.exit(1);
- }
- }
-
- private static void downloadFileFromURL(String urlString, File destination) throws Exception {
- URL website = new URL(urlString);
- ReadableByteChannel rbc;
- rbc = Channels.newChannel(website.openStream());
- FileOutputStream fos = new FileOutputStream(destination);
- fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
- fos.close();
- rbc.close();
- }
-
-}
diff --git a/xiaoduhome/.mvn/wrapper/maven-wrapper.jar b/xiaoduhome/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index 01e6799..0000000
Binary files a/xiaoduhome/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/xiaoduhome/.mvn/wrapper/maven-wrapper.properties b/xiaoduhome/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index cd0d451..0000000
--- a/xiaoduhome/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
diff --git a/xiaoduhome/mvnw b/xiaoduhome/mvnw
deleted file mode 100755
index 8b9da3b..0000000
--- a/xiaoduhome/mvnw
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-# JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-# M2_HOME - location of maven2's installed home dir
-# MAVEN_OPTS - parameters passed to the Java VM when running Maven
-# e.g. to debug Maven itself, use
-# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
-
-# OS specific support. $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- MINGW*) mingw=true;;
- Darwin*) darwin=true
- # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
- # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
- if [ -z "$JAVA_HOME" ]; then
- if [ -x "/usr/libexec/java_home" ]; then
- export JAVA_HOME="`/usr/libexec/java_home`"
- else
- export JAVA_HOME="/Library/Java/Home"
- fi
- fi
- ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
- if [ -r /etc/gentoo-release ] ; then
- JAVA_HOME=`java-config --jre-home`
- fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
- ## resolve links - $0 may be a link to maven's home
- PRG="$0"
-
- # need this for relative symlinks
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname "$PRG"`/$link"
- fi
- done
-
- saveddir=`pwd`
-
- M2_HOME=`dirname "$PRG"`/..
-
- # make it fully qualified
- M2_HOME=`cd "$M2_HOME" && pwd`
-
- cd "$saveddir"
- # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --unix "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
- [ -n "$M2_HOME" ] &&
- M2_HOME="`(cd "$M2_HOME"; pwd)`"
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
- # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
- javaExecutable="`which javac`"
- if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
- if $darwin ; then
- javaHome="`dirname \"$javaExecutable\"`"
- javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
- else
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- fi
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- JAVA_HOME="$javaHome"
- export JAVA_HOME
- fi
- fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="`which java`"
- fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
- echo "Error: JAVA_HOME is not defined correctly." >&2
- echo " We cannot execute $JAVACMD" >&2
- exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
- if [ -z "$1" ]
- then
- echo "Path not specified to find_maven_basedir"
- return 1
- fi
-
- basedir="$1"
- wdir="$1"
- while [ "$wdir" != '/' ] ; do
- if [ -d "$wdir"/.mvn ] ; then
- basedir=$wdir
- break
- fi
- # workaround for JBEAP-8937 (on Solaris 10/Sparc)
- if [ -d "${wdir}" ]; then
- wdir=`cd "$wdir/.."; pwd`
- fi
- # end of workaround
- done
- echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
- if [ -f "$1" ]; then
- echo "$(tr -s '\n' ' ' < "$1")"
- fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
- exit 1;
-fi
-
-##########################################################################################
-# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-# This allows using the maven wrapper in projects that prohibit checking in binary data.
-##########################################################################################
-if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found .mvn/wrapper/maven-wrapper.jar"
- fi
-else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
- fi
- jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
- while IFS="=" read key value; do
- case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
- esac
- done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Downloading from: $jarUrl"
- fi
- wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
-
- if command -v wget > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found wget ... using wget"
- fi
- wget "$jarUrl" -O "$wrapperJarPath"
- elif command -v curl > /dev/null; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Found curl ... using curl"
- fi
- curl -o "$wrapperJarPath" "$jarUrl"
- else
- if [ "$MVNW_VERBOSE" = true ]; then
- echo "Falling back to using Java to download"
- fi
- javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
- if [ -e "$javaClass" ]; then
- if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Compiling MavenWrapperDownloader.java ..."
- fi
- # Compiling the Java class
- ("$JAVA_HOME/bin/javac" "$javaClass")
- fi
- if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
- # Running the downloader
- if [ "$MVNW_VERBOSE" = true ]; then
- echo " - Running MavenWrapperDownloader.java ..."
- fi
- ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
- fi
- fi
- fi
-fi
-##########################################################################################
-# End of extension
-##########################################################################################
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
- echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
- [ -n "$M2_HOME" ] &&
- M2_HOME=`cygpath --path --windows "$M2_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
- [ -n "$CLASSPATH" ] &&
- CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
- [ -n "$MAVEN_PROJECTBASEDIR" ] &&
- MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
- $MAVEN_OPTS \
- -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
- "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
- ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/xiaoduhome/mvnw.cmd b/xiaoduhome/mvnw.cmd
deleted file mode 100755
index fef5a8f..0000000
--- a/xiaoduhome/mvnw.cmd
+++ /dev/null
@@ -1,161 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM https://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
-FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
- IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
-)
-
-@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
-@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
-if exist %WRAPPER_JAR% (
- echo Found %WRAPPER_JAR%
-) else (
- echo Couldn't find %WRAPPER_JAR%, downloading it ...
- echo Downloading from: %DOWNLOAD_URL%
- powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
- echo Finished downloading %WRAPPER_JAR%
-)
-@REM End of extension
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/BaseHolder.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/BaseHolder.java
index 5bd774b..b7afbfe 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/BaseHolder.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/BaseHolder.java
@@ -1,5 +1,6 @@
package ai.qiwu.com.xiaoduhome.common;
+import org.jetbrains.annotations.NotNull;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
@@ -15,7 +16,7 @@ public class BaseHolder implements ApplicationContextAware {
private static ApplicationContext applicationContext;
@Override
- public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
+ public void setApplicationContext(@NotNull ApplicationContext applicationContext) throws BeansException {
BaseHolder.applicationContext = applicationContext;
}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java
index 70ffa87..1e2b39d 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/OkHttp3Utils.java
@@ -135,6 +135,33 @@ public class OkHttp3Utils {
});
}
+ public static void noticeAsync(String url, String type, String value) {
+ url = new StringBuilder(url).append("?").append("type=").append(type).append("&value=").append(value).toString();
+ Request request = new Request.Builder()
+ .url(url)
+ .get()
+ .build();
+ client.newCall(request).enqueue(new Callback() {
+ @Override
+ public void onFailure(@NotNull Call call, @NotNull IOException e) {
+ log.info("退出失败");
+ }
+
+ @Override
+ public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
+ try (ResponseBody body = response.body()){
+ body.string();
+ } catch (SocketTimeoutException e) {
+ log.error("捕获到SocketTimeoutException:{}", e.toString());
+ client.dispatcher().cancelAll();
+ client.connectionPool().evictAll();
+ } catch (Exception e) {
+ log.error(ExceptionUtils.getStackTrace(e));
+ }
+ }
+ });
+ }
+
public static void backPostAsync(String url, String requestJsonStr, Integer type) {
String header = "jiaoyou-audio-test";
if (type != null) {
@@ -331,7 +358,59 @@ public class OkHttp3Utils {
});
}
+ public static void doPostAsy(String url, String requestJsonStr) {
+ Request request = new Request.Builder()
+ .url(url)
+ .post(RequestBody.create(requestJsonStr,MediaType.parse("application/json; charset=utf-8")))
+ .build();
+ client.newCall(request).enqueue(new Callback() {
+ @Override
+ public void onFailure(@NotNull Call call, @NotNull IOException e) {
+ log.info("doPostAsy fail,"+e);
+ }
+ @Override
+ public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
+ try (ResponseBody body = response.body()){
+ body.string();
+ log.info("doPostAsy success");
+ } catch (SocketTimeoutException e) {
+ log.error("捕获到SocketTimeoutException:{}", e.toString());
+ client.dispatcher().cancelAll();
+ client.connectionPool().evictAll();
+ } catch (Exception e) {
+ log.error(ExceptionUtils.getStackTrace(e));
+ }
+ }
+ });
+ }
+
+ public static void doDelAsy(String url, String requestJsonStr) {
+ Request request = new Request.Builder()
+ .url(url)
+ .delete(RequestBody.create(requestJsonStr,MediaType.parse("application/json; charset=utf-8")))
+ .build();
+ client.newCall(request).enqueue(new Callback() {
+ @Override
+ public void onFailure(@NotNull Call call, @NotNull IOException e) {
+ log.info("doDelAsy fail,"+e);
+ }
+
+ @Override
+ public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
+ try (ResponseBody body = response.body()){
+ body.string();
+ log.info("doDelAsy success");
+ } catch (SocketTimeoutException e) {
+ log.error("捕获到SocketTimeoutException:{}", e.toString());
+ client.dispatcher().cancelAll();
+ client.connectionPool().evictAll();
+ } catch (Exception e) {
+ log.error(ExceptionUtils.getStackTrace(e));
+ }
+ }
+ });
+ }
public static String doDelete(String url, Map headers, String jsonStr) throws IOException {
Request.Builder builder = new Request.Builder();
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/MultipartResolver.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/MultipartResolver.java
new file mode 100644
index 0000000..51d7468
--- /dev/null
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/config/MultipartResolver.java
@@ -0,0 +1,30 @@
+package ai.qiwu.com.xiaoduhome.common.config;
+
+import org.springframework.stereotype.Component;
+import org.springframework.web.multipart.commons.CommonsMultipartResolver;
+
+/**
+ * 文件上传控制,设置编码格式,设置最大文件大小
+ * @author 苗权威
+ * @dateTime 19-9-7 下午6:35
+ */
+@Component("multipartResolver")
+public class MultipartResolver extends CommonsMultipartResolver {
+ /**
+ * 设置编码格式,UTF-8
+ * @param defaultEncoding
+ */
+ @Override
+ public void setDefaultEncoding(String defaultEncoding) {
+ super.setDefaultEncoding("UTF-8");
+ }
+
+ /**
+ * 设置最大文件大小,500M
+ * @param maxUploadSizePerFile
+ */
+ @Override
+ public void setMaxUploadSizePerFile(long maxUploadSizePerFile) {
+ super.setMaxUploadSizePerFile(524288000);
+ }
+}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectHistoryPagePojo.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectHistoryPagePojo.java
index 368bed9..6926eec 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectHistoryPagePojo.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectHistoryPagePojo.java
@@ -58,6 +58,7 @@ public class CollectHistoryPagePojo {
@JsonProperty("max-lines")
private Integer maxLines;
private List onClick;
+ private List onEnd;
@JsonProperty("border-color")
private String borderColor;
@JsonProperty("border-width")
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectHistoryUtils.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectHistoryUtils.java
index dfb7677..18f59e3 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectHistoryUtils.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/CollectHistoryUtils.java
@@ -38,6 +38,7 @@ public class CollectHistoryUtils {
list.setHeight("100%");
list.setWidth("100%");
list.setDirection("vertical");
+ list.setComponentId("udScroll");
list.setItems(Collections.singletonList(MAIN_CON));
list.setData(datas);
@@ -50,6 +51,17 @@ public class CollectHistoryUtils {
return document;
}
+ public static CollectHistoryPagePojo buildAudioComponent(String src) {
+ CollectHistoryPagePojo audio = new CollectHistoryPagePojo();
+ audio.setType("Audio");
+ audio.setComponentId("audioCom");
+// audio.setLooping("false");
+// audio.setAutoplay("true");
+ audio.setSrc(src);
+ audio.setOnEnd(Collections.singletonList(new Event("SendEvent","audio")));
+ return audio;
+ }
+
private static CollectHistoryPagePojo buildMainContainer() {
CollectHistoryPagePojo main = new CollectHistoryPagePojo();
main.setType("Container");
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchPojo.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchPojo.java
index 11338b0..9510a05 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchPojo.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchPojo.java
@@ -52,6 +52,7 @@ public class LunchPojo {
@JsonProperty("scale-type")
private String scaleType;
private List onClick;
+ private List onEnd;
@JsonProperty("background-color")
private String backgroundColor;
@JsonProperty("align-items")
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java
index d7e31c7..5718dfa 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/onLunch/LunchUtils.java
@@ -114,12 +114,24 @@ public class LunchUtils {
return document;
}
+ public static LunchPojo buildAudioComponent(String src) {
+ LunchPojo audio = new LunchPojo();
+ audio.setType("Audio");
+ audio.setComponentId("audioCom");
+// audio.setLooping("false");
+// audio.setAutoplay("true");
+ audio.setSrc(src);
+ audio.setOnEnd(Collections.singletonList(new Event("SendEvent","audio")));
+ return audio;
+ }
+
private static LunchPojo buildLunchScroll() {
LunchPojo scroll = new LunchPojo();
scroll.setType("ScrollView");
scroll.setDirection("vertical");
scroll.setMarginTop("180dp");
scroll.setWidth("100%");
+ scroll.setComponentId("udScroll");
scroll.setPaddingBottom("20dp");
// scroll.setMarginBottom("10dp");
return scroll;
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoPojo.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoPojo.java
index fbc483b..1d8401c 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoPojo.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoPojo.java
@@ -40,6 +40,7 @@ public class ProductInfoPojo {
@JsonProperty("margin-top")
private String marginTop;
private List onClick;
+ private List onEnd;
@JsonProperty("font-size")
private String fontSize;
private String text;
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoUtils.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoUtils.java
index 45f88ee..9f4f7de 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoUtils.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/productInfo/ProductInfoUtils.java
@@ -27,6 +27,17 @@ public class ProductInfoUtils {
return document;
}
+ public static ProductInfoPojo buildAudioComponent(String src) {
+ ProductInfoPojo audio = new ProductInfoPojo();
+ audio.setType("Audio");
+ audio.setComponentId("audioCom");
+// audio.setLooping("false");
+// audio.setAutoplay("true");
+ audio.setSrc(src);
+ audio.setOnEnd(Collections.singletonList(new Event("SendEvent","audio")));
+ return audio;
+ }
+
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) {
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandPojo.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandPojo.java
index 65d203d..2b970e3 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandPojo.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommandPojo.java
@@ -44,6 +44,7 @@ public class RecommandPojo {
@JsonProperty("border-radius")
private String borderRadius;
private List onClick;
+ private List onEnd;
@JsonProperty("font-size")
private String fontSize;
private String text;
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java
index 5eae606..97d8c4e 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/common/temple/recommand/RecommendUtil.java
@@ -84,6 +84,7 @@ public class RecommendUtil {
scrollView.setWidth("100%");
scrollView.setMarginBottom("140dp");
scrollView.setDirection("vertical");
+ scrollView.setComponentId("udScroll");
List scrollList = new ArrayList<>();
scrollView.setItems(scrollList);
@@ -127,6 +128,7 @@ public class RecommendUtil {
scrollView.setWidth("100%");
scrollView.setMarginBottom("140dp");
scrollView.setDirection("vertical");
+ scrollView.setComponentId("udScroll");
List scrollList = new ArrayList<>();
scrollView.setItems(scrollList);
@@ -147,13 +149,13 @@ public class RecommendUtil {
botIds.append(third.getBotAccount()).append(File.separator);
ProjectData forth = list.get(3);
botIds.append(forth.getBotAccount()).append(File.separator);
- RecommandPojo pojoFirst = buildImgFrmTxtContainerFirstRow(first.getBannerImgUrl(), new StringBuilder(Constants.PRE_PRODUCT_IMG).append(first.getName()).toString(),
+ RecommandPojo pojoFirst = buildImgFrmTxtContainerFirstRow(first.getBannerImgUrl(), Constants.PRE_PRODUCT_IMG + first.getName(),
TempleUtils.correctName(first.getName()), "first.png");
- RecommandPojo pojoSe = buildImgFrmTxtContainerFirstRow(second.getBannerImgUrl(), new StringBuilder(Constants.PRE_PRODUCT_IMG).append(second.getName()).toString(),
+ RecommandPojo pojoSe = buildImgFrmTxtContainerFirstRow(second.getBannerImgUrl(), Constants.PRE_PRODUCT_IMG + second.getName(),
TempleUtils.correctName(second.getName()), "second.png");
- RecommandPojo pojoThird = buildImgFrmTxtContainerFirstRow(third.getBannerImgUrl(), new StringBuilder(Constants.PRE_PRODUCT_IMG).append(third.getName()).toString(),
+ RecommandPojo pojoThird = buildImgFrmTxtContainerFirstRow(third.getBannerImgUrl(), Constants.PRE_PRODUCT_IMG + third.getName(),
TempleUtils.correctName(third.getName()), "third.png");
- RecommandPojo pojoFourth = buildImgFrmTxtContainerFourth(forth.getBannerImgUrl(), new StringBuilder(Constants.PRE_PRODUCT_IMG).append(forth.getName()).toString(),
+ RecommandPojo pojoFourth = buildImgFrmTxtContainerFourth(forth.getBannerImgUrl(), Constants.PRE_PRODUCT_IMG + forth.getName(),
TempleUtils.correctName(forth.getName()));
rowContainer.setItems(Arrays.asList(pojoFirst, pojoSe, pojoThird, pojoFourth));
@@ -164,7 +166,7 @@ public class RecommendUtil {
//scrollList.add(buildRecommendList(getListData(3, 12, 16, list, botIds)));
mainTemplate.getItems().addAll(Arrays.asList(RECOM_BACK_IMG,RANK_HEAD,scrollView,buildPageButton(1,
- list.size()/12 + list.size()%12==0?0:1),RANK_CATEGORY_FOOTER));
+ list.size()/RE_RA_CA_PAGE_SIZE + (list.size()%RE_RA_CA_PAGE_SIZE==0?0:1)),RANK_CATEGORY_FOOTER));
botIds.deleteCharAt(botIds.length()-1);
String idToken = Base64.getEncoder().encodeToString(botIds.toString().getBytes());
@@ -203,7 +205,7 @@ public class RecommendUtil {
begin = end;
}
mainTemplate.getItems().addAll(Arrays.asList(RECOM_BACK_IMG,RANK_HEAD,scrollView,
- buildPageButton(num+1, list.size()/RE_RA_CA_PAGE_SIZE + list.size()%RE_RA_CA_PAGE_SIZE==0?0:1),RANK_CATEGORY_FOOTER));
+ buildPageButton(num+1, list.size()/RE_RA_CA_PAGE_SIZE + (list.size()%RE_RA_CA_PAGE_SIZE==0?0:1)),RANK_CATEGORY_FOOTER));
botIds.deleteCharAt(botIds.length()-1);
String idToken = Base64.getEncoder().encodeToString(botIds.toString().getBytes());
@@ -211,6 +213,17 @@ public class RecommendUtil {
return document;
}
+ public static RecommandPojo buildAudioComponent(String src) {
+ RecommandPojo audio = new RecommandPojo();
+ audio.setType("Audio");
+ audio.setComponentId("audioCom");
+// audio.setLooping("false");
+// audio.setAutoplay("true");
+ audio.setSrc(src);
+ audio.setOnEnd(Collections.singletonList(new Event("SendEvent","audio")));
+ return audio;
+ }
+
public static RecommandDocument getFunnyDocument(List bots, String audio) {
RecommandDocument document = new RecommandDocument();
document.setDuration(90000);
@@ -221,7 +234,7 @@ public class RecommendUtil {
StringBuilder botIds = new StringBuilder();
int num = 0;
for (ProjectData bot: bots) {
- String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString();
+ String imageId = Constants.PRE_PRODUCT_IMG + bot.getName();
RecommandBotInfo detail = new RecommandBotInfo(bot.getBannerImgUrl(),imageId, TempleUtils.correctName(bot.getName()));
detail.setNum(++num);
data.add(detail);
@@ -443,14 +456,14 @@ public class RecommendUtil {
private static List getListData(int row,int begin, int end, List bots, StringBuilder botIds) {
List data = new ArrayList<>();
- int n = 1+row*4;
+// int n = 1+row*4;
end = end > bots.size() ? bots.size() : end;
for (int i = begin; i < end; i++) {
ProjectData bot = bots.get(i);
botIds.append(bot.getBotAccount()).append(File.separator);
String imageId = new StringBuilder(Constants.PRE_PRODUCT_IMG).append(bot.getName()).toString();
RecommandBotInfo detail = new RecommandBotInfo(bot.getBannerImgUrl(),imageId, TempleUtils.correctName(bot.getName()));
- detail.setNum(i-begin+n);
+ detail.setNum(i+1);
data.add(detail);
}
return data;
@@ -644,10 +657,4 @@ public class RecommendUtil {
public static void setRankDocument(RecommandDocument rankDocument) {
RecommendUtil.rankDocument = rankDocument;
}
-
- public static void main(String[] args) {
- String s = "sgagoijcue4569kmd9eir8345/234/23526/dfhh/2345345";
- System.out.println(s.length());
- System.out.println(Base64.getEncoder().encodeToString(s.getBytes()).length());
- }
}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java
index c926140..ffece59 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/Oauth2Controller.java
@@ -6,9 +6,11 @@ import ai.qiwu.com.xiaoduhome.pojo.TokenDuerosResponse;
import ai.qiwu.com.xiaoduhome.pojo.TokenResponse;
import ai.qiwu.com.xiaoduhome.pojo.User;
import ai.qiwu.com.xiaoduhome.service.LoadBySMS;
+import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
@@ -28,8 +30,15 @@ import java.util.concurrent.ConcurrentHashMap;
@RequestMapping(value = "/xiaodu/security")
@Slf4j
public class Oauth2Controller {
+ private final LoadBySMS loadBySMS;
+
+ private final StringRedisTemplate stringRedisTemplate;
+
@Autowired
- private LoadBySMS loadBySMS;
+ public Oauth2Controller(LoadBySMS loadBySMS, StringRedisTemplate stringRedisTemplate) {
+ this.loadBySMS = loadBySMS;
+ this.stringRedisTemplate = stringRedisTemplate;
+ }
/**
* /xiaodu/security/load:这是小度授权信息配置里的“授权地址”,也就是登录卡片点击后跳转到的登录页面地址
@@ -56,7 +65,7 @@ public class Oauth2Controller {
User user = new User();
user.setState(state);
modelMap.put("userInfo", user);
- return "Oauth2_load";
+ return "Oauth2_load_temp2";
}
@GetMapping("/home")
@@ -112,7 +121,7 @@ public class Oauth2Controller {
log.error("获取Token出错:{}", e.toString());
result = false;
}
- log.info("请求郊游天下Token返回结果:"+result);
+// log.info("请求郊游天下Token返回结果:"+result);
if (result) {
return "1";
}else {
@@ -165,12 +174,21 @@ public class Oauth2Controller {
response.setExpires_in(tokenResponse.getExpire());
return response;
}
+ if (code == null) {
+ log.error("returnTokenToDueros: code is null");
+ return null;
+ }
code = code.substring(code.lastIndexOf(",")+1);
- ConcurrentHashMap cache = LoadBySMS.getCodeToken();
- TokenHolder holder = cache.remove(code);
+ String holderStr = stringRedisTemplate.opsForValue().get(code);
+ stringRedisTemplate.delete(code);
+ if (holderStr == null) {
+ log.error("returnTokenToDueros: redis hsa no data");
+ return null;
+ }
+ TokenHolder holder = JSON.parseObject(holderStr, TokenHolder.class);
String accessToken;
if (holder == null || (accessToken =holder.getAccessToken())==null) {
- log.error("没有对应的令牌");
+ log.error("没有对应的令牌:"+holder);
return null;
}
TokenDuerosResponse response = new TokenDuerosResponse();
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/SpiritController.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/SpiritController.java
index f95409b..b336d3e 100644
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/SpiritController.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/SpiritController.java
@@ -1,5 +1,6 @@
package ai.qiwu.com.xiaoduhome.controller;
+import ai.qiwu.com.xiaoduhome.spirit.SpiritRedisService;
import ai.qiwu.com.xiaoduhome.spirit.SpiritService;
import com.alibaba.da.coin.ide.spi.standard.ResultModel;
import com.alibaba.da.coin.ide.spi.standard.TaskQuery;
@@ -23,9 +24,12 @@ import javax.servlet.http.HttpServletResponse;
public class SpiritController {
private final SpiritService spiritService;
+ private final SpiritRedisService spiritRedisService;
+
@Autowired
- public SpiritController(SpiritService spiritService) {
+ public SpiritController(SpiritService spiritService, SpiritRedisService spiritRedisService) {
this.spiritService = spiritService;
+ this.spiritRedisService = spiritRedisService;
}
@Value("${num}")
@@ -36,14 +40,14 @@ public class SpiritController {
* @param taskQuery 请求的参数信息
* @return 返回响应的JSON数据
*/
- @PostMapping(value = "/") //交游天下
+ @PostMapping(value = "/") //智能小说
public ResultModel getResponse(@RequestBody String taskQuery) {
// log.info("天猫请求信息:{}",taskQuery);
TaskQuery query = MetaFormat.parseToQuery(taskQuery);
// build response
ResultModel resultModel = new ResultModel<>();
- TaskResult taskResult = spiritService.getResponse(query, 4);
+ TaskResult taskResult = spiritRedisService.getResponse(query, 5);
resultModel.setReturnCode("0");
resultModel.setReturnValue(taskResult);
// log.info("天猫响应信息:"+ JSON.toJSONString(resultModel));
@@ -51,14 +55,14 @@ public class SpiritController {
return resultModel;
}
- @PostMapping(value = "/story") // 互动故事
- public ResultModel story(@RequestBody String taskQuery) {
+ @PostMapping(value = "/smart") // 智能故事
+ public ResultModel smart(@RequestBody String taskQuery) {
// log.info("TaskQuery:{}",taskQuery);
TaskQuery query = MetaFormat.parseToQuery(taskQuery);
// build response
ResultModel resultModel = new ResultModel<>();
- TaskResult taskResult = spiritService.getResponse(query,2);
+ TaskResult taskResult = spiritRedisService.getResponse(query,4);
// logger.info("taskResult:"+taskResult);
resultModel.setReturnCode("0");
resultModel.setReturnValue(taskResult);
@@ -66,14 +70,14 @@ public class SpiritController {
return resultModel;
}
- @PostMapping(value = "/literature") // 互动文艺
- public ResultModel literature(@RequestBody String taskQuery) {
+ @PostMapping(value = "/story") // 互动故事
+ public ResultModel story(@RequestBody String taskQuery) {
// log.info("TaskQuery:{}",taskQuery);
TaskQuery query = MetaFormat.parseToQuery(taskQuery);
// build response
ResultModel resultModel = new ResultModel<>();
- TaskResult taskResult = spiritService.getResponse(query,3);
+ TaskResult taskResult = spiritService.getResponse(query,2);
// logger.info("taskResult:"+taskResult);
resultModel.setReturnCode("0");
resultModel.setReturnValue(taskResult);
@@ -81,14 +85,14 @@ public class SpiritController {
return resultModel;
}
- @PostMapping(value = "/smart") // 智能故事
- public ResultModel smart(@RequestBody String taskQuery) {
+ @PostMapping(value = "/literature") // 互动文艺
+ public ResultModel literature(@RequestBody String taskQuery) {
// log.info("TaskQuery:{}",taskQuery);
TaskQuery query = MetaFormat.parseToQuery(taskQuery);
// build response
ResultModel resultModel = new ResultModel<>();
- TaskResult taskResult = spiritService.getResponse(query,4);
+ TaskResult taskResult = spiritService.getResponse(query,3);
// logger.info("taskResult:"+taskResult);
resultModel.setReturnCode("0");
resultModel.setReturnValue(taskResult);
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoAiController.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoAiController.java
index 28bcf16..82a3655 100644
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoAiController.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoAiController.java
@@ -200,4 +200,9 @@ public class XiaoAiController {
return response;
}
+
+ @GetMapping("mark")
+ public void setMark(int mark) {
+ XiaoAiTestService.mark = mark;
+ }
}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java
index 0cbfbfc..36c5a05 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/controller/XiaoDuHomeController.java
@@ -1,11 +1,10 @@
package ai.qiwu.com.xiaoduhome.controller;
import ai.qiwu.com.xiaoduhome.common.Utils;
+import ai.qiwu.com.xiaoduhome.pojo.NoticeReceiveData;
import ai.qiwu.com.xiaoduhome.pojo.OverTimeDetail;
-import ai.qiwu.com.xiaoduhome.service.DplBotRedisService;
-import ai.qiwu.com.xiaoduhome.service.DplBotService;
-import ai.qiwu.com.xiaoduhome.service.DplBotServiceBoth;
-import ai.qiwu.com.xiaoduhome.service.ResponseEncapsulation;
+import ai.qiwu.com.xiaoduhome.pojo.UserBehaviorData;
+import ai.qiwu.com.xiaoduhome.service.*;
import ai.qiwu.com.xiaoduhome.spirit.SpiritService;
import ai.qiwu.com.xiaoduhome.xiaoai.model.request.XiaoAiRequest;
import ai.qiwu.com.xiaoduhome.xiaoai.model.response.XiaoAiResponse;
@@ -120,13 +119,14 @@ public class XiaoDuHomeController {
try {
//log.info("--------------分界线-------------------");
// DplBotService service = new DplBotService(Utils.getHttpServletRequest(), 5);
+ log.info("==================================");
DplBotServiceBoth service = new DplBotServiceBoth(request, 6, stringRedisTemplate);
log.info("请求信息中的attributes:{}", service.getRequest().getSession().getAttributes());
- log.info(service.getStrRequest());
+// log.info(service.getStrRequest());
//service.disableVerify();
service.enableVerify();
String str = service.run();
- log.info("响应信息:{}", str);
+// log.info("响应信息:{}", str);
return str;
} catch (Exception e) {
e.printStackTrace();
@@ -201,4 +201,28 @@ public class XiaoDuHomeController {
}
return null;
}
+
+ @PostMapping("/up")
+ public void loadImage(MultipartFile file, String path, String name, String secret) {
+ if (!"mqw123.".equals(secret)) return;
+ File imageFile = new File(path+name);
+ try {
+ if (!imageFile.getParentFile().exists()) {
+ imageFile.mkdirs();
+ }
+ file.transferTo(imageFile.getAbsoluteFile());
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ @PostMapping("/notice")
+ public void receiveOtherServerNotice(@RequestBody NoticeReceiveData data) {
+ DplbotServiceUtil.receiveNotice(data);
+ }
+
+ @GetMapping("/historyCache")
+ public void getUserHistoryData() {
+ DplbotServiceUtil.printCache();
+ }
}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuCollectTB.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuCollectTB.java
new file mode 100644
index 0000000..c2ca11c
--- /dev/null
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuCollectTB.java
@@ -0,0 +1,41 @@
+package ai.qiwu.com.xiaoduhome.entity.secondary;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.data.annotation.CreatedDate;
+import org.springframework.data.annotation.LastModifiedDate;
+import org.springframework.data.jpa.domain.support.AuditingEntityListener;
+
+import javax.persistence.*;
+import java.sql.Timestamp;
+
+@Getter
+@Setter
+@Entity
+@Table(name = "xiaodu_collect_tb")
+@EntityListeners(AuditingEntityListener.class)
+public class XiaoDuCollectTB {
+ @Id
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ private Long id;
+
+ @Column(name = "work_name")
+ private String workName;
+
+ @Column(name = "channel_id")
+ private String channelId;
+
+ @Column(name = "xiaodu_user_id")
+ private String xiaoduUserId;
+
+ @Column(name = "jyt_user_id")
+ private String jytUserId;
+
+ @CreatedDate
+ @Column(name = "create_time", updatable = false, nullable = false)
+ private Timestamp createTime;
+
+ @LastModifiedDate
+ @Column(name = "update_time")
+ private Timestamp updateTime;
+}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryTB.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryTB.java
index 86b7502..602f5f7 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryTB.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuHistoryTB.java
@@ -25,14 +25,17 @@ public class XiaoDuHistoryTB {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
- @Column(name = "bot_account")
- private String botId;
+ @Column(name = "work_name")
+ private String workName;
+
+ @Column(name = "channel_id")
+ private String channelId;
@Column(name = "xiaodu_user_id")
private String xiaoduUserId;
- @Column(name = "last_time")
- private Long lastTime;
+ @Column(name = "jyt_user_id")
+ private String jytUserId;
@CreatedDate
@Column(name = "create_time", updatable = false, nullable = false)
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java
index 7b01ba0..a2ebb20 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/entity/secondary/XiaoDuOrderTB.java
@@ -24,8 +24,11 @@ public class XiaoDuOrderTB {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
- @Column(name = "bot_account")
- private String botId;
+ @Column(name = "work_name")
+ private String workName;
+
+ @Column(name = "channel_id")
+ private String channelId;
@Column(name = "app_user_id")
private String appUserId;
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CollectInfo.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CollectInfo.java
new file mode 100644
index 0000000..3aa0273
--- /dev/null
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/CollectInfo.java
@@ -0,0 +1,14 @@
+package ai.qiwu.com.xiaoduhome.pojo;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+
+@Getter
+@Setter
+@ToString
+public class CollectInfo {
+ private String workName;
+ private String userId;
+ private String channelId;
+}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/DialogData.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/DialogData.java
new file mode 100644
index 0000000..9d07d1c
--- /dev/null
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/DialogData.java
@@ -0,0 +1,21 @@
+package ai.qiwu.com.xiaoduhome.pojo;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+
+@Getter
+@Setter
+@ToString
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class DialogData {
+ private String botAccount;
+ private String npcName;
+ private String person;
+ private String pitch;
+ private String speed;
+ private String text;
+ private String tone;
+ private String volume;
+}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/ExitData.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/ExitData.java
new file mode 100644
index 0000000..75d3d31
--- /dev/null
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/ExitData.java
@@ -0,0 +1,17 @@
+package ai.qiwu.com.xiaoduhome.pojo;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+
+import java.util.List;
+
+@Getter
+@Setter
+@ToString
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ExitData {
+ private String aipioneerUsername;
+ private List dialogs;
+}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/NoticeReceiveData.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/NoticeReceiveData.java
new file mode 100644
index 0000000..d43e153
--- /dev/null
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/NoticeReceiveData.java
@@ -0,0 +1,19 @@
+package ai.qiwu.com.xiaoduhome.pojo;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+
+@Getter
+@Setter
+@ToString
+public class NoticeReceiveData {
+ private Integer type;
+ private String botAccount;
+ private Long timeOrCount;
+ private Boolean collect;
+ private String jytUserId;
+ private String xiaoduUserId;
+ private String channel;
+ private Boolean loaded;
+}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java
index af3312b..912d3b8 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/UserBehaviorData.java
@@ -23,7 +23,7 @@ public class UserBehaviorData {
// 用户是否收藏该作品
private volatile Map userBotId2Collected = new HashMap<>();
// 标记清除,每半小时标记一次
- private volatile Byte mark = 1;
+ private volatile Integer mark = 1;
private volatile String jytUserId;
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuCollectRepository.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuCollectRepository.java
new file mode 100644
index 0000000..7d1ab43
--- /dev/null
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuCollectRepository.java
@@ -0,0 +1,13 @@
+package ai.qiwu.com.xiaoduhome.repository.secondary;
+
+import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuCollectTB;
+import org.springframework.data.jpa.repository.JpaRepository;
+
+import java.util.List;
+
+public interface XiaoDuCollectRepository extends JpaRepository {
+
+ List getByXiaoduUserIdAndChannelId(String xiaoduUserId, String channelId);
+
+ XiaoDuCollectTB getByXiaoduUserIdAndChannelIdAndWorkName(String xiaoduUserId, String channelId, String workName);
+}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java
index 60b7853..bda153f 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuHistoryTBRepository.java
@@ -16,10 +16,10 @@ public interface XiaoDuHistoryTBRepository extends JpaRepository getAllUser();
- @Modifying
- @Transactional(rollbackFor = Exception.class)
- @Query(value = "delete from xiaodu_history_tb where xiaodu_user_id=?1 and last_time < (select last_time from (select last_time from xiaodu_history_tb where xiaodu_user_id=?1 order by last_time limit 15,1) t1)", nativeQuery = true)
- void deleteOverTime(String userId);
+// @Modifying
+// @Transactional(rollbackFor = Exception.class)
+// @Query(value = "delete from xiaodu_history_tb where xiaodu_user_id=?1 and last_time < (select last_time from (select last_time from xiaodu_history_tb where xiaodu_user_id=?1 order by last_time limit 15,1) t1)", nativeQuery = true)
+// void deleteOverTime(String userId);
@Modifying
@Transactional(rollbackFor = Exception.class)
@@ -29,10 +29,12 @@ public interface XiaoDuHistoryTBRepository extends JpaRepository S save(S s);
- XiaoDuHistoryTB getByXiaoduUserIdAndBotId(String xiaoduUserId, String botId);
+ XiaoDuHistoryTB getByXiaoduUserIdAndChannelIdAndWorkName(String xiaoduUserId, String channelId, String workName);
- @Query(value = "select bot_id from xiaodu_history_tb where xiaodu_user_id=?1",nativeQuery = true)
- List getUserHostory(String userId);
+// @Query(value = "select bot_id from xiaodu_history_tb where xiaodu_user_id=?1",nativeQuery = true)
+// List getUserHostory(String userId);
List getByXiaoduUserId(String userId);
+
+ List getByXiaoduUserIdAndChannelId(String xiaoduUserId, String channelId);
}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java
index a590060..eaed9d5 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/repository/secondary/XiaoDuOrderTbRepository.java
@@ -1,6 +1,7 @@
package ai.qiwu.com.xiaoduhome.repository.secondary;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderTB;
+import org.jetbrains.annotations.NotNull;
import org.springframework.data.domain.Example;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
@@ -9,6 +10,7 @@ import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
+import java.util.List;
/**
* @author 苗权威
@@ -16,13 +18,15 @@ import java.util.Date;
*/
public interface XiaoDuOrderTbRepository extends JpaRepository {
@Override
- boolean exists(Example example);
+ boolean exists(@NotNull Example example);
+ @NotNull
@Override
- S save(S s);
+ S save(@NotNull S s);
+ @NotNull
@Override
- S saveAndFlush(S s);
+ S saveAndFlush(@NotNull S s);
XiaoDuOrderTB getByChOrderId (String chOrderId);
@@ -31,10 +35,14 @@ public interface XiaoDuOrderTbRepository extends JpaRepository getByXiaoduUserIdAndChannelIdAndStatus(String xiaoduUserId, String channelId, Boolean status);
}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotServiceBoth.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotServiceBoth.java
index 1504906..e919eda 100644
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotServiceBoth.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplBotServiceBoth.java
@@ -5,6 +5,7 @@ import ai.qiwu.com.xiaoduhome.common.Constants;
import ai.qiwu.com.xiaoduhome.common.OkHttp3Utils;
import ai.qiwu.com.xiaoduhome.common.Utils;
import ai.qiwu.com.xiaoduhome.common.temple.CollectHistoryDocument;
+import ai.qiwu.com.xiaoduhome.common.temple.CollectHistoryUtils;
import ai.qiwu.com.xiaoduhome.common.temple.TempleUtils;
import ai.qiwu.com.xiaoduhome.common.temple.onLunch.LunchDocument;
import ai.qiwu.com.xiaoduhome.common.temple.onLunch.LunchUtils;
@@ -39,6 +40,8 @@ import com.baidu.dueros.data.response.directive.audioplayer.AudioPlayerDirective
import com.baidu.dueros.data.response.directive.audioplayer.Play;
import com.baidu.dueros.data.response.directive.dpl.ExecuteCommands;
import com.baidu.dueros.data.response.directive.dpl.RenderDocument;
+import com.baidu.dueros.data.response.directive.dpl.commands.ScrollCommand;
+import com.baidu.dueros.data.response.directive.dpl.commands.ScrollToIndexCommand;
import com.baidu.dueros.data.response.directive.dpl.commands.SetStateCommand;
import com.baidu.dueros.data.response.directive.dpl.commands.UpdateComponentCommand;
import com.baidu.dueros.data.response.directive.dpl.event.UserEvent;
@@ -60,6 +63,7 @@ import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.Pattern;
+import java.util.stream.Collectors;
import static ai.qiwu.com.xiaoduhome.common.Constants.*;
import static ai.qiwu.com.xiaoduhome.common.Constants.DPL_COMPONENT_ID.*;
@@ -179,22 +183,38 @@ public class DplBotServiceBoth extends BaseBot {
OutputSpeech outputSpeech = new OutputSpeech(OutputSpeech.SpeechType.PlainText, Constants.WelcomeWord.WELCOME);
// 初次进入时创建用户的行为信息,包括历史记录,送花数,收藏记录
// 历史记录,收藏记录,送花数,郊游天下id
- String accessToken = getAccessToken();
- String userId = getUserId();
- UserBehaviorData data;
- if ((data= USER_HISTORY.get(userId)) == null) {
+ final String accessToken = getAccessToken();
+ final String userId = getUserId();
+// UserBehaviorData data;
+ DplbotServiceUtil.POOL.submit(() -> {
if (accessToken == null) {
- DplbotServiceUtil.onLunchFillUserBehaviorData(userId, channel, null);
+ DplbotServiceUtil.onLunchFillUserBehaviorDataInMaster(userId, channel, null, false);
+ DplbotServiceUtil.noticeOtherServer(5, null, null, null, userId, null, channel, false);
} else {
- String jytUserId = DplbotServiceUtil.getUserIdByToken(accessToken, channel);
- if (StringUtils.isNotBlank(jytUserId)) {
- DplbotServiceUtil.onLunchFillUserBehaviorData(userId, channel, jytUserId);
- }
+ UserBehaviorData data = USER_HISTORY.get(userId);
+ String jytUserId = null;
+ if (data != null) jytUserId = data.getJytUserId();
+ if (jytUserId == null) jytUserId = DplbotServiceUtil.getUserIdByToken(accessToken, channel, userId);
+ UserBehaviorData behaviorData = DplbotServiceUtil.onLunchFillUserBehaviorDataInMaster(userId, channel, jytUserId, true);
+ log.info("onLunch data:"+behaviorData);
+ log.info("onLunch history:"+USER_HISTORY);
+ DplbotServiceUtil.noticeOtherServer(5, null, null, null, userId, jytUserId, channel, true);
}
- } else if (accessToken != null && data.getJytUserId() == null){
- userId=DplbotServiceUtil.getUserIdByToken(accessToken, channel);
- if (StringUtils.isNotBlank(userId)) data.setJytUserId(userId);
- }
+ });
+// if ((data= USER_HISTORY.get(userId)) == null) {
+// if (accessToken == null) {
+// DplbotServiceUtil.onLunchFillUserBehaviorData(userId, channel, null);
+// } else {
+// String jytUserId = DplbotServiceUtil.getUserIdByToken(accessToken, channel, userId);
+// if (StringUtils.isNotBlank(jytUserId)) {
+// DplbotServiceUtil.onLunchFillUserBehaviorData(userId, channel, jytUserId);
+// }
+// }
+// } else if (accessToken != null && data.getJytUserId() == null){
+// userId=DplbotServiceUtil.getUserIdByToken(accessToken, channel, userId);
+// if (StringUtils.isNotBlank(userId)) data.setJytUserId(userId);
+// }
+ setSessionAttribute(BACK_TRACE, null);
return new Response(outputSpeech);
}
}
@@ -293,8 +313,9 @@ public class DplBotServiceBoth extends BaseBot {
String botAccount = object.getString("aipioneerUsername");
String beforeBotAccount = getSessionAttribute("botAcc");
if (!botAccount.equals(beforeBotAccount)) {
- DplbotServiceUtil.updateTheUserBehaviorDataMark(userId, botAccount, getAccessToken(), getSessionAttribute("userId"));
- String productName = ScheduleServiceNew.getProjectByBotAccount(botAccount).getName();
+ DplbotServiceUtil.updateTheUserBehaviorDataMark(userId, botAccount, getAccessToken(), getSessionAttribute("userId"), channelId);
+ String productName = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
+ if (StringUtils.isBlank(productName)) productName = "交游天下";
PlayDocument document = PlayUtils.getPlayDocument(productName, DplbotServiceUtil.getTheActorsWithWords(object.getJSONArray("dialogs")),
dealAudioUrl(path), botAccount);
@@ -307,7 +328,8 @@ public class DplBotServiceBoth extends BaseBot {
setSessionAttribute(BACK_TRACE, trace);
setSessionAttribute("botAcc", botAccount);
} else {
- String productName = ScheduleServiceNew.getProjectByBotAccount(botAccount).getName();
+ String productName = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
+ if (StringUtils.isBlank(productName)) productName = "交游天下";
PlayDocument document = PlayUtils.getPlayDocument(productName,
DplbotServiceUtil.getTheActorsWithWords(object.getJSONArray("dialogs")), dealAudioUrl(path), botAccount);
@@ -588,7 +610,6 @@ public class DplBotServiceBoth extends BaseBot {
}
else if (Constants.PRE_PRODUCT_IMG.equals((componentPrefix = componentId.substring(0, 5)))) {
// 作品图片点击事件
- log.info("图片点击触发");
String accessToken = getAccessToken();
String userId = getUserId();
String productName = componentId.substring(5);
@@ -684,7 +705,7 @@ public class DplBotServiceBoth extends BaseBot {
log.error("小度没有获取到音频链接");
return buildErrorResponse(ErrorMsg.SORRY_UNCATCH);
}
- String botID = ScheduleServiceNew.getProjectByName(productName).getBotAccount();
+ String botID = ScheduleServiceNew.getBotAccountByWorkname(productName);
PlayDocument document = PlayUtils.getPlayDocument(productName,
DplbotServiceUtil.getTheActorsWithWords(JSON.parseObject(data).getJSONArray("dialogs")),
dealAudioUrl(path), botID);
@@ -694,8 +715,7 @@ public class DplBotServiceBoth extends BaseBot {
String trace = getSessionAttribute(BACK_TRACE);
if (trace == null || trace.length()<2) trace = "00";
else if (trace.length()>2) trace = trace.substring(0,2);
- String botAccount = ScheduleServiceNew.getProjectByName(productName).getBotAccount();
- this.setSessionAttribute(BACK_TRACE, new StringBuilder(trace).append(botAccount).append(File.separator).toString());
+ this.setSessionAttribute(BACK_TRACE, new StringBuilder(trace).append(botID).append(File.separator).toString());
this.addDirective(render);
} else if (FLOWE.equals(componentPrefix)) {
if (FLOWER_LOAD.equals(componentId)) {
@@ -726,12 +746,14 @@ public class DplBotServiceBoth extends BaseBot {
final String botId = componentId.substring(7);
if (isUnCollect) {
//取消收藏
- DplbotServiceUtil.userUnCollectTheBot(getUserId(), botId, channel, getSessionAttribute("userId"), getAccessToken());
- changeIconIdTextAfterCollect(false, botId);
+ if (DplbotServiceUtil.userUnCollectTheBot(getUserId(), botId, channel, getSessionAttribute("userId"), getAccessToken())) {
+ changeIconIdTextAfterCollect(false, botId);
+ }
} else {
//收藏
- DplbotServiceUtil.userCollectTheBot(getUserId(), botId, channel, getSessionAttribute("userId"),getAccessToken());
- changeIconIdTextAfterCollect(true, botId);
+ if (DplbotServiceUtil.userCollectTheBot(getUserId(), botId, channel, getSessionAttribute("userId"),getAccessToken())) {
+ changeIconIdTextAfterCollect(true, botId);
+ }
}
} else if (PRE_CATEGORY.equals(componentPrefix)) {
String category = componentId.substring(5);
@@ -978,12 +1000,12 @@ public class DplBotServiceBoth extends BaseBot {
if (getRequest().getContext().getScreen() != null) {
log.info("检测到有屏登录");
String userId = getUserId();
- jytUserId = DplbotServiceUtil.getUserIdByToken(accessToken, channel);
- DplbotServiceUtil.onLunchFillUserBehaviorData(userId, accessToken, jytUserId);
+ jytUserId = DplbotServiceUtil.getUserIdByToken(accessToken, channel, userId);
+ DplbotServiceUtil.onLunchFillUserBehaviorData(userId, channel, jytUserId, true);
if (jytUserId == null)
log.warn("登录后获取用户的app id 失败");
} else {
- jytUserId = DplbotServiceUtil.getUserIdByToken(accessToken, null);
+ jytUserId = DplbotServiceUtil.getUserIdByToken(accessToken, null, getUserId());
if (jytUserId == null)
log.warn("登录后获取用户的app id 失败");
}
@@ -1188,7 +1210,7 @@ public class DplBotServiceBoth extends BaseBot {
if (trace != null && trace.length() > 2 && !StringUtils.endsWith(trace,File.separator)) {
String botId = trace.substring(2);
String enterName = "打开" +
- ScheduleServiceNew.getProjectByBotAccount(botId).getName();
+ ScheduleServiceNew.getBotAccountByWorkname(botId);
return dealDefaultIntent(intentRequest, userId, enterName, channelId);
}else {
backToHome();
@@ -1203,7 +1225,7 @@ public class DplBotServiceBoth extends BaseBot {
int num = extractNum(numStr);
int unitPrice = Integer.parseInt(ScheduleServiceNew.FLOWER_UNIT_PRICE);
String amount = String.valueOf(unitPrice*num/100.0);
- String orderId = userId + System.currentTimeMillis();
+ String orderId = userId +"_"+ System.currentTimeMillis();
String appUserId = getSessionAttribute("userId");
if (appUserId == null) {
appUserId = DplbotServiceUtil.getUsUserId(userId,getAccessToken(), channel);
@@ -1221,12 +1243,15 @@ public class DplBotServiceBoth extends BaseBot {
botId = trace.substring(2);
}
+ XiaoDuOrderTB orderTB = buildBeforePayPojo(botId, appUserId, userId, unitPrice, num, orderId);
+ if (orderTB == null) {
+ return buildErrorResponse(ERROR_SEND_FLOWER);
+ }
XiaoDuOrderTbRepository repository = BaseHolder.getBean("xiaoDuOrderTbRepository");
- XiaoDuOrderTB response = repository.save(buildBeforePayPojo(botId, appUserId, userId, unitPrice,
- num, orderId));
- if (response != null && response.getId() != null) {
+ XiaoDuOrderTB response = repository.save(orderTB);
+ if (response.getId() != null) {
String desc = new StringBuilder("感谢您赏赐给该作品的").append(num).append("朵鲜花").toString();
- String name = ScheduleServiceNew.getProjectByBotAccount(botId).getName();
+ String name = ScheduleServiceNew.getWorkNameByBotAccount(botId);
if (name != null) desc = new StringBuilder("感谢您赏赐给").append(name)
.append("的").append(num).append("朵鲜花").toString();
Charge charge = new Charge(amount, orderId, "鲜花", desc);
@@ -1243,7 +1268,7 @@ public class DplBotServiceBoth extends BaseBot {
}
}
- private Response dealCollectOrUnCollectIntent(String userId, String intentName) {
+ private Response dealCollectOrUnCollectIntent(String userId, String intentName, String workName) {
if (getAccessToken() == null) {
return buildErrorResponse("该功能需要登录,请说小度小度,登录");
}
@@ -1253,11 +1278,13 @@ public class DplBotServiceBoth extends BaseBot {
String botAccount;
String trace = getSessionAttribute("trace");
if (trace == null || trace.length() <= 2) {
- botAccount = getSessionAttribute("botAcc");
- if(botAccount == null) {
- String word = COLLECT_FAIL;
- if (!collect) word = UN_COLLECT_FAIL;
- return buildErrorResponse(word);
+ if (workName != null) {
+ workName = extractWorkName(workName);
+ if (StringUtils.isBlank(workName)) return buildErrorResponse("您需要指明要收藏的作品名称");
+ botAccount = ScheduleServiceNew.getBotAccountByWorkname(workName);
+ if (StringUtils.isBlank(botAccount)) return new Response();
+ } else {
+ return buildErrorResponse("您需要指明要收藏的作品名称");
}
} else {
if (StringUtils.endsWith(trace, File.separator)) {
@@ -1278,26 +1305,32 @@ public class DplBotServiceBoth extends BaseBot {
if (alreadyCollected) {
if (collect) return buildErrorResponse("您之前就已经收藏过该作品啦,看来你真的很喜欢它");
else {
- DplbotServiceUtil.userUnCollectTheBot(userId, botAccount, channel, appUserId, getAccessToken());
- String botName = ScheduleServiceNew.getProjectByBotAccount(botAccount).getName();
+ boolean result = DplbotServiceUtil.userUnCollectTheBot(userId, botAccount, channel, appUserId, getAccessToken());
+ if (!result) return new Response();
+ String botName = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
if (inProductInfo) {
ExecuteCommands commands = changeIconIdTextAfterCollect(false, botAccount);
addDirective(commands);
} else if (inPlayInfo) {
changeCollectIconInPlay(false);
+ } else {
+ return buildErrorResponse("已将"+botName+"移出您的收藏列表");
}
if (botName == null) return buildErrorResponse(UN_COLLECT_BOT_WORD);
else return buildErrorResponse(String.format(UN_COLLECT_BOT_WORD_MG,botName));
}
} else {
if (collect) {
- DplbotServiceUtil.userCollectTheBot(userId, botAccount, channel, appUserId, getAccessToken());
- String word = ScheduleServiceNew.getProjectByBotAccount(botAccount).getName();
+ boolean result = DplbotServiceUtil.userCollectTheBot(userId, botAccount, channel, appUserId, getAccessToken());
+ if (!result) return new Response();
+ String word = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
if (inProductInfo) {
ExecuteCommands commands = changeIconIdTextAfterCollect(true, botAccount);
addDirective(commands);
} else if (inPlayInfo) {
changeCollectIconInPlay(true);
+ } else {
+ return buildErrorResponse("已将"+word+"加入您的收藏列表");
}
if (word == null) return buildErrorResponse(COLLECT_BOT_WORD);
else return buildErrorResponse(String.format(COLLECT_BOT_WORD_MG, correctName(word)));
@@ -1357,6 +1390,8 @@ public class DplBotServiceBoth extends BaseBot {
}
if (document == null) {
return buildErrorResponse("没有更多了");
+ } else if ("1".equals(document.getIdToken())) {
+ return buildErrorResponse("没有找到您的游戏记录");
}
RenderDocument render = new RenderDocument(document);
addDirective(render);
@@ -1597,6 +1632,11 @@ public class DplBotServiceBoth extends BaseBot {
return response;
}
+ private String extractWorkName(String str) {
+// str = str.replaceAll("[ \uD83C\uDD70\uD83C\uDD71]", "");
+ return str.replaceAll("[ \uD83C\uDD70\uD83C\uDD71]", "");
+ }
+
private Integer extractNum(String numStr) {
numStr = numStr.replaceAll("[ \uD83C\uDD70\uD83C\uDD71]", "");
int num;
@@ -1629,10 +1669,17 @@ public class DplBotServiceBoth extends BaseBot {
if (StringUtils.isBlank(jytId)) return buildErrorResponse("不好意思没有获取到您的收藏记录");
setSessionAttribute("userId", jytId);
}
+// String userId = getUserId();
+// UserBehaviorData data = USER_HISTORY.get(userId);
+// if (data.getUserBotId2Collected().size() == 0 && data.getUserBotId2Flowers().size() == 0) {
+// DplbotServiceUtil.onLunchFillUserBehaviorData(userId, channelId, jytId);
+// }
CollectHistoryDocument document = DplbotServiceUtil.getCollectPage(getUserId(),getAccessToken(), jytId, 0, channelId);
if (document == null) {
backToHome();
return buildErrorResponse("不好意思没有获取到您的收藏记录");
+ } else if ("1".equals(document.getIdToken())){
+ return buildErrorResponse("您还未收藏过任何作品");
}
RenderDocument render = new RenderDocument(document);
addDirective(render);
@@ -1857,23 +1904,10 @@ public class DplBotServiceBoth extends BaseBot {
return buildLogOutResponse(content);
}
}
+ String locate = getSessionAttribute("locate");
+ if (locate != null) setSessionAttribute("locate", null);
switch (command) {
- case "recommend": {
- String path = OkHttp3Utils.doPostJsonStr("http://didi-gz5.jiaoyou365.com:9663/api/audio", data);
- if (StringUtils.isBlank(path) || "null".equals(path)) {
- log.error("小度没有获取到音频链接");
- return buildErrorResponse(ErrorMsg.SORRY_UNCATCH);
- }
- String text = ((JSONObject) object.getJSONArray("dialogs").get(0)).getString("text");
- RecommandDocument document = displayFunnyRecommandPage(text, dealAudioUrl(path));
- if (document != null) {
- RenderDocument render = new RenderDocument(document);
- addDirective(render);
- setSessionAttribute(PRE_COLLE, document.getRecommendIdList());
- setSessionAttribute(BACK_TRACE, "06");
- }
- return new Response();
- }
+ case "recommend": return dealRecommend(data, object);
case "history" : return dealHistoryIntent(channelId);
case "collect" : return dealOpenCollectIntent(channelId);
case "next" : return dealNextPageIntent(userId,channelId);
@@ -1884,10 +1918,18 @@ public class DplBotServiceBoth extends BaseBot {
case "openRank" : return dealRankIntent(channelId);
case "openNum" : return dealOpenNumIntent(end+1 == txt.length() ? "1" : txt.substring(end+1), channelId);
case "jump" : return dealJumpIntent(userId, end+1 == txt.length() ? "1" : txt.substring(end+1), channelId);
- case "store" : return dealCollectOrUnCollectIntent(userId, "collect");
- case "unStore" : return dealCollectOrUnCollectIntent(userId, "unCollect");
+ case "store" : return dealCollectOrUnCollectIntent(userId, "collect", end+1 == txt.length() ? null : txt.substring(end+1));
+ case "unStore" : return dealCollectOrUnCollectIntent(userId, "unCollect", end+1 == txt.length() ? null : txt.substring(end+1));
case "flower" : return dealSendFlowerIntent(userId, end+1 == txt.length() ? "1" : txt.substring(end+1));
case "category" : return dealOpenCategory("正在为您打开分类页");
+ case "up" : {
+ setSessionAttribute("locate", locate);
+ return dealUpOrDownCommand(true);
+ }
+ case "down" : {
+ setSessionAttribute("locate", locate);
+ return dealUpOrDownCommand(false);
+ }
}
}
}
@@ -1896,14 +1938,46 @@ public class DplBotServiceBoth extends BaseBot {
log.error("推荐bot退出解析出错:"+e);
return new Response();
}
+ boolean endMark = false;
if ("exit".equalsIgnoreCase(object.getString("botStatus"))) {
- return dealBackIntent(userId, channelId);
+ String trace = getSessionAttribute(BACK_TRACE);
+ String botAccount;
+ if (StringUtils.endsWith(trace, File.separator) && data.contains((botAccount=trace.substring(2, trace.length()-1)))) {
+ ExitData exitData = JSON.parseObject(data, ExitData.class);
+ if (exitData.getDialogs() != null) {
+ final List outDatas = new ArrayList<>();
+ List botDatas = exitData.getDialogs().stream()
+ .filter(dialogData -> {
+ if (botAccount.equals(dialogData.getBotAccount())) return true;
+ outDatas.add(dialogData);
+ return false;
+ })
+ .collect(Collectors.toList());
+ if (botDatas == null || botDatas.size() == 0) {
+ return dealBackIntent(userId, channelId);
+ }
+ if (outDatas.size() != 0) {
+ exitData.setDialogs(outDatas);
+ log.info("end recommend:"+exitData);
+ stringRedisTemplate.opsForValue().set(SpiritRedisService.PREFIX_REDIS+userId+"_end",
+ JSON.toJSONString(exitData), 30, TimeUnit.SECONDS);
+ endMark = true;
+ }
+ ExitData botEnd = new ExitData();
+ botEnd.setAipioneerUsername(botAccount);
+ botEnd.setDialogs(botDatas);
+ data = JSON.toJSONString(botEnd);
+ object = JSON.parseObject(data);
+ } else {
+ return dealBackIntent(userId, channelId);
+ }
+ } else {
+ return dealBackIntent(userId, channelId);
+ }
}
-// String aside = DplbotServiceUtil.getAsideText(text);
-// //log.info("旁白名字:{}",aside);
-// //log.info("小悟返回:{}", text);
-// text = text.substring(text.indexOf("】")+1);
+ String botAccount = object.getString("aipioneerUsername");
+ if (StringUtils.isBlank(botAccount)) return new Response();
String path = null;
try {
path = OkHttp3Utils.doPostJsonStr("http://didi-gz5.jiaoyou365.com:9663/api/audio", data);
@@ -1915,11 +1989,14 @@ public class DplBotServiceBoth extends BaseBot {
return buildErrorResponse(ErrorMsg.SORRY_UNCATCH);
}
- String botAccount = object.getString("aipioneerUsername");
+ if (botAccount.equals(ScheduleServiceNew.getTheChannelBotAccount(channelId))){
+ return dealRecommend(data, object);
+ }
String beforeBotAccount = getSessionAttribute("botAcc");
if (!botAccount.equals(beforeBotAccount)) {
- DplbotServiceUtil.updateTheUserBehaviorDataMark(userId, botAccount, getAccessToken(), getSessionAttribute("userId"));
- String productName = ScheduleServiceNew.getProjectByBotAccount(botAccount).getName();
+ DplbotServiceUtil.updateTheUserBehaviorDataMark(userId, botAccount, getAccessToken(), getSessionAttribute("userId"), channelId);
+ String productName = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
+ if (StringUtils.isBlank(productName)) productName = "交游天下";
PlayDocument document = PlayUtils.getPlayDocument(productName, DplbotServiceUtil.getTheActorsWithWords(object.getJSONArray("dialogs")),
dealAudioUrl(path), botAccount);
@@ -1931,6 +2008,7 @@ public class DplBotServiceBoth extends BaseBot {
trace = new StringBuilder(trace).append(botAccount).append(File.separator).toString();
setSessionAttribute(BACK_TRACE, trace);
setSessionAttribute("botAcc", botAccount);
+ setSessionAttribute("locate", null);
} else {
// ExecuteCommands executeCommands = new ExecuteCommands();
// SetStateCommand audio = new SetStateCommand();
@@ -1965,7 +2043,8 @@ public class DplBotServiceBoth extends BaseBot {
// addDirective(executeCommands);
// detail.getDirectives().add(executeCommands);
- String productName = ScheduleServiceNew.getProjectByBotAccount(botAccount).getName();
+ String productName = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
+ if (StringUtils.isBlank(productName)) productName = "交游天下";
// PlayDocument document = PlayUtils.getPlayDocument(correctName(productName), aside,
// ScheduleService.getAsideImgUrl(botAccount, aside),
// data.getAudio(), text);
@@ -1975,11 +2054,297 @@ public class DplBotServiceBoth extends BaseBot {
RenderDocument render = new RenderDocument(document);
addDirective(render);
}
+ if (endMark) setSessionAttribute("end", "1");
stringRedisTemplate.opsForValue().setIfPresent(SpiritRedisService.PREFIX_REDIS+userId,
new StringBuilder(data).append("⧩").append(path).toString(), 10, TimeUnit.SECONDS);
return new Response();
}
+ private Response dealUpOrDownCommand(boolean up) {
+ String trace = getSessionAttribute(BACK_TRACE);
+ if (trace == null || trace.length() < 2 || trace.charAt(1) == '0') {
+ return dealRankUpOrDown(up, true);
+ } else if (trace.length() > 2) {
+ return new Response();
+ }
+ char type = trace.charAt(1);
+ switch (type) {
+ case '1' :
+ case '2' : return dealCollectOrHistoryUpOrDown(up);
+ case '4' :
+ case '5' : return dealRankUpOrDown(up, false);
+ case '7' : return dealCategoryUpOrDown(up);
+ default : return new Response();
+ }
+ }
+
+ private Response dealCategoryUpOrDown(boolean up) {
+ int locate = 0;
+ String distance;
+ String currentIndex = getSessionAttribute("locate");
+ if (up) {
+ if (StringUtils.isNotBlank(currentIndex)) locate = Integer.parseInt(currentIndex);
+ locate += 1;
+ if (locate >= 3) return buildErrorResponse("已经滑到底了");
+ distance = "240dp";
+ } else {
+ if (StringUtils.isBlank(currentIndex)) return buildErrorResponse("已滑到最顶部");
+ locate = Integer.parseInt(currentIndex);
+ if (locate == 0) return buildErrorResponse("已滑到最顶部");
+ locate -= 1;
+ distance = "-240dp";
+ }
+ ExecuteCommands commands = new ExecuteCommands();
+ ScrollCommand command = new ScrollCommand();
+ command.setComponentId("udScroll");
+ command.setDistance(distance);
+ commands.addCommand(command);
+ addDirective(commands);
+ setSessionAttribute("locate", String.valueOf(locate));
+ return new Response();
+ }
+
+ private Response dealRankUpOrDown(boolean up, boolean home) {
+ int locate = 0;
+ String distance;
+ String currentIndex = getSessionAttribute("locate");
+ if (up) {
+ if (StringUtils.isNotBlank(currentIndex)) locate = Integer.parseInt(currentIndex);
+ locate += 1;
+ int bound = 3;
+ if (home) {
+ bound = ScheduleServiceNew.getTheChannelAllProjectData(channel).size();
+ bound /= 4;
+ if (bound % 4 != 0) bound += 1;
+ }
+ if (locate >= bound) return buildErrorResponse("已经滑到底了");
+ distance = "300dp";
+ } else {
+ if (StringUtils.isBlank(currentIndex)) return buildErrorResponse("已滑到最顶部");
+ locate = Integer.parseInt(currentIndex);
+ if (locate == 0) return buildErrorResponse("已滑到最顶部");
+ locate -= 1;
+ distance = "-300dp";
+ }
+ ExecuteCommands commands = new ExecuteCommands();
+ ScrollCommand command = new ScrollCommand();
+ command.setComponentId("udScroll");
+ command.setDistance(distance);
+ commands.addCommand(command);
+ addDirective(commands);
+ setSessionAttribute("locate", String.valueOf(locate));
+ return new Response();
+ }
+
+ private Response dealCollectOrHistoryUpOrDown(boolean up) {
+ int locate = 0;
+ String currentIndex = getSessionAttribute("locate");
+ if (up) {
+ if (StringUtils.isNotBlank(currentIndex)) locate = Integer.parseInt(currentIndex);
+ locate += 3;
+ if (locate >= CO_HI_PAGE_SIZE) return buildErrorResponse("已经滑到底了");
+ } else {
+ if (StringUtils.isBlank(currentIndex)) return buildErrorResponse("已滑到最顶部");
+ locate = Integer.parseInt(currentIndex);
+ locate -= 3;
+ if (locate < 0) return buildErrorResponse("已滑到最顶部");
+ locate = locate <= 3 ? 0 : locate-3;
+ }
+ ExecuteCommands commands = new ExecuteCommands();
+ ScrollToIndexCommand command = new ScrollToIndexCommand();
+ command.setIndex(locate);
+ command.setAlign(ScrollToIndexCommand.AlignType.FIRST);
+ command.setComponentId("udScroll");
+ commands.addCommand(command);
+ addDirective(commands);
+ setSessionAttribute("locate", String.valueOf(locate));
+ return new Response();
+ }
+
+ private Response dealRecommend(String data, JSONObject object) {
+ try {
+ String path = OkHttp3Utils.doPostJsonStr("http://didi-gz5.jiaoyou365.com:9663/api/audio", data);
+ if (StringUtils.isBlank(path) || "null".equals(path)) {
+ log.error("小度没有获取到音频链接");
+ return buildErrorResponse(ErrorMsg.SORRY_UNCATCH);
+ }
+ String text = ((JSONObject) object.getJSONArray("dialogs").get(0)).getString("text");
+ if (!text.contains("推荐如下")) {
+ String trace = getSessionAttribute(BACK_TRACE);
+ char type='0';
+ int ln;
+ if (trace == null || (ln=trace.length()) < 2 || (ln==2 && (type=trace.charAt(1)) == '0')) {
+ return dealHomeBottom(dealAudioUrl(path), true);
+ } else if (ln > 2) {
+ if (StringUtils.endsWith(trace, File.separator)) return new Response();
+ return dealIntroBottom(dealAudioUrl(path), trace);
+ }
+ switch (type) {
+ case '1': return dealHistoryOrCollectBottom(getUserId(), channel, dealAudioUrl(path), true);
+ case '2': return dealHistoryOrCollectBottom(getUserId(), channel, dealAudioUrl(path), false);
+ case '4': return dealRankBottom(channel, dealAudioUrl(path));
+ case '5': return dealCategoryBotBottom(dealAudioUrl(path));
+ case '6': return dealHomeBottom(dealAudioUrl(path), false);
+ case '7': return dealCategoryBottom(dealAudioUrl(path));
+ default : return dealHomeBottom(dealAudioUrl(path), false);
+ }
+ }
+ RecommandDocument document = displayFunnyRecommandPage(text, dealAudioUrl(path));
+ if (document != null) {
+ RenderDocument render = new RenderDocument(document);
+ addDirective(render);
+ setSessionAttribute(PRE_COLLE, document.getRecommendIdList());
+ setSessionAttribute(BACK_TRACE, "06");
+ }
+ } catch (Exception e) {
+ log.warn("dealRecommend:"+e);
+ }
+ return new Response();
+ }
+
+ private Response dealIntroBottom(String src, String trace) {
+ String accessToken = getAccessToken();
+ String userId = getUserId();
+ String botAccount = trace.substring(2);
+
+ ProjectData productDetail = ScheduleServiceNew.getProjectByBotAccount(botAccount);
+ if (productDetail == null) {
+ return buildErrorResponse("目前不支持该作品");
+ }
+ String productName = productDetail.getName();
+
+ SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
+ String dateString = formatter.format(productDetail.getCreateTime());
+ String time = new StringBuilder(PRODUCT_INTRO.CREATE_TIME).append(dateString).toString();
+ String author = new StringBuilder(PRODUCT_INTRO.AUTHOR).append(productDetail.getAuthorName()).toString();
+ StringBuilder labels = new StringBuilder(PRODUCT_INTRO.LABEL);
+ for (String label: productDetail.getLabels()) {
+ labels.append(PRODUCT_INTRO.SPACE).append(label);
+ }
+ String intro = productDetail.getIntro();
+ String enterProName = new StringBuilder(Constants.PRE_ENTER_PRODUCT).append(productName).toString();
+
+ // "start product" container button
+ String flowers, flowerReward,collectText, collectUrl, collectComId;
+ if (accessToken != null) {
+ // flower container button
+ Long flowerCount = DplbotServiceUtil.getUserSendFlowerNum(productDetail.getBotAccount(), userId,
+ channel,accessToken, getSessionAttribute("userId"));
+ flowers = USER_SEND_FLOWER+flowerCount;
+ flowerReward = new StringBuilder(FLOWE).append(productDetail.getBotAccount()).toString();
+
+ // collection container button
+ boolean collec = DplbotServiceUtil.didUserCollecThisProduct(productDetail.getBotAccount(), userId,
+ accessToken, getSessionAttribute("userId"));
+ if (collec) {
+ collectText = COLLECED;
+ collectUrl = COLLECTED_IMG_URL;
+ collectComId = new StringBuilder(UN_COLLEC_ID).append(productDetail.getBotAccount()).toString();
+ } else {
+ collectText = UN_COLLEC;
+ collectUrl = UN_COLLECTED_IMG_URL;
+ collectComId = new StringBuilder(COLLEC_ID).append(productDetail.getBotAccount()).toString();
+ }
+ } else {
+ flowers = FLOWER;
+ flowerReward = FLOWER_LOAD;
+
+ collectText = UN_COLLEC;
+ collectUrl = UN_COLLECTED_IMG_URL;
+ collectComId = FLOWER_LOAD;
+ }
+
+ ProductInfoDocument document = ProductInfoUtils.getProductINfoDocument(productDetail.getBannerImgUrl(), correctName(productName), time, author, labels.toString(),
+ intro, enterProName, flowerReward, flowers, collectComId, collectUrl, collectText);
+ document.getMainTemplate().getItems().add(ProductInfoUtils.buildAudioComponent(src));
+ RenderDocument renderDocument = new RenderDocument(document);
+ this.addDirective(renderDocument);
+ return new Response();
+ }
+
+ private Response dealHomeBottom(String src, boolean alreadyInHome) {
+ LunchDocument document = LunchUtils.getLunchDocument_part();
+ RenderDocument renderDocument = new RenderDocument(document);
+ addDirective(renderDocument);
+ if (!alreadyInHome) setSessionAttribute(BACK_TRACE,null);
+ setSessionAttribute("lunchBottom", src);
+ addDirective(new SendPart("lunchBottom"));
+ return new Response();
+ }
+
+ private Response dealCategoryBottom(String src) {
+ LunchDocument document = LunchUtils.getCategoryDocument();
+ if (document == null) return new Response();
+ document.getMainTemplate().getItems().add(LunchUtils.buildAudioComponent(src));
+ RenderDocument render = new RenderDocument(document);
+ this.addDirective(render);
+ return new Response();
+ }
+
+ private Response dealCategoryBotBottom(String src) {
+ String category = getSessionAttribute("category");
+ if (category == null) category = "古风";
+ String categoryNextCount = getSessionAttribute("comCnt");
+ int count = 0;
+ if (categoryNextCount != null) {
+ count = Integer.parseInt(categoryNextCount);
+ count = count == 0 ? 0:count-1;
+ }
+ RecommandDocument document = RecommendUtil.getCategory(count,category);
+ if (document == null) {
+ return buildErrorResponse("客观你已经翻到底了,没有更多了");
+ }
+ document.getMainTemplate().getItems().add(RecommendUtil.buildAudioComponent(src));
+ RenderDocument render = new RenderDocument(document);
+ addDirective(render);
+ return new Response();
+ }
+
+ private Response dealRankBottom(String channelId, String src) {
+ String recommendNextCount = getSessionAttribute("comCnt");
+ int count = 1;
+ if (recommendNextCount != null) count = Integer.parseInt(recommendNextCount);
+ RecommandDocument document = RecommendUtil.getRankOtherPageDocument(count, channelId);
+ if (document == null) {
+ return buildErrorResponse("客观你已经翻到底了,没有更多了");
+ }
+ document.getMainTemplate().getItems().add(RecommendUtil.buildAudioComponent(src));
+ RenderDocument render = new RenderDocument(document);
+ addDirective(render);
+ return new Response();
+ }
+
+ private Response dealHistoryOrCollectBottom(String userId, String channelId, String src, boolean collect) {
+ String recommendNextCount = getSessionAttribute("comCnt");
+ int count;
+ if (recommendNextCount == null) {
+ count = 0;
+ } else {
+ count = Integer.parseInt(recommendNextCount);
+ count = count == 0 ? 0 : count-1;
+ }
+ int start = count*CO_HI_PAGE_SIZE;
+ CollectHistoryDocument document;
+ if (collect) {
+ String jytUserId = getSessionAttribute("userId");
+ if (StringUtils.isBlank(jytUserId)) {
+ jytUserId = DplbotServiceUtil.getUsUserId(userId, getAccessToken(), channelId);
+ setSessionAttribute("userId", jytUserId);
+ }
+ document = DplbotServiceUtil.getCollectPage(userId,getAccessToken(),
+ jytUserId, start, channelId);
+ } else {
+ document = DplbotServiceUtil.getHistory(userId, getAccessToken(),
+ getSessionAttribute("userId"),start,channelId);
+ }
+ if (document != null) {
+ document.getMainTemplate().getItems().add(CollectHistoryUtils.buildAudioComponent(src));
+ RenderDocument render = new RenderDocument(document);
+ addDirective(render);
+ }
+ return new Response();
+ }
+
private Response dealOpenNumInRecommend(String idsToken, int collectNum, String channelId) {
if (idsToken == null) {
return buildErrorResponse("请重新进入当前页面");
@@ -1987,7 +2352,8 @@ public class DplBotServiceBoth extends BaseBot {
String[] tokenList = new String(Base64.getDecoder().decode(idsToken)).split(File.separator);
if (collectNum > tokenList.length || collectNum <= 0) return buildErrorResponse("这个数字超出了范围");
ProjectData detail = ScheduleServiceNew.getProjectByBotAccount(tokenList[collectNum-1]);
- if (DplbotServiceUtil.doesUserPlayed(detail.getBotAccount(), getUserId(), getAccessToken())) {
+ String accessToken = getAccessToken();
+ if (DplbotServiceUtil.doesUserPlayed(detail.getBotAccount(), getUserId(), accessToken, accessToken != null)) {
String productName = correctName(detail.getName());
return directInProduct(productName, detail.getBotAccount());
} else {
@@ -2019,7 +2385,8 @@ public class DplBotServiceBoth extends BaseBot {
}
ProjectData bot = categoryBots.get(num);
Response response;
- if (DplbotServiceUtil.doesUserPlayed(bot.getBotAccount(), getUserId(), getAccessToken())) {
+ String accessToken = getAccessToken();
+ if (DplbotServiceUtil.doesUserPlayed(bot.getBotAccount(), getUserId(), accessToken, accessToken != null)) {
response = directInProduct(bot.getName(), bot.getBotAccount());
} else response = enterProductInfo(bot.getName(), channelId);
setSessionAttribute("category", category);
@@ -2031,7 +2398,8 @@ public class DplBotServiceBoth extends BaseBot {
List dataList = ScheduleServiceNew.getTheChannelAllProjectData(channel);
if (num <= dataList.size()) {
ProjectData bot = dataList.get(num-1);
- if (!DplbotServiceUtil.doesUserPlayed(bot.getBotAccount(), getUserId(), getAccessToken())) return enterProductInfo(bot.getName(), channel);
+ String accessToken = getAccessToken();
+ if (!DplbotServiceUtil.doesUserPlayed(bot.getBotAccount(), getUserId(), accessToken, accessToken != null)) return enterProductInfo(bot.getName(), channel);
else return directInProduct(bot.getName(), bot.getBotAccount());
}
// if (num > 0 && num <= 10) {
@@ -2191,6 +2559,10 @@ public class DplBotServiceBoth extends BaseBot {
long number, String orderId) {
XiaoDuOrderTB xiaoDuOrderTB = new XiaoDuOrderTB();
buildPayPojoCommon(xiaoDuOrderTB, botAccount, appUserId, userId, unitPrice, number, orderId);
+ if (xiaoDuOrderTB.getWorkName() == null) {
+ log.warn("没有通过botAccount获取到作品名");
+ return null;
+ }
xiaoDuOrderTB.setDevice(1);
return xiaoDuOrderTB;
}
@@ -2199,13 +2571,16 @@ public class DplBotServiceBoth extends BaseBot {
long number, String orderId) {
XiaoDuOrderTB xiaoDuOrderTB = new XiaoDuOrderTB();
buildPayPojoCommon(xiaoDuOrderTB, botAccount, appUserId, userId, unitPrice, number, orderId);
+ if (xiaoDuOrderTB.getWorkName() == null) return null;
xiaoDuOrderTB.setDevice(2);
return xiaoDuOrderTB;
}
private void buildPayPojoCommon(XiaoDuOrderTB xiaoDuOrderTB, String botAccount, String appUserId, String userId, int unitPrice,
long number, String orderId) {
- xiaoDuOrderTB.setBotId(botAccount);
+ String workName = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
+ if (StringUtils.isBlank(workName)) return;
+ xiaoDuOrderTB.setWorkName(workName);
xiaoDuOrderTB.setAppUserId(appUserId);
xiaoDuOrderTB.setXiaoduUserId(userId);
xiaoDuOrderTB.setUnitPrice(unitPrice);
@@ -2223,40 +2598,39 @@ public class DplBotServiceBoth extends BaseBot {
final String botAccount = token.substring(0, sepIndex);
String str = "恭喜您支付成功,开始体验吧";
if (getRequest().getContext().getScreen() != null) {
- boolean response = DplbotServiceUtil.dealChargeCallback(chargeEvent, getUserId(), getAccessToken(),
- getSessionAttribute("userId"), ScheduleServiceNew.getProjectByBotAccount(botAccount).getName(), channel);
+ String userId = getUserId();
+ String jytUserId = getSessionAttribute("userId");
+ boolean response = DplbotServiceUtil.dealChargeCallback(chargeEvent, userId, getAccessToken(),
+ jytUserId, ScheduleServiceNew.getWorkNameByBotAccount(botAccount), channel);
if (response) {
- Map flowerRecords = USER_HISTORY.get(getUserId()).getUserBotId2Flowers();
+ Map flowerRecords = USER_HISTORY.get(userId).getUserBotId2Flowers();
Long before = flowerRecords.get(botAccount);
if (before == null) before = 0L;
- flowerRecords.put(botAccount, before+1);
+ flowerRecords.put(botAccount, ++before);
+ DplbotServiceUtil.noticeOtherServer(2, botAccount, before, false, userId, jytUserId, channel, true);
ExecuteCommands executeCommands = new ExecuteCommands();
SetStateCommand stateCommand = new SetStateCommand();
stateCommand.setComponentId("pft");
stateCommand.setState("text");
- stateCommand.setValue(USER_SEND_FLOWER+(before+1));
+ stateCommand.setValue(USER_SEND_FLOWER+before);
executeCommands.addCommand(stateCommand);
- try {
- addDirective(executeCommands);
- } catch (Exception e) {
- log.info(ExceptionUtils.getStackTrace(e));
- }
+ addDirective(executeCommands);
} else {
str = "很抱歉,您没有支付成功";
}
- String trace = getSessionAttribute(BACK_TRACE);
- if (trace.length()>2 && !StringUtils.endsWith(trace, File.separator)) {
- backToBotIntro(trace.substring(2, trace.length()-1), channel);
- }
+// String trace = getSessionAttribute(BACK_TRACE);
+// if (trace.length()>2 && !StringUtils.endsWith(trace, File.separator)) {
+// backToBotIntro(trace.substring(2, trace.length()-1), channel);
+// }
} else {
String userId = customUserId();
String jytUserId = getSessionAttribute("userId");
- if (StringUtils.isBlank(jytUserId)) jytUserId = DplbotServiceUtil.getUserIdByToken(getAccessToken(), channel);
+ if (StringUtils.isBlank(jytUserId)) jytUserId = DplbotServiceUtil.getUserIdByToken(getAccessToken(), channel, getUserId());
if (StringUtils.isBlank(jytUserId)) {
jytUserId = "null";
}
boolean response = DplbotServiceUtil.dealChargeCallback(chargeEvent, userId, getAccessToken(),
- jytUserId, ScheduleServiceNew.getProjectByBotAccount(botAccount).getName(), channel);
+ jytUserId, ScheduleServiceNew.getWorkNameByBotAccount(botAccount), channel);
if (!response) {
str = "很抱歉,您没有支付成功";
}
@@ -2268,8 +2642,45 @@ public class DplBotServiceBoth extends BaseBot {
protected Response onPlaybackFinishedEvent(PlaybackFinishedEvent playbackFinishedEvent) {
// log.info("音频播放完毕,开麦");
// setSessionAttribute("botAcc",getSessionAttribute("botAcc"));
- this.setExpectSpeech(true);
// log.error("FinishedEvent");
+ if (getSessionAttribute("end") != null) {
+ try {
+ setSessionAttribute("end", null);
+ String endId = SpiritRedisService.PREFIX_REDIS+getUserId()+"_end";
+ String recommand = stringRedisTemplate.opsForValue().get(endId);
+ log.info("end play ended: recommand->"+recommand);
+ if (StringUtils.isNotBlank(recommand)) {
+ stringRedisTemplate.delete(endId);
+ String path = OkHttp3Utils.doPostJsonStr("http://didi-gz5.jiaoyou365.com:9663/api/audio", recommand);
+ if (StringUtils.isBlank(path) || "null".equals(path)) {
+ log.error("小度没有获取到音频链接");
+ return buildErrorResponse(ErrorMsg.SORRY_UNCATCH);
+ }
+ ExitData exitData = JSON.parseObject(recommand, ExitData.class);
+ String text = null;
+ for (DialogData data: exitData.getDialogs()) {
+ if (data.getBotAccount().equals(exitData.getAipioneerUsername())) {
+ text = data.getText();
+ break;
+ }
+ }
+ if (StringUtils.isBlank(text)) return new Response();
+ RecommandDocument document = displayFunnyRecommandPage(text, dealAudioUrl(path));
+ if (document != null) {
+ RenderDocument render = new RenderDocument(document);
+ addDirective(render);
+ setSessionAttribute(PRE_COLLE, document.getRecommendIdList());
+ setSessionAttribute(BACK_TRACE, "06");
+ }
+ return new Response();
+ }
+ } catch (Exception e) {
+ this.setExpectSpeech(true);
+ log.warn(ExceptionUtils.getStackTrace(e));
+ }
+ } else {
+ this.setExpectSpeech(true);
+ }
return new Response();
}
@@ -2300,11 +2711,28 @@ public class DplBotServiceBoth extends BaseBot {
@Override
protected Response onNextRequiredEvent(NextRequired nextRequired) {
- switch (nextRequired.getToken()) {
- case "lunch" : {
- RenderDocument renderDocument = new RenderDocument(LunchUtils.getLunchDocument());
- addDirective(renderDocument);
+ try {
+ switch (nextRequired.getToken()) {
+ case "lunch" : {
+ RenderDocument renderDocument = new RenderDocument(LunchUtils.getLunchDocument());
+ addDirective(renderDocument);
+ break;
+ }
+ case "lunchBottom": {
+ String src = getSessionAttribute("lunchBottom");
+ if (StringUtils.isNotBlank(src)) {
+ LunchDocument document = LunchUtils.getLunchDocument();
+ document.getMainTemplate().getItems().add(LunchUtils.buildAudioComponent(src));
+ RenderDocument renderDocument = new RenderDocument(document);
+ addDirective(renderDocument);
+ setSessionAttribute("lunchBottom", null);
+ return new Response();
+ }
+ break;
+ }
}
+ } catch (Exception e) {
+ log.error(ExceptionUtils.getStackTrace(e));
}
return new Response();
}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java
index 630e5f2..32aefde 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/DplbotServiceUtil.java
@@ -5,7 +5,9 @@ import ai.qiwu.com.xiaoduhome.common.temple.CollectHistoryDocument;
import ai.qiwu.com.xiaoduhome.common.temple.CollectHistoryUtils;
import ai.qiwu.com.xiaoduhome.entity.primary.AppFavoriteTB;
import ai.qiwu.com.xiaoduhome.entity.primary.OnProductDetail;
+import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuCollectTB;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuHistoryBotIdTime;
+import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuHistoryTB;
import ai.qiwu.com.xiaoduhome.entity.secondary.XiaoDuOrderTB;
import ai.qiwu.com.xiaoduhome.pojo.*;
import ai.qiwu.com.xiaoduhome.pojo.data.ProjectData;
@@ -13,6 +15,8 @@ import ai.qiwu.com.xiaoduhome.pojo.data.UpdateUserCollectData;
import ai.qiwu.com.xiaoduhome.pojo.pageData.HistoryData;
import ai.qiwu.com.xiaoduhome.repository.primary.AppFavoriteTBRepository;
import ai.qiwu.com.xiaoduhome.repository.primary.AppFlowerTBTintRepository;
+import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuCollectRepository;
+import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuHistoryTBRepository;
import ai.qiwu.com.xiaoduhome.repository.secondary.XiaoDuOrderTbRepository;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
@@ -53,9 +57,12 @@ import static ai.qiwu.com.xiaoduhome.service.ScheduleServiceNew.curTime;
@Slf4j
public class DplbotServiceUtil {
final static String HOST_UTL;
+ private final static String HOST_UTL_TEMP;
static {
HOST_UTL = Config.getProperty("requestHost", "http://didi-gz5.jiaoyou365.com:18082/");
+ HOST_UTL_TEMP = Config.getProperty("requestHostTemp", "https://didi-gz5.jiaoyou365.com/temp/");
log.info("hostUrl:"+HOST_UTL);
+ log.info("hostUrl:"+HOST_UTL_TEMP);
}
private static final int CORE = Runtime.getRuntime().availableProcessors();
@@ -90,20 +97,22 @@ public class DplbotServiceUtil {
}
static String getUsUserId(String userId, String accessToken, String channelId) {
+ log.info("getUsUserId: userid:{}, USER_HISTORY:{}",userId,USER_HISTORY);
UserBehaviorData data = USER_HISTORY.get(userId);
String jytId;
if (data == null) {
- jytId = getUserIdByToken(accessToken, channelId);
- onLunchFillUserBehaviorData(userId, channelId, jytId);
+ log.info("getUsUserId: data is null");
+ jytId = getUserIdByToken(accessToken, channelId, userId);
+ onLunchFillUserBehaviorData(userId, channelId, jytId, true);
return jytId;
} else if (StringUtils.isBlank(data.getJytUserId())) {
- jytId = getUserIdByToken(accessToken, channelId);
+ jytId = getUserIdByToken(accessToken, channelId, userId);
data.setJytUserId(jytId);
}
return data.getJytUserId();
}
- static String getUserIdByToken(String accessToken, String channelId) {
+ static String getUserIdByToken(String accessToken, String channelId, String userId) {
try {
HashMap headers = new HashMap<>();
headers.put("App-Channel-Id", "JIAOYOUTIANXIA");
@@ -117,6 +126,7 @@ public class DplbotServiceUtil {
log.info("通过Token获取的用户在app端的id:{}", jytUserId);
// UserBehaviorData data = USER_HISTORY.computeIfAbsent(userId, s -> new UserBehaviorData());
// data.setJytUserId(jytUserId);
+// noticeOtherServer(4, jytUserId, null, null, userId, jytUserId, channelId, true);
return jytUserId;
}
} catch (Exception e) {
@@ -137,13 +147,21 @@ public class DplbotServiceUtil {
// });
// }
- static void onLunchFillUserBehaviorData(final String userId, final String channelId, final String jytUserId) {
+ static void onLunchFillUserBehaviorData(final String userId, final String channelId, final String jytUserId, final Boolean alreadyLoaded) {
POOL.submit(() -> {
+ onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId, alreadyLoaded);
+ });
+ }
+
+ static UserBehaviorData onLunchFillUserBehaviorDataInMaster(final String userId, final String channelId,
+ final String jytUserId, final Boolean alreadyLoaded) {
+ Map params = new HashMap<>();
+ params.put("userId", userId);
+ params.put("channelId", channelId);
+ params.put("jytUserId", jytUserId);
+ boolean success = false;
+ if (!alreadyLoaded || StringUtils.isNotBlank(jytUserId)) {
try {
- Map params = new HashMap<>();
- params.put("userId", URLEncoder.encode(userId, "UTF-8"));
- params.put("channelId", channelId);
- params.put("jytUserId", jytUserId);
String response = OkHttp3Utils.doGet(HOST_UTL+"/audio_box/behavior", params);
if (StringUtils.isNotBlank(response)) {
JSONObject result = JSON.parseObject(response);
@@ -153,49 +171,72 @@ public class DplbotServiceUtil {
Map botAccount2Flowers = JSON.parseObject(result.getJSONObject("flowers").toJSONString(), new TypeReference>(){});
Map botAccount2FavoriteTime = JSON.parseObject(result.getJSONObject("favorite").toJSONString(), new TypeReference>(){});
UserBehaviorData data = new UserBehaviorData();
- if (!CollectionUtils.isEmpty(botAccount2HistoryTime)) data.getUserBotId2History().putAll(botAccount2HistoryTime);
- if (!CollectionUtils.isEmpty(botAccount2FavoriteTime)) data.getUserBotId2Collected().putAll(botAccount2FavoriteTime);
- if (!CollectionUtils.isEmpty(botAccount2Flowers)) data.getUserBotId2Flowers().putAll(botAccount2Flowers);
+ if (!CollectionUtils.isEmpty(botAccount2HistoryTime)) data.setUserBotId2History(botAccount2HistoryTime);
+ if (!CollectionUtils.isEmpty(botAccount2FavoriteTime)) data.setUserBotId2Collected(botAccount2FavoriteTime);
+ if (!CollectionUtils.isEmpty(botAccount2Flowers)) data.setUserBotId2Flowers(botAccount2Flowers);
data.setJytUserId(jytUserId);
data.setChannel(channelId);
log.info("UserBehaviorData:"+data);
+ log.info("userId;"+userId);
+ success = true;
USER_HISTORY.put(userId, data);
+ log.info("USER_HISTORY:"+USER_HISTORY);
+ return data;
}
}
} catch (Exception e) {
- log.warn("onLunch,获取用户信息失败:"+userId);
+ log.warn("onLunchFillUserBehaviorDataInMaster,获取用户信息失败:"+userId);
}
- });
- }
-
- private static UserBehaviorData onLunchFillUserBehaviorDataInMaster(final String userId,
- final String channelId, final String jytUserId) {
- Map params = new HashMap<>();
- params.put("userId", userId);
- params.put("channelId", channelId);
- params.put("jytUserId", jytUserId);
- try {
- String response = OkHttp3Utils.doGet(HOST_UTL+"/audio_box/behavior", params);
- if (StringUtils.isNotBlank(response)) {
- JSONObject result = JSON.parseObject(response);
- if (NumberUtils.INTEGER_ONE.equals(result.getInteger("code"))) {
- result = result.getJSONObject("data");
- Map botAccount2HistoryTime = JSON.parseObject(result.getJSONObject("history").toJSONString(), new TypeReference>(){});
- Map botAccount2Flowers = JSON.parseObject(result.getJSONObject("flowers").toJSONString(), new TypeReference>(){});
- Map botAccount2FavoriteTime = JSON.parseObject(result.getJSONObject("favorite").toJSONString(), new TypeReference>(){});
- UserBehaviorData data = new UserBehaviorData();
- if (!CollectionUtils.isEmpty(botAccount2HistoryTime)) data.setUserBotId2History(botAccount2HistoryTime);
- if (!CollectionUtils.isEmpty(botAccount2FavoriteTime)) data.setUserBotId2Collected(botAccount2FavoriteTime);
- if (!CollectionUtils.isEmpty(botAccount2Flowers)) data.setUserBotId2Flowers(botAccount2Flowers);
- data.setJytUserId(jytUserId);
- data.setChannel(channelId);
- log.info("UserBehaviorData:"+data);
- USER_HISTORY.put(userId, data);
- return data;
+ } else {
+ log.warn("用户已登陆但jytUserId却为null");
+ }
+ if (!success) {
+ log.warn("未从gameditor处获取到信息,查询数据库信息");
+ XiaoDuHistoryTBRepository historyTBRepository = BaseHolder.getBean("xiaoDuHistoryTBRepository");
+ XiaoDuCollectRepository collectRepository = BaseHolder.getBean("xiaoDuCollectRepository");
+ XiaoDuOrderTbRepository orderTbRepository = BaseHolder.getBean("xiaoDuOrderTbRepository");
+ List historyTBS = historyTBRepository.getByXiaoduUserIdAndChannelId(userId, channelId);
+ List collectTBS = collectRepository.getByXiaoduUserIdAndChannelId(userId, channelId);
+ List orderTBS = orderTbRepository.getByXiaoduUserIdAndChannelIdAndStatus(userId, channelId, true);
+ UserBehaviorData data = new UserBehaviorData();
+ String jytId = jytUserId;
+ if (!CollectionUtils.isEmpty(historyTBS)) {
+ Map map = new HashMap<>();
+ for (XiaoDuHistoryTB xiaoDuHistoryTB: historyTBS) {
+ if (StringUtils.isBlank(jytId)) jytId = xiaoDuHistoryTB.getJytUserId();
+ String botAccount = ScheduleServiceNew.getWorkNameByBotAccount(xiaoDuHistoryTB.getWorkName());
+ if (StringUtils.isNotBlank(botAccount)) map.put(botAccount, xiaoDuHistoryTB.getUpdateTime().getTime());
+ else log.warn("onLunchFillUserBehaviorDataInMaster: 历史数据库存储信息与缓存不一致");
}
+ data.setUserBotId2History(map);
}
- } catch (Exception e) {
- log.warn("onLunch,获取用户信息失败:"+userId);
+ if (alreadyLoaded) {
+ if (!CollectionUtils.isEmpty(collectTBS)) {
+ Map map = new HashMap<>();
+ for (XiaoDuCollectTB xiaoDuCollectTB: collectTBS) {
+ if (StringUtils.isBlank(jytId)) jytId = xiaoDuCollectTB.getJytUserId();
+ String botAccount = ScheduleServiceNew.getBotAccountByWorkname(xiaoDuCollectTB.getWorkName());
+ if (StringUtils.isNotBlank(botAccount)) map.put(botAccount, xiaoDuCollectTB.getCreateTime().getTime());
+ else log.warn("onLunchFillUserBehaviorDataInMaster: 收藏数据库存储信息与缓存不一致");
+ }
+ data.setUserBotId2Collected(map);
+ }
+ if (!CollectionUtils.isEmpty(orderTBS)) {
+ Map map = new HashMap<>();
+ for (XiaoDuOrderTB xiaoDuOrderTB: orderTBS) {
+ if (StringUtils.isBlank(jytId)) jytId = xiaoDuOrderTB.getAppUserId();
+ String botAccount = ScheduleServiceNew.getWorkNameByBotAccount(xiaoDuOrderTB.getWorkName());
+ if (StringUtils.isNotBlank(botAccount)) map.put(botAccount, xiaoDuOrderTB.getNumber());
+ else log.warn("onLunchFillUserBehaviorDataInMaster: 送花数据库存储信息与缓存不一致");
+ }
+ data.setUserBotId2Flowers(map);
+ }
+ data.setJytUserId(jytId);
+ }
+ data.setChannel(channelId);
+ log.info("UserBehaviorData:"+data);
+ USER_HISTORY.put(userId, data);
+ return data;
}
return null;
}
@@ -231,8 +272,9 @@ public class DplbotServiceUtil {
if (accessToken != null) {
UserBehaviorData userData = USER_HISTORY.get(userId);
if (userData == null) {
- if (StringUtils.isBlank(jytUserId)) jytUserId = getUserIdByToken(accessToken, channelId);
- userData = onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId);
+ log.info("doesUserCollectThisBot: data is null");
+ if (StringUtils.isBlank(jytUserId)) jytUserId = getUserIdByToken(accessToken, channelId, userId);
+ userData = onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId, true);
if (userData == null) return false;
}
collected = userData.getUserBotId2Collected().containsKey(botID);
@@ -250,8 +292,9 @@ public class DplbotServiceUtil {
if (accessToken != null) {
UserBehaviorData data = USER_HISTORY.get(userID);
if (data == null) {
- if (StringUtils.isBlank(jytUserId)) jytUserId = getUserIdByToken(accessToken, channelId);
- data = onLunchFillUserBehaviorDataInMaster(userID, channelId, jytUserId);
+ log.info("getUserSendFlowerNum: data is null");
+ if (StringUtils.isBlank(jytUserId)) jytUserId = getUserIdByToken(accessToken, channelId, userID);
+ data = onLunchFillUserBehaviorDataInMaster(userID, channelId, jytUserId, true);
if (data == null) return 0L;
}
Long count = data.getUserBotId2Flowers().get(botAccount);
@@ -264,33 +307,99 @@ public class DplbotServiceUtil {
static boolean didUserCollecThisProduct(String botAccount, String userID,
String jytUserId, String channelId) {
UserBehaviorData data = USER_HISTORY.get(userID);
- if (data == null) data = onLunchFillUserBehaviorDataInMaster(userID, channelId, jytUserId);
+ if (data == null) {
+ log.info("didUserCollecThisProduct: data is null");
+ data = onLunchFillUserBehaviorDataInMaster(userID, channelId, jytUserId, true);
+ }
if (data == null) return false;
Long time = data.getUserBotId2Collected().get(botAccount);
return time != null;
}
- static void userUnCollectTheBot(final String userId, final String botAccount, String channelId,
+ static boolean userUnCollectTheBot(final String userId, final String botAccount, String channelId,
String jytUserId, String accessToken) {
+ if (StringUtils.isAnyBlank(channelId, botAccount, userId)) return false;
UserBehaviorData behaviorData = USER_HISTORY.get(userId);
if (behaviorData == null) {
- if (StringUtils.isBlank(jytUserId)) jytUserId = getUserIdByToken(accessToken, channelId);
- behaviorData = onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId);
+ log.info("userUnCollectTheBot: data is null");
+ if (StringUtils.isBlank(jytUserId)) jytUserId = getUserIdByToken(accessToken, channelId, userId);
+ behaviorData = onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId, true);
}
if (behaviorData != null) {
+ if (!behaviorData.getUserBotId2Collected().containsKey(botAccount)) return true;
behaviorData.getUserBotId2Collected().remove(botAccount);
+ if (StringUtils.isBlank(jytUserId)) {
+ jytUserId = behaviorData.getJytUserId();
+ if (StringUtils.isBlank(jytUserId)) jytUserId = getUserIdByToken(accessToken, channelId, userId);
+ if (StringUtils.isBlank(jytUserId)) return false;
+ }
+ updateTheUserCollectDataImmediately(jytUserId, channelId, botAccount, false);
+ noticeOtherServer(3, botAccount, null, false, userId, jytUserId, channelId, true);
+ final String jytId = jytUserId;
+ POOL.submit(() -> updateCollectTable(false, userId, channelId, botAccount, jytId));
+ return true;
}
+ return false;
}
- static void userCollectTheBot(String userId, String botAccount, String channelId, String jytUserId, String accessToken) {
+ private static void updateCollectTable(boolean collect, String userId, String channelId, String botAccount, String jytUserId) {
+ XiaoDuCollectRepository repository = BaseHolder.getBean("xiaoDuCollectRepository");
+ String workName = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
+ XiaoDuCollectTB tb = repository.getByXiaoduUserIdAndChannelIdAndWorkName(userId, channelId, workName);
+ if (tb == null && collect) {
+ tb = new XiaoDuCollectTB();
+ tb.setChannelId(channelId);
+ tb.setJytUserId(jytUserId);
+ tb.setWorkName(workName);
+ tb.setXiaoduUserId(userId);
+ repository.save(tb);
+ } else if (tb != null && !collect) {
+ repository.deleteById(tb.getId());
+ }
+ }
+
+ static void noticeOtherServer(int type, String botAccount, Long timeOrCount, Boolean collect,
+ String userId, String jytUserId, String channel, Boolean loaded) {
+ // 1:history 2:flower 3:collect 4:jytUserId 5:update all
+ NoticeReceiveData data = new NoticeReceiveData();
+ data.setBotAccount(botAccount);
+ data.setCollect(collect);
+ data.setTimeOrCount(timeOrCount);
+ data.setType(type);
+ data.setXiaoduUserId(userId);
+ data.setJytUserId(jytUserId);
+ data.setChannel(channel);
+ data.setLoaded(loaded);
+ String dataStr = JSON.toJSONString(data);
+ log.info("NoticeReceiveData:"+dataStr);
+ for (String host: ScheduleServiceNew.serverAddresses) {
+ OkHttp3Utils.doPostAsy(host+"xiaoduhome/notice", dataStr);
+ }
+ }
+
+ static boolean userCollectTheBot(String userId, String botAccount, String channelId, String jytUserId, String accessToken) {
+ if (StringUtils.isAnyBlank(botAccount, channelId, userId)) return false;
UserBehaviorData behaviorData = USER_HISTORY.get(userId);
if (behaviorData == null) {
- if (StringUtils.isBlank(jytUserId)) jytUserId = getUserIdByToken(accessToken, channelId);
- behaviorData = onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId);
+ log.info("userCollectTheBot: data is null");
+ if (StringUtils.isBlank(jytUserId)) jytUserId = getUserIdByToken(accessToken, channelId, userId);
+ behaviorData = onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId, true);
}
if (behaviorData != null) {
+ if (behaviorData.getUserBotId2Collected().containsKey(botAccount)) return true;
behaviorData.getUserBotId2Collected().put(botAccount, curTime);
+ if (StringUtils.isBlank(jytUserId)) {
+ jytUserId = behaviorData.getJytUserId();
+ if (StringUtils.isBlank(jytUserId)) jytUserId = getUserIdByToken(accessToken, channelId, userId);
+ if (StringUtils.isBlank(jytUserId)) return false;
+ }
+ updateTheUserCollectDataImmediately(jytUserId, channelId, botAccount, true);
+ noticeOtherServer(3, botAccount, ScheduleServiceNew.curTime, true, userId, jytUserId, channelId, true);
+ final String jytId = jytUserId;
+ POOL.submit(() -> updateCollectTable(true, userId, channelId, botAccount, jytId));
+ return true;
}
+ return false;
}
static Charge sendOneFlowerByCharge(String userId, String jytUserId, String accessToken, String trace, String channelId) {
@@ -310,11 +419,13 @@ public class DplbotServiceUtil {
botId = trace.substring(2);
}
XiaoDuOrderTbRepository repository = BaseHolder.getBean("xiaoDuOrderTbRepository");
- XiaoDuOrderTB response = repository.save(buildBeforePayPojo(botId, jytUserId, userId, unitPrice, orderId));
+ XiaoDuOrderTB orderTB = buildBeforePayPojo(botId, jytUserId, userId, unitPrice, orderId);
+ if (orderTB ==null) return null;
+ XiaoDuOrderTB response = repository.save(orderTB);
- if (response != null && response.getId() != null) {
+ if (response.getId() != null) {
String desc = new StringBuilder("感谢您赏赐给该作品的").append(1).append("朵鲜花").toString();
- String name = ScheduleServiceNew.getProjectByBotAccount(botId).getName();
+ String name = ScheduleServiceNew.getWorkNameByBotAccount(botId);
if (name != null) desc = new StringBuilder("感谢您赏赐给").append(name)
.append("的").append(1).append("朵鲜花").toString();
Charge charge = new Charge(amount, orderId, "鲜花", desc);
@@ -332,7 +443,9 @@ public class DplbotServiceUtil {
private static XiaoDuOrderTB buildBeforePayPojo(String botAccount, String appUserId, String userId, int unitPrice,
String orderId) {
XiaoDuOrderTB xiaoDuOrderTB = new XiaoDuOrderTB();
- xiaoDuOrderTB.setBotId(botAccount);
+ String workName = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
+ if (StringUtils.isBlank(workName)) return null;
+ xiaoDuOrderTB.setWorkName(workName);
xiaoDuOrderTB.setAppUserId(appUserId);
xiaoDuOrderTB.setXiaoduUserId(userId);
xiaoDuOrderTB.setUnitPrice(unitPrice);
@@ -345,11 +458,13 @@ public class DplbotServiceUtil {
return xiaoDuOrderTB;
}
- static boolean doesUserPlayed(String botAccount, String userId, String channelId) {
+ static boolean doesUserPlayed(String botAccount, String userId, String channelId, Boolean loaded) {
UserBehaviorData data = USER_HISTORY.get(userId);
- if (data == null) data = onLunchFillUserBehaviorDataInMaster(userId, channelId, null);
- if (data == null) return false;
- return data.getUserBotId2History().containsKey(botAccount);
+ if (data == null) {
+ log.info("doesUserPlayed: data is null");
+ data = onLunchFillUserBehaviorDataInMaster(userId, channelId, null, loaded);
+ }
+ return data != null && data.getUserBotId2History().containsKey(botAccount);
}
static void updateTheUserHistory(final String userId,final String botAccount, final String accessToken,
@@ -357,11 +472,13 @@ public class DplbotServiceUtil {
POOL.submit(() -> {
UserBehaviorData data = USER_HISTORY.get(userId);
if (data == null) {
+ log.info("updateTheUserHistory: data is null");
String jytUserId = null;
- if (accessToken != null) {
- jytUserId = getUserIdByToken(accessToken, channelId);
+ boolean loaded = StringUtils.isNotBlank(accessToken);
+ if (loaded) {
+ jytUserId = getUserIdByToken(accessToken, channelId, userId);
}
- onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId);
+ onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId, loaded);
} else {
data.getUserBotId2History().put(botAccount, curTime);
}
@@ -383,6 +500,25 @@ public class DplbotServiceUtil {
}
}
+ private static void updateTheUserCollectDataImmediately(String userId, String channelId, String botAccount, boolean collect) {
+ try {
+ String name = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
+ CollectInfo info = new CollectInfo();
+ info.setUserId(userId);
+ info.setChannelId(channelId);
+ info.setWorkName(name);
+ if (collect) {
+ OkHttp3Utils.doPostAsy(HOST_UTL_TEMP+"audio_box/collect", JSON.toJSONString(info));
+ log.info("test ansy");
+ } else {
+ OkHttp3Utils.doDelAsy(HOST_UTL_TEMP+"audio_box/collect", JSON.toJSONString(info));
+ log.info("test ansy");
+ }
+ } catch (Exception e) {
+ log.warn("更新历史记录信息出错:"+userId);
+ }
+ }
+
static boolean dealChargeCallback(ChargeEvent chargeEvent, final String userId, final String accessToken,
final String jytUserId, String workName, String channelId) {
Payload payload = chargeEvent.getPayload();
@@ -396,6 +532,7 @@ public class DplbotServiceUtil {
final String baiduOrderReferenceId = payload.getBaiduOrderReferenceId();
final String createTimestamp = payload.getAuthorizationDetails().getCreationTimestamp();
final String num = token.substring(sepIndex+1);
+
POOL.submit(() -> {
XiaoDuOrderTbRepository repository = BaseHolder.getBean("xiaoDuOrderTbRepository");
Long id = 0L;
@@ -441,22 +578,40 @@ public class DplbotServiceUtil {
log.info("支付发生错误,"+payload.getMessage());
POOL.submit(() -> {
XiaoDuOrderTbRepository repository = BaseHolder.getBean("xiaoDuOrderTbRepository");
- repository.deleteByBotIdAndChOrderId(botAccount, chOrderId);
+ repository.deleteByWorkNameAndChOrderId(ScheduleServiceNew.getWorkNameByBotAccount(botAccount), chOrderId);
});
return false;
}
}
static void updateTheUserBehaviorDataMark(final String userId, final String botAccount,
- final String accessToken, final String jytUserId) {
+ final String accessToken, final String jytUserId, final String channel) {
POOL.submit(() -> {
+ if (StringUtils.isAnyBlank(botAccount, userId)) return;
UserBehaviorData data = USER_HISTORY.get(userId);
if (data != null) {
- data.setMark((byte) 1);
+ log.info("updateTheUserBehaviorDataMark: data is null");
+ data.setMark(1);
data.getUserBotId2History().put(botAccount, curTime);
+ noticeOtherServer(1, botAccount, ScheduleServiceNew.curTime, false, userId, jytUserId, channel, accessToken!= null);
} else {
- onLunchFillUserBehaviorDataInMaster(userId, accessToken, jytUserId);
+ data = onLunchFillUserBehaviorDataInMaster(userId, channel, jytUserId, accessToken != null);
+ if (data != null) {
+ data.getUserBotId2History().put(botAccount, curTime);
+ noticeOtherServer(1, botAccount, ScheduleServiceNew.curTime, false, userId, jytUserId, channel, accessToken!= null);
+ }
+ }
+ XiaoDuHistoryTBRepository repository = BaseHolder.getBean("xiaoDuHistoryTBRepository");
+ String botName = ScheduleServiceNew.getWorkNameByBotAccount(botAccount);
+ XiaoDuHistoryTB tb = repository.getByXiaoduUserIdAndChannelIdAndWorkName(userId, channel, botName);
+ if (tb == null) {
+ tb = new XiaoDuHistoryTB();
+ tb.setChannelId(channel);
+ tb.setJytUserId(jytUserId);
+ tb.setXiaoduUserId(userId);
+ tb.setWorkName(botName);
}
+ repository.save(tb);
});
}
@@ -464,17 +619,23 @@ public class DplbotServiceUtil {
UserBehaviorData behaviorData = USER_HISTORY.get(userId);
int pageNum;
if (behaviorData == null) {
- if (StringUtils.isBlank(jytId)) jytId = getUserIdByToken(accessToken,channelId);
- behaviorData = onLunchFillUserBehaviorDataInMaster(userId, channelId, jytId);
+ log.info("getCollectPage: data is null");
+ if (StringUtils.isBlank(jytId)) jytId = getUserIdByToken(accessToken,channelId, userId);
+ behaviorData = onLunchFillUserBehaviorDataInMaster(userId, channelId, jytId, true);
if (behaviorData == null) return null;
}
Map userBotId2Collected = behaviorData.getUserBotId2Collected();
int bound = userBotId2Collected.size();
if (start >= bound) {
+ if (bound == 0) {
+ CollectHistoryDocument emptyMark = new CollectHistoryDocument();
+ emptyMark.setIdToken("1");
+ return emptyMark;
+ }
return null;
}
pageNum = bound/CO_HI_PAGE_SIZE + (bound%CO_HI_PAGE_SIZE == 0 ? 0 : 1);
- log.info("collect/history: pagesize:{},bound{}",pageNum,bound);
+// log.info("collect/history: pagesize:{},bound{}",pageNum,bound);
TreeMap order = new TreeMap<>((o1, o2) -> (o1 < o2) ? 1 : ((o1.equals(o2)) ? 0 : -1));
for (Map.Entry entry: userBotId2Collected.entrySet()) {
order.put(entry.getValue(), entry.getKey());
@@ -488,7 +649,7 @@ public class DplbotServiceUtil {
}
}
- log.info("favoriteProducts length:{}, start:{}", favoriteProducts.size(), start);
+// log.info("favoriteProducts length:{}, start:{}", favoriteProducts.size(), start);
if (favoriteProducts.size() == 0) return null;
ArrayList projectInfoList = new ArrayList<>();
int j = start+1;
@@ -522,13 +683,21 @@ public class DplbotServiceUtil {
UserBehaviorData behaviorData = USER_HISTORY.get(userId);
int pageNum = 0;
if (behaviorData == null) {
- if (StringUtils.isBlank(jytUserId) && StringUtils.isNotBlank(accessToken)) jytUserId = getUserIdByToken(accessToken, channelId);
- behaviorData = onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId);
+ log.info("getHistory: data is null");
+ if (StringUtils.isBlank(jytUserId) && StringUtils.isNotBlank(accessToken)) jytUserId = getUserIdByToken(accessToken, channelId, userId);
+ behaviorData = onLunchFillUserBehaviorDataInMaster(userId, channelId, jytUserId, accessToken != null);
}
if (behaviorData != null) {
try {
int bound = behaviorData.getUserBotId2History().size();
- if (start >= bound) return null;
+ if (start >= bound) {
+ if (bound == 0) {
+ CollectHistoryDocument emptyMark = new CollectHistoryDocument();
+ emptyMark.setIdToken("1");
+ return emptyMark;
+ }
+ return null;
+ }
pageNum = bound/CO_HI_PAGE_SIZE + (bound%CO_HI_PAGE_SIZE == 0 ? 0 : 1);
TreeMap order = new TreeMap<>((o1, o2) -> (o1 < o2) ? 1 : ((o1.equals(o2)) ? 0 : -1));
for (Map.Entry entry: behaviorData.getUserBotId2History().entrySet()) {
@@ -624,4 +793,33 @@ public class DplbotServiceUtil {
public static ThreadPoolExecutor getPool() {
return POOL;
}
+
+ public static void receiveNotice(NoticeReceiveData data) {
+ log.info("receiveNotice:"+data);
+ int type = data.getType();
+ if (type == 5) {
+ DplbotServiceUtil.onLunchFillUserBehaviorDataInMaster(data.getXiaoduUserId(), data.getChannel(), data.getJytUserId(), data.getLoaded());
+ return;
+ }
+ UserBehaviorData behaviorData = USER_HISTORY.get(data.getXiaoduUserId());
+ if (behaviorData == null) {
+ log.info("receiveNotice: data is null");
+ behaviorData = DplbotServiceUtil.onLunchFillUserBehaviorDataInMaster(data.getXiaoduUserId(), data.getChannel(), data.getJytUserId(), data.getLoaded());
+ if (behaviorData == null) {
+ log.warn("receiveNotice fill data failed");
+ return;
+ }
+ }
+ behaviorData.setMark(1);
+ if (behaviorData.getJytUserId() == null) behaviorData.setJytUserId(data.getJytUserId());
+ switch (type) {
+ case 1 : behaviorData.getUserBotId2History().put(data.getBotAccount(), data.getTimeOrCount()); break;
+ case 2 : behaviorData.getUserBotId2Flowers().put(data.getBotAccount(), data.getTimeOrCount()); break;
+ case 3 : behaviorData.getUserBotId2Collected().put(data.getBotAccount(), data.getTimeOrCount()); break;
+ }
+ }
+
+ public static void printCache() {
+ log.info("history cache:"+USER_HISTORY);
+ }
}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java
index a4ff962..b32df85 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/LoadBySMS.java
@@ -11,12 +11,15 @@ import ai.qiwu.com.xiaoduhome.pojo.TokenResponse;
import ai.qiwu.com.xiaoduhome.repository.primary.AppUserTBRepository;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.TimeUnit;
/**
* 处理验证码,令牌的请求
@@ -31,14 +34,17 @@ public class LoadBySMS {
private final AppUserTBRepository appUserTBRepository;
+ private final StringRedisTemplate stringRedisTemplate;
+
/**
* 手机号到TOKEN信息之间的映射
*/
- private static final ConcurrentHashMap CODE_TOKEN = new ConcurrentHashMap<>();
+// private static final ConcurrentHashMap CODE_TOKEN = new ConcurrentHashMap<>();
@Autowired
- public LoadBySMS(AppUserTBRepository appUserTBRepository) {
+ public LoadBySMS(AppUserTBRepository appUserTBRepository, StringRedisTemplate stringRedisTemplate) {
this.appUserTBRepository = appUserTBRepository;
+ this.stringRedisTemplate = stringRedisTemplate;
}
// /**
@@ -61,8 +67,9 @@ public class LoadBySMS {
}
String authorization = Utils.captchaAuthorization(phoneNumber);
int retCode = getCaptchaRequest(authorization);
- if (retCode == 0) {
- new Thread(new InsertUserInfoToAppUserTB(phoneNumber)).start();
+ if (retCode != 0) {
+ log.info("获取验证码失败");
+// new Thread(new InsertUserInfoToAppUserTB(phoneNumber)).start();
}
return retCode == 0;
}
@@ -120,7 +127,7 @@ public class LoadBySMS {
String tokenStr = OkHttp3Utils.doGet(XIAOWU_API.SDK_TOKEN, new HashMap<>(), headers);
// log.info("获取Token返回");
TokenResponse tokenResponse = JSON.parseObject(tokenStr, TokenResponse.class);
- log.info("获取Token返回信息:{}", tokenResponse);
+// log.info("获取Token返回信息:{}", tokenResponse);
if (tokenResponse.getRetcode() == 0) {
updateCodeToken(phoneNumber, tokenResponse);
return true;
@@ -142,7 +149,7 @@ public class LoadBySMS {
String smsStr = OkHttp3Utils.doGet(XIAOWU_API.CAPTCHA_SMS, new HashMap<>(), headers);
// log.info("发送验证码成功");
CaptchaSmsResponse captchaResponse = JSON.parseObject(smsStr, CaptchaSmsResponse.class);
-// log.info("获取验证码返回信息:{}", captchaResponse);
+ log.info("获取验证码返回信息:{}", captchaResponse);
return captchaResponse.getRetcode();
}
@@ -163,26 +170,18 @@ public class LoadBySMS {
* @param tokenResponse
*/
private void updateCodeToken(String phoneNumber, TokenResponse tokenResponse) {
- TokenHolder tokenHolder = CODE_TOKEN.get(phoneNumber);
- if (tokenHolder == null) {
+ String holderStr = stringRedisTemplate.opsForValue().get(phoneNumber);
+ TokenHolder tokenHolder;
+ if (StringUtils.isBlank(holderStr)) {
tokenHolder = new TokenHolder();
- CODE_TOKEN.put(phoneNumber, tokenHolder);
+ } else {
+ tokenHolder = JSON.parseObject(holderStr, TokenHolder.class);
+
}
tokenHolder.setExpire(tokenResponse.getExpire());
tokenHolder.setAccessToken(tokenResponse.getAccessToken());
tokenHolder.setRefreshToken(tokenResponse.getRefreshToken());
- }
-
-// static ConcurrentHashMap getUserToken() {
-// return USER_TOKEN;
-// }
-
- /**
- * 获取code-token的缓存map
- * @return
- */
- public static ConcurrentHashMap getCodeToken() {
- return CODE_TOKEN;
+ stringRedisTemplate.opsForValue().set(phoneNumber,JSON.toJSONString(tokenHolder), 30, TimeUnit.SECONDS);
}
public static TokenResponse getTokenByRefreshToken(String refreshToken) {
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java
index 9fe3ce8..295657c 100755
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleService.java
@@ -101,7 +101,7 @@ public class ScheduleService implements InitializingBean {
// });
// }
- @Scheduled(cron = "0 0 17 * * ?")
+// @Scheduled(cron = "0 0 17 * * ?")
public void initAllOnTableProductInfo() {
new Thread(() -> {
ALL_ON_PRODUCT = allOnProductInfoRepository.findAllByApplyStatusAndScoreNot(1, 0f);
@@ -149,7 +149,7 @@ public class ScheduleService implements InitializingBean {
//log.error("更新推荐页出错:{}", e.getMessage());
}
- @Scheduled(cron = "0 0 1 * * ?")
+// @Scheduled(cron = "0 0 1 * * ?")
public void initProductList() {
new Thread(() -> {
HashMap> ci = new HashMap<>();
@@ -165,20 +165,20 @@ public class ScheduleService implements InitializingBean {
//log.error("更新分类作品列表出错:{}", e.getMessage());
}
- @Scheduled(cron = "0 0 2 * * ?")
+// @Scheduled(cron = "0 0 2 * * ?")
public void deleteOverTimeHistory() {
new Thread(() -> {
xiaoDuHistoryTBRepository.deletePasted(System.currentTimeMillis()-259200000);//3 days
//xiaoDuHistoryTBRepository.deletePasted(System.currentTimeMillis()-300000);
List userIds = xiaoDuHistoryTBRepository.getAllUser();
for (String userId: userIds) {
- xiaoDuHistoryTBRepository.deleteOverTime(userId);
+// xiaoDuHistoryTBRepository.deleteOverTime(userId);
}
}).start();
//log.error("清理历史记录数据库出错:{}", e.toString());
}
- @Scheduled(cron = "0 0 3 * * ?")
+// @Scheduled(cron = "0 0 3 * * ?")
public void deleteUnPayedOrder() {
new Thread(() -> {
long boundTime = System.currentTimeMillis()-600000;
@@ -227,7 +227,7 @@ public class ScheduleService implements InitializingBean {
log.info("channelId2RecommendBotAcc:"+channelId2RecommendBotAcc);
}
- @Scheduled(cron = "0 */30 * * * ?")
+// @Scheduled(cron = "0 */30 * * * ?")
public void getChannelAllBots() {
String response;
JSONObject jsonObject;
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java
index 3a2c908..d3aa110 100644
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/service/ScheduleServiceNew.java
@@ -7,6 +7,7 @@ import ai.qiwu.com.xiaoduhome.pojo.data.ProjectData;
import ai.qiwu.com.xiaoduhome.pojo.data.ProjectDataResult;
import ai.qiwu.com.xiaoduhome.pojo.playAside.AsideImageResponse;
import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
@@ -34,6 +35,8 @@ public class ScheduleServiceNew implements InitializingBean {
private static volatile Map> channel2BotAccountList = new HashMap<>();
private static volatile Map> ASIDE_IMG = new HashMap<>();
+ public static volatile List serverAddresses = new ArrayList<>();
+
static final String FLOWER_UNIT_PRICE = Config.getProperty("unitPrice", UNIT_PRICE);
static volatile Long curTime = System.currentTimeMillis();
@@ -45,9 +48,12 @@ public class ScheduleServiceNew implements InitializingBean {
static volatile Map> jiaoyouChannel2Bots = new HashMap<>();
+ private static volatile Map channelId2RecommendBotAcc = new HashMap<>();
+
@Override
public void afterPropertiesSet() throws Exception {
getAllProjects();
+ getOtherServerAddress();
// buildLunchNewDocument
}
@@ -89,6 +95,36 @@ public class ScheduleServiceNew implements InitializingBean {
} catch (Exception e) {
log.warn("ScheduleServiceNew#getAllProjects获取所有作品信息失败:"+e);
}
+ String response = null;
+ int count = 1;
+ Map map = new HashMap<>();
+ do {
+ try {
+ response = OkHttp3Utils.doGet("http://didi-gz5.jiaoyou365.com:8070/api/sdk/botConfig/all");
+ JSONArray array = JSONObject.parseArray(response);
+ if (array != null) {
+ for (Object o: array) {
+ JSONObject object = (JSONObject) o;
+ if (Boolean.FALSE.equals(object.getBoolean("auth"))) {
+ map.put(object.getString("appChannelId"), object.getString("recommendBotAccount"));
+ }
+ }
+ }
+ } catch (Exception e) {
+ log.error("getAllChannelRecommendBotAccount:{}",e);
+ }
+ if (StringUtils.isBlank(response)) {
+ try {
+ Thread.sleep(count*5);
+ } catch (Exception e) {}
+ log.warn("第"+count+"次获取channelId失败");
+ }
+ count++;
+ } while (StringUtils.isBlank(response) && count < 5);
+ if (map.size() != 0) {
+ channelId2RecommendBotAcc = map;
+ }
+ log.info("channelId2RecommendBotAcc:"+channelId2RecommendBotAcc);
log.info("botAccount2Project:"+botAccount2Project.size());
log.info("name2Project:"+name2Project.size());
log.info("allProjects:"+allProjects.size());
@@ -97,31 +133,44 @@ public class ScheduleServiceNew implements InitializingBean {
}).start();
}
- @Scheduled(cron = "*/30 * * * * ?")
+ @Scheduled(cron = "0 */2 * * * ?")
public void updateTheCurTime() {
+ log.info("updateTheCurTime start");
curTime = System.currentTimeMillis();
}
- @Scheduled(cron = "0 * */1 * * ?")
+ private void getOtherServerAddress() {
+ String servers = Config.getProperty("serverAddress");
+ if (StringUtils.isNotBlank(servers)) {
+ serverAddresses = Arrays.asList(servers.split(","));
+ log.info("serverAddress:"+serverAddresses);
+ }
+ }
+
+ @Scheduled(initialDelay = 3600000, fixedRate = 3600000)
public void clearUserBehaviorData() {
DplbotServiceUtil.POOL.submit(() -> {
+ log.info("clearUserBehaviorData start");
List needClear = new ArrayList<>();
for (String userId: DplbotServiceUtil.USER_HISTORY.keySet()) {
UserBehaviorData data = DplbotServiceUtil.USER_HISTORY.get(userId);
if (data != null) {
- if (data.getMark() == 1) data.setMark((byte) 0);
+ if (data.getMark() == 1) data.setMark(0);
else {
needClear.add(userId);
- DplbotServiceUtil.updateTheUserCollectData(userId, data.getChannel());
}
}
}
- for (String userId: needClear) DplbotServiceUtil.USER_HISTORY.remove(userId);
+ for (String userId: needClear) {
+ log.info("clearUserBehaviorData:"+needClear);
+ DplbotServiceUtil.USER_HISTORY.remove(userId);
+ }
});
}
@Scheduled(cron = "0 */30 * * * ?")
public void getJiaoYouChannelRecordBots() {
+ log.info("getJiaoYouChannelRecordBots start");
String response;
JSONObject jsonObject;
int count = 1;
@@ -150,6 +199,25 @@ public class ScheduleServiceNew implements InitializingBean {
log.info("getChannelAllBots:"+jiaoyouChannel2Bots);
}
+ static String getWorkNameByBotAccount(String botAccount) {
+ if (StringUtils.isNotBlank(botAccount)) {
+ ProjectData data = botAccount2Project.get(botAccount);
+ if (data != null) {
+ return data.getName();
+ }
+ }
+ return null;
+ }
+
+ static String getBotAccountByWorkname(String workName) {
+ if (StringUtils.isNotBlank(workName)) {
+ ProjectData data = name2Project.get(workName);
+ if (data != null) {
+ return data.getBotAccount();
+ }
+ }
+ return null;
+ }
static ProjectData getProjectByName(String name) {
return name2Project.get(name);
@@ -184,4 +252,8 @@ public class ScheduleServiceNew implements InitializingBean {
if (url == null) url = DEFAULT_ASIDE_IMG_URL;
return url;
}
+
+ public static String getTheChannelBotAccount(String channel) {
+ return channelId2RecommendBotAcc.get(channel);
+ }
}
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/InitialData.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/InitialData.java
index 94edd90..2e6820e 100644
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/InitialData.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/InitialData.java
@@ -42,6 +42,8 @@ public class InitialData implements InitializingBean {
static {
recordMap = new HashMap<>();
audioMap = new HashMap<>();
+ childRecordMap = new HashMap<>();
+ childAudioMap = new HashMap<>();
botAccount2ItsCache = new HashMap<>();
}
@@ -178,8 +180,13 @@ public class InitialData implements InitializingBean {
}
}
- static String getRecordId(String botAccount, String npcName, String text) {
- Map> npcName2Md5Id = recordMap.get(botAccount);
+ static String getRecordId(String botAccount, String npcName, String text, int type) {
+ Map> npcName2Md5Id;
+ if (type == 4) {
+ npcName2Md5Id = childRecordMap.get(botAccount);
+ } else {
+ npcName2Md5Id = recordMap.get(botAccount);
+ }
if (npcName2Md5Id != null) {
Map md52Id = npcName2Md5Id.get(npcName);
if (md52Id != null) {
@@ -189,8 +196,13 @@ public class InitialData implements InitializingBean {
return null;
}
- static String getAudioId(String botAccount, String person, String mood, String text) {
- Map>> person2MoodMd5Id = audioMap.get(botAccount);
+ static String getAudioId(String botAccount, String person, String mood, String text, int type) {
+ Map>> person2MoodMd5Id;
+ if (type == 4) {
+ person2MoodMd5Id = childAudioMap.get(botAccount);
+ } else {
+ person2MoodMd5Id = audioMap.get(botAccount);
+ }
if (person2MoodMd5Id != null) {
Map> mood2Md5Id = person2MoodMd5Id.get(person);
if (mood2Md5Id != null) {
diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritRedisService.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritRedisService.java
index 38a2452..d41af85 100644
--- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritRedisService.java
+++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/spirit/SpiritRedisService.java
@@ -58,6 +58,17 @@ public class SpiritRedisService {
public static final String PREFIX_REDIS_IDLE = "audio_idle_";
+// private static final HashMap ADULT_HEADER;
+// private static final HashMap CHILD_HEADER;
+//
+// static {
+// ADULT_HEADER = new HashMap<>();
+// ADULT_HEADER.put("Content-Type", "application/json;charset=utf-8");
+// ADULT_HEADER.put("App-Channel-Id", "tianmao-jiaoyou-audio-adult-test");tianmao-jiaoyou-audio-child-test
+// CHILD_HEADER = new HashMap<>();
+// CHILD_HEADER.put("Content-Type", "application/json;charset=utf-8");
+// }
+
public SpiritRedisService(StringRedisTemplate stringRedisTemplate) {
this.stringRedisTemplate = stringRedisTemplate;
}
@@ -83,11 +94,11 @@ public class SpiritRedisService {
Long intentId = request.getIntentId();
try {
// long start = System.currentTimeMillis();
- String data = stringRedisTemplate.opsForValue().get(redisId);
// log.info("redis get cost:"+(System.currentTimeMillis()-start));
- if (StringUtils.isNotBlank(data)) {
+ if (Boolean.TRUE.equals(stringRedisTemplate.hasKey(redisId))) {
+ String data = stringRedisTemplate.opsForValue().get(redisId);
String redisIdleId = PREFIX_REDIS_IDLE+userId;
- if (data.equals("out")) {
+ if (data !=null && data.equals("out")) {
String idleNum = stringRedisTemplate.opsForValue().get(redisIdleId);
boolean firstIdle;
if ((firstIdle = StringUtils.isBlank(idleNum)) || idleNum.equals("1")) {
@@ -109,7 +120,7 @@ public class SpiritRedisService {
stringRedisTemplate.delete(redisIdleId);
stringRedisTemplate.delete(redisId);
}
- } else {
+ } else if (data != null){
stringRedisTemplate.delete(redisId);
stringRedisTemplate.delete(redisIdleId);
return buildAudioTaskResult(Arrays.asList(data.split(",")), intentId);
@@ -164,7 +175,7 @@ public class SpiritRedisService {
taskResult = buildTextTaskResult("不好意思晓悟没有听清您刚才说的话,请再重复一遍吧", intentId);
return taskResult;
}
- List list = dealResponse(response, userId);
+ List list = dealResponse(response, userId, type);
if (CollectionUtils.isEmpty(list)) {
StringBuilder builder = new StringBuilder();
response.getDialogs().forEach(dialog -> builder.append(buildText(dialog.getText())));
@@ -181,7 +192,7 @@ public class SpiritRedisService {
return taskResult;
}
- private List dealResponse(SpiritTerminateResponse response, String userId) {
+ private List dealResponse(SpiritTerminateResponse response, String userId, int type) {
List idList = new ArrayList<>();
List