From c771f17140e3e64a07d4994f197c3d6d1713868f Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Thu, 13 Oct 2022 23:15:22 +0800 Subject: [PATCH] update --- src/main/java/com/yutou/nas/utils/BTDownloadManager.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/yutou/nas/utils/BTDownloadManager.java b/src/main/java/com/yutou/nas/utils/BTDownloadManager.java index 47d9848..2550ef2 100644 --- a/src/main/java/com/yutou/nas/utils/BTDownloadManager.java +++ b/src/main/java/com/yutou/nas/utils/BTDownloadManager.java @@ -118,16 +118,15 @@ public class BTDownloadManager { public synchronized static void done(String path, String filename, String hash1, String hash2, String tid) { //grep(path,filename); - System.out.println("path = " + path + ", filename = " + filename + ", hash1 = " + hash1 + ", hash2 = " + hash2 + ", tid = " + tid); String hash = StringUtils.isEmpty(hash1) ? StringUtils.isEmpty(hash2) ? null : hash2 : hash1; if (hash != null) { String map = RedisTools.getHashMap("rss", hash); - System.out.println("map = " + map); JSONObject item = JSON.parseObject(map); + String text="title"+item.getString("title")+"\n"+item.getString("link"); if (item.containsKey("thumbnail")) { - onSend(item.getString("thumbnail"), item, item.getJSONObject("enclosure").getString("link")); + QQBotManager.getInstance().sendMessage(item.getString("title")); } else { - onSend(null, item, item.getJSONObject("enclosure").getString("link")); + QQBotManager.getInstance().sendMessage(item.getString("thumbnail"),item.getString("title")); } } }