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();