From d5da7840336ab077af0ccb304396dbb019e22fb8 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sun, 17 Apr 2022 21:57:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=A9=E5=9B=BE=E6=A8=A1=E5=9D=97=EF=BC=9A?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=AD=A3=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java | 4 +--- src/main/java/com/yutou/qqbot/utlis/HttpTools.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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");