diff --git a/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java b/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java index 8cc7018..abc15d6 100644 --- a/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java +++ b/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java @@ -84,9 +84,7 @@ public class GetSeTu extends Model { for (Object tags : item.getJSONArray("tags")) { builder.append(tags).append("、"); } - System.out.println("json = " + json); - System.out.println("url = " + item.getJSONObject("urls").getString("original")); - HttpTools.download(item.getJSONObject("urls").getString("original"), + HttpTools.download(item.getJSONObject("urls").getString("regular"), System.currentTimeMillis() + "_setu.jpg", true , new DownloadInterface() { diff --git a/src/main/java/com/yutou/qqbot/utlis/HttpTools.java b/src/main/java/com/yutou/qqbot/utlis/HttpTools.java index 07c1810..e1acc82 100644 --- a/src/main/java/com/yutou/qqbot/utlis/HttpTools.java +++ b/src/main/java/com/yutou/qqbot/utlis/HttpTools.java @@ -197,7 +197,7 @@ public class HttpTools { } connection.addRequestProperty("User-Agent", getExtUa()); - Log.i("获取到网络请求:"+((HttpsURLConnection)connection).getResponseCode()); + // Log.i("获取到网络请求:"+((HttpsURLConnection)connection).getResponseCode()); InputStream inputStream = connection.getInputStream(); jar = new File(downloadPath + saveName + "_tmp.tmp");