From 92fc97e1287cc5e984a3b5768b4b07ab2a236e51 Mon Sep 17 00:00:00 2001 From: yutou Date: Thu, 14 Jan 2021 17:35:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AF=8F=E6=97=A5=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E8=A2=AB=E5=9B=BA=E5=AE=9A=E6=88=90true=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/tools/ToolsApplication.java | 2 +- src/main/java/com/yutou/tools/bangumi/BangumiTools.java | 5 +++-- src/main/java/com/yutou/tools/utils/QQBotManager.java | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/yutou/tools/ToolsApplication.java b/src/main/java/com/yutou/tools/ToolsApplication.java index b168a74..6417410 100644 --- a/src/main/java/com/yutou/tools/ToolsApplication.java +++ b/src/main/java/com/yutou/tools/ToolsApplication.java @@ -9,7 +9,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ToolsApplication { - public static final String version="1.0.15"; + public static final String version="1.0.15.01"; public static void main(String[] args) { System.out.println("当前版本号:"+version); diff --git a/src/main/java/com/yutou/tools/bangumi/BangumiTools.java b/src/main/java/com/yutou/tools/bangumi/BangumiTools.java index 3c5ffd5..cd7856e 100644 --- a/src/main/java/com/yutou/tools/bangumi/BangumiTools.java +++ b/src/main/java/com/yutou/tools/bangumi/BangumiTools.java @@ -190,8 +190,9 @@ public class BangumiTools { * @return 番剧列表 */ public static String reportToDayBangumi() { - if (!RedisTools.get("reportToDayBangumi").equals("true")) { - RedisTools.set("reportToDayBangumi", "true"); + String toDayTime = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); + if (!RedisTools.get("reportToDayBangumi").equals(toDayTime)) { + RedisTools.set("reportToDayBangumi", toDayTime); StringBuilder builder = new StringBuilder(); JSONObject toDay = getBangumi(0); if (toDay == null) { diff --git a/src/main/java/com/yutou/tools/utils/QQBotManager.java b/src/main/java/com/yutou/tools/utils/QQBotManager.java index bb26d3e..1638ffb 100644 --- a/src/main/java/com/yutou/tools/utils/QQBotManager.java +++ b/src/main/java/com/yutou/tools/utils/QQBotManager.java @@ -120,7 +120,6 @@ public class QQBotManager { public String sendMessage(String text) { if (bot != null) { try { - System.out.println("发送QQ"); return Objects.requireNonNull(bot.getGroup(qqGroup)).sendMessage(text).toString(); } catch (Exception e) { e.printStackTrace();