From 56e55bab447682fcc560ed78832f0d11d1e74892 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sat, 15 Oct 2022 12:09:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=E4=BF=AE=E5=A4=8DBT=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=90=8E=E6=9C=AA=E5=88=B7=E6=96=B0=E5=BA=93=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20fix=E4=BF=AE=E5=A4=8Dbt=E9=80=9A=E7=9F=A5=E7=9A=84?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=20fix=E4=BF=AE=E5=A4=8Dbt=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=97=B6=E6=B2=A1=E6=9C=89=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/nas/NasApplication.java | 2 +- src/main/java/com/yutou/nas/utils/BTDownloadManager.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/yutou/nas/NasApplication.java b/src/main/java/com/yutou/nas/NasApplication.java index 1d4605e..47167e6 100644 --- a/src/main/java/com/yutou/nas/NasApplication.java +++ b/src/main/java/com/yutou/nas/NasApplication.java @@ -12,7 +12,7 @@ import org.springframework.context.annotation.Import; @Import(DmhyRssDownloadManager.class) @SpringBootApplication public class NasApplication { - public static final String version = "1.2.17.2"; + public static final String version = "1.2.17.3"; public static void main(String[] args) { SpringApplication.run(NasApplication.class, args); diff --git a/src/main/java/com/yutou/nas/utils/BTDownloadManager.java b/src/main/java/com/yutou/nas/utils/BTDownloadManager.java index c79a32b..53cf679 100644 --- a/src/main/java/com/yutou/nas/utils/BTDownloadManager.java +++ b/src/main/java/com/yutou/nas/utils/BTDownloadManager.java @@ -117,13 +117,13 @@ public class BTDownloadManager { } public synchronized static void done(String path, String filename, String hash1, String hash2, String tid) { - //grep(path,filename); + grep(path,filename); String hash = StringUtils.isEmpty(hash1) ? StringUtils.isEmpty(hash2) ? null : hash2 : hash1; if (hash != null) { String map = RedisTools.getHashMap("rss", hash); JSONObject item = JSON.parseObject(map); - String text="添加到库:"+item.getString("title")+"\n大妈之家地址:"+item.getString("link"); - if (item.containsKey("thumbnail")) { + String text="添加到库:"+item.getString("title")+"\n动漫花园地址:"+item.getString("link"); + if (!item.containsKey("thumbnail")) { QQBotManager.getInstance().sendMessage(734332887,text); } else { QQBotManager.getInstance().sendMessage(734332887,item.getString("thumbnail"),text);