diff --git a/code/java/天气灾害预警/.idea/.gitignore b/code/java/.idea/.gitignore similarity index 100% rename from code/java/天气灾害预警/.idea/.gitignore rename to code/java/.idea/.gitignore diff --git a/code/java/天气灾害预警/.idea/compiler.xml b/code/java/.idea/compiler.xml similarity index 100% rename from code/java/天气灾害预警/.idea/compiler.xml rename to code/java/.idea/compiler.xml diff --git a/code/java/天气灾害预警/.idea/disaster_warning.iml b/code/java/.idea/disaster_warning.iml similarity index 100% rename from code/java/天气灾害预警/.idea/disaster_warning.iml rename to code/java/.idea/disaster_warning.iml diff --git a/code/java/天气灾害预警/.idea/encodings.xml b/code/java/.idea/encodings.xml similarity index 100% rename from code/java/天气灾害预警/.idea/encodings.xml rename to code/java/.idea/encodings.xml diff --git a/code/java/天气灾害预警/.idea/jarRepositories.xml b/code/java/.idea/jarRepositories.xml similarity index 100% rename from code/java/天气灾害预警/.idea/jarRepositories.xml rename to code/java/.idea/jarRepositories.xml diff --git a/code/java/天气灾害预警/.idea/misc.xml b/code/java/.idea/misc.xml similarity index 100% rename from code/java/天气灾害预警/.idea/misc.xml rename to code/java/.idea/misc.xml diff --git a/code/java/天气灾害预警/.idea/runConfigurations/compile.xml b/code/java/.idea/runConfigurations/compile.xml similarity index 100% rename from code/java/天气灾害预警/.idea/runConfigurations/compile.xml rename to code/java/.idea/runConfigurations/compile.xml diff --git a/code/java/天气灾害预警/.idea/uiDesigner.xml b/code/java/.idea/uiDesigner.xml similarity index 100% rename from code/java/天气灾害预警/.idea/uiDesigner.xml rename to code/java/.idea/uiDesigner.xml diff --git a/code/java/天气灾害预警/.idea/vcs.xml b/code/java/.idea/vcs.xml similarity index 100% rename from code/java/天气灾害预警/.idea/vcs.xml rename to code/java/.idea/vcs.xml diff --git a/code/java/天气灾害预警/.idea/天气灾害预警.xml b/code/java/.idea/天气灾害预警.xml similarity index 100% rename from code/java/天气灾害预警/.idea/天气灾害预警.xml rename to code/java/.idea/天气灾害预警.xml diff --git a/code/java/天气灾害预警/config.json b/code/java/天气灾害预警/config.json new file mode 100644 index 0000000..bc47edd --- /dev/null +++ b/code/java/天气灾害预警/config.json @@ -0,0 +1,41 @@ +{ + "title": "天气灾害预警配置文件", + "key": "fe9fa8eeeb6f4301a92541eed565dd15", + "query_url": "https://devapi.qweather.com/v7/warning/now?", + "cities": [ + { + "city_name": "厦门", + "city_code": "101230201" + }, + { + "city_name": "同安", + "city_code": "101230202" + }, + { + "city_name": "思明", + "city_code": "101230203" + }, + { + "city_name": "海沧", + "city_code": "101230204" + }, + { + "city_name": "湖里", + "city_code": "101230205" + }, + { + "city_name": "集美", + "city_code": "101230206" + }, + { + "city_name": "翔安", + "city_code": "101230207" + } + ], + "notify_stuffs": [ + { + "stuff_name": "王炜", + "mobile_phone": "15959215339" + } + ] +} diff --git a/code/java/天气灾害预警/disaster_warning.iml b/code/java/天气灾害预警/disaster_warning.iml index cce7f67..90a51a4 100644 --- a/code/java/天气灾害预警/disaster_warning.iml +++ b/code/java/天气灾害预警/disaster_warning.iml @@ -1,52 +1,29 @@ - - - - - - - + + + + - - + - - - + + + + + + + + + + + + @@ -131,22 +108,5 @@ under the License. - - - + diff --git a/code/java/天气灾害预警/disaster_warning.ipr b/code/java/天气灾害预警/disaster_warning.ipr index 2556f6a..2844792 100644 --- a/code/java/天气灾害预警/disaster_warning.ipr +++ b/code/java/天气灾害预警/disaster_warning.ipr @@ -20,9 +20,6 @@ - - - - @@ -78,6 +67,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/java/天气灾害预警/disaster_warning.iws b/code/java/天气灾害预警/disaster_warning.iws index ca9cbbb..100a6b5 100644 --- a/code/java/天气灾害预警/disaster_warning.iws +++ b/code/java/天气灾害预警/disaster_warning.iws @@ -5,13 +5,30 @@ - - + + + + + + + + + + + + + + + + + - - - + + + + + + + + @@ -236,7 +260,9 @@