From 1bf0336b72688ec510fd17388275381f2ad5658b Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sun, 2 Jan 2022 00:16:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B6=A9=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yutou/qqbot/models/setu/GetSeTu.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 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 0a43a89..3edcc49 100644 --- a/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java +++ b/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java @@ -26,9 +26,8 @@ public class GetSeTu extends Model { super.onMessage(qq, event, isGroup); if ("来点色图".equals(msg)||"来点涩图".equals(msg)){ String ret=HttpTools.get("https://api.ixiaowai.cn/api/api.php?return=json"); - System.out.println("ret = " + ret); JSONObject json=JSONObject.parseObject(ret); - HttpTools.download(json.getString("acgurl"), + HttpTools.download(json.getString("imgurl"), null, new DownloadInterface() { @Override public void onDownload(File file) { @@ -40,18 +39,4 @@ public class GetSeTu extends Model { } } - public static void main(String[] args) { - HttpTools.download("https://api.ixiaowai.cn/api/api.php", null, new DownloadInterface() { - @Override - public void onDownload(File file) { - super.onDownload(file); - System.out.println(file.getAbsoluteFile()); - } - - @Override - public void onError(Exception e) { - e.printStackTrace(); - } - }); - } }