From 084d8901e964020251966e76400541c258d49bd5 Mon Sep 17 00:00:00 2001 From: yutou <583819556@qq.com> Date: Wed, 2 Aug 2023 09:42:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E6=91=B8=E9=B1=BC=E6=97=A5?= =?UTF-8?q?=E5=8E=86=E7=9A=84api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/qqbot/models/Commands/Moyu.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/models/Commands/Moyu.java b/src/main/java/com/yutou/qqbot/models/Commands/Moyu.java index 7db6987..ca4ecf7 100644 --- a/src/main/java/com/yutou/qqbot/models/Commands/Moyu.java +++ b/src/main/java/com/yutou/qqbot/models/Commands/Moyu.java @@ -51,9 +51,9 @@ public class Moyu extends Model { private void downloadImage(boolean isSend, Long qq) { Log.i(this, "下载图片"); - String ret = HttpTools.get("https://api.vvhan.com/api/moyu?type=json"); + String ret = HttpTools.get("https://api.emoao.com/api/moyu?type=json"); JSONObject json = JSON.parseObject(ret); - HttpTools.download(json.getString("url"), AppTools.getToDayTime() + "_moyu.jpg", new DownloadInterface() { + HttpTools.download(json.getString("imgurl"), AppTools.getToDayTime() + "_moyu.jpg", new DownloadInterface() { int count = 3; @Override