From 7fa6c22ef8e66258aa7b78cee3f1d69a9c7be31a Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Fri, 8 Apr 2022 17:11:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=BF=9D=E5=AD=98=E5=9B=BE=E7=89=87=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/qqbot/models/Commands/Bangumi.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/models/Commands/Bangumi.java b/src/main/java/com/yutou/qqbot/models/Commands/Bangumi.java index eb5a43e..cc85463 100644 --- a/src/main/java/com/yutou/qqbot/models/Commands/Bangumi.java +++ b/src/main/java/com/yutou/qqbot/models/Commands/Bangumi.java @@ -57,7 +57,7 @@ public class Bangumi extends Model { info = info.replace("", ""); } } - sendImagesMsg(imgs,qq, info); + sendImagesMsg(imgs,qq, info,msg.replace(QQGroupCommands.QQ_BANGUMI_SUB,"").trim()); } } public static List getImages(String str) { @@ -75,7 +75,7 @@ public class Bangumi extends Model { private List files; private int index = 0; - private void sendImagesMsg(List imgs,Long qq, String text) { + private void sendImagesMsg(List imgs, Long qq, String text, String key) { files = new ArrayList<>(); index = 0; if (imgs.size() == 0) { @@ -83,7 +83,7 @@ public class Bangumi extends Model { return; } for (String img : imgs) { - HttpTools.download(img,img+".png", new DownloadInterface() { + HttpTools.download(img,key+".png", new DownloadInterface() { @Override public void onDownload(File file) { super.onDownload(file);