企业列表出来了
parent
a71cf05a50
commit
07d2c31f0b
|
@ -9,8 +9,6 @@
|
|||
<change afterPath="$PROJECT_DIR$/logs/cloud-system/error.2024-09-03.log" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/logs/cloud-system/info.2024-09-02.log" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/logs/cloud-system/info.2024-09-03.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cloud-market-common/src/main/java/com/muyu/market/config/MobileLocationConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/cloud-market-common/src/main/java/com/muyu/market/config/MobileLocationConfig.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/logs/cloud-system/error.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-system/error.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/logs/cloud-system/info.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/cloud-system/info.log" afterDir="false" />
|
||||
</list>
|
||||
|
@ -181,7 +179,7 @@
|
|||
<workItem from="1725517357652" duration="1395000" />
|
||||
<workItem from="1725528983357" duration="20000" />
|
||||
<workItem from="1725534330399" duration="6000" />
|
||||
<workItem from="1725535072504" duration="595000" />
|
||||
<workItem from="1725535072504" duration="924000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="初始化">
|
||||
<created>1724047244829</created>
|
||||
|
@ -393,7 +391,21 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1725535665636</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="31" />
|
||||
<task id="LOCAL-00031" summary="企业列表出来了">
|
||||
<created>1725535740781</created>
|
||||
<option name="number" value="00031" />
|
||||
<option name="presentableId" value="LOCAL-00031" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725535740781</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00032" summary="企业列表出来了">
|
||||
<created>1725535995757</created>
|
||||
<option name="number" value="00032" />
|
||||
<option name="presentableId" value="LOCAL-00032" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725535995757</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="33" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
|
|
|
@ -31,7 +31,7 @@ public class SimpleWeatherConfig {
|
|||
params.put("city", cityName);
|
||||
params.put("key", API_KEY);
|
||||
String queryParams = urlencode(params);
|
||||
|
||||
String msg = null;
|
||||
String response = doGet(API_URL, queryParams);
|
||||
try {
|
||||
JSONObject jsonObject = JSONObject.fromObject(response);
|
||||
|
@ -49,13 +49,15 @@ public class SimpleWeatherConfig {
|
|||
System.out.printf("风向:%s%n", realtime.getString("direct"));
|
||||
System.out.printf("风力:%s%n", realtime.getString("power"));
|
||||
System.out.printf("空气质量:%s%n", realtime.getString("aqi"));
|
||||
|
||||
msg = String.valueOf(result);
|
||||
} else {
|
||||
System.out.println("调用接口失败:" + jsonObject.getString("reason"));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return response;
|
||||
return msg;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue