天气预警

master
chaiyapeng 2024-08-31 20:00:55 +08:00
parent 8b6034dbde
commit 16aa321ea9
5 changed files with 13575 additions and 4 deletions

View File

@ -6,7 +6,8 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="d7f9db40-65da-4834-b29d-bbe0bd94d010" name="更改" comment="天气预警"> <list default="true" id="d7f9db40-65da-4834-b29d-bbe0bd94d010" name="更改" comment="天气预警">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cloud-port-server/src/main/java/com/muyu/cloud/mart/utils/WeatherInquire.java" beforeDir="false" afterPath="$PROJECT_DIR$/cloud-port-server/src/main/java/com/muyu/cloud/mart/utils/WeatherInquire.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/cloud-port-common/src/main/java/com/muyu/domain/Connector.java" beforeDir="false" afterPath="$PROJECT_DIR$/cloud-port-common/src/main/java/com/muyu/domain/Connector.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/cloud-port-server/src/main/java/com/muyu/cloud/mart/utils/IPLocation.java" beforeDir="false" afterPath="$PROJECT_DIR$/cloud-port-server/src/main/java/com/muyu/cloud/mart/utils/IPLocation.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/logs/cloud-etl/error.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-etl/error.log" afterDir="false" /> <change beforePath="$PROJECT_DIR$/logs/cloud-etl/error.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-etl/error.log" afterDir="false" />
<change beforePath="$PROJECT_DIR$/logs/cloud-etl/info.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-etl/info.log" afterDir="false" /> <change beforePath="$PROJECT_DIR$/logs/cloud-etl/info.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-etl/info.log" afterDir="false" />
</list> </list>
@ -133,6 +134,9 @@
<workItem from="1724977749654" duration="19570000" /> <workItem from="1724977749654" duration="19570000" />
<workItem from="1725021163409" duration="4773000" /> <workItem from="1725021163409" duration="4773000" />
<workItem from="1725031166067" duration="2512000" /> <workItem from="1725031166067" duration="2512000" />
<workItem from="1725037167793" duration="332000" />
<workItem from="1725064048520" duration="1272000" />
<workItem from="1725100536646" duration="1960000" />
</task> </task>
<task id="LOCAL-00001" summary="初始化"> <task id="LOCAL-00001" summary="初始化">
<option name="closed" value="true" /> <option name="closed" value="true" />
@ -302,7 +306,15 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1725019423469</updated> <updated>1725019423469</updated>
</task> </task>
<option name="localTasksCounter" value="22" /> <task id="LOCAL-00022" summary="天气预警">
<option name="closed" value="true" />
<created>1725037219394</created>
<option name="number" value="00022" />
<option name="presentableId" value="LOCAL-00022" />
<option name="project" value="LOCAL" />
<updated>1725037219394</updated>
</task>
<option name="localTasksCounter" value="23" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">

View File

@ -55,9 +55,17 @@ public class Connector {
*/ */
private Integer connectorFrequency; private Integer connectorFrequency;
/** /**
* * API_URL
*/ */
private String connectorAddress; private String connectorApiurl;
/**
* API_EYE
*/
private String connectorApikey;
/**
*
*/
private String connectorRequest;
/** /**
* *
*/ */

View File

@ -1,9 +1,13 @@
package com.muyu.cloud.mart.utils; package com.muyu.cloud.mart.utils;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.muyu.cloud.mart.mapper.MarketMapper;
import com.muyu.domain.Connector;
import com.muyu.domain.IpPlace; import com.muyu.domain.IpPlace;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import java.io.*; import java.io.*;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
import java.net.URL; import java.net.URL;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff