Skip to content

Commit 3444d55

Browse files
authored
Update WeatherActivity.java
1 parent 5118709 commit 3444d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter14/CoolWeather/app/src/main/java/com/coolweather/android/WeatherActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void onClick(View v) {
129129
* 根据天气id请求城市天气信息。
130130
*/
131131
public void requestWeather(final String weatherId) {
132-
String weatherUrl = "https://api.heweather.com/x3/weather?cityid=" + weatherId + "&key=bc0418b57b2d4918819d3974ac1285d9";
132+
String weatherUrl = "http://guolin.tech/api/weather?cityid=" + weatherId + "&key=bc0418b57b2d4918819d3974ac1285d9";
133133
HttpUtil.sendOkHttpRequest(weatherUrl, new Callback() {
134134
@Override
135135
public void onResponse(Call call, Response response) throws IOException {

0 commit comments

Comments
 (0)