From 409c12b76e0c367b93ceee334dda8990a0c61044 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sun, 10 Apr 2022 09:22:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=91=B8=E9=B1=BC=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/qqbot/QQBotApplication.java | 2 +- src/main/java/com/yutou/qqbot/models/Commands/Moyu.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/QQBotApplication.java b/src/main/java/com/yutou/qqbot/QQBotApplication.java index 37c6311..aef9364 100644 --- a/src/main/java/com/yutou/qqbot/QQBotApplication.java +++ b/src/main/java/com/yutou/qqbot/QQBotApplication.java @@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class QQBotApplication { - public static final String version="QQBot v.1.2.12"; + public static final String version="QQBot v.1.2.13"; public static void main(String[] args) { System.out.println("version = " + version); SpringApplication.run(QQBotApplication.class, args); diff --git a/src/main/java/com/yutou/qqbot/models/Commands/Moyu.java b/src/main/java/com/yutou/qqbot/models/Commands/Moyu.java index 35dab12..04c21df 100644 --- a/src/main/java/com/yutou/qqbot/models/Commands/Moyu.java +++ b/src/main/java/com/yutou/qqbot/models/Commands/Moyu.java @@ -37,7 +37,7 @@ public class Moyu extends Model { @Override public void onTime(Long qq, String time) { super.onTime(qq, time); - if("09:00:00".equals(time)){ + if("10:00:00".equals(time)){ Log.i("发送摸鱼报告:"+qq); send(qq); } @@ -46,11 +46,12 @@ public class Moyu extends Model { private void send(Long qq){ String ret = HttpTools.get("https://api.j4u.ink/proxy/remote/moyu.json"); JSONObject json=JSONObject.parseObject(ret); - HttpTools.download(json.getJSONObject("data").getString("moyu_url"), "moyu.jpg", new DownloadInterface() { + HttpTools.download(json.getJSONObject("data").getString("moyu_url"), qq+"_moyu.jpg", new DownloadInterface() { @Override public void onDownload(File file) { super.onDownload(file); - QQBotManager.getInstance().sendMessage(file,qq,""); + String ret = QQBotManager.getInstance().sendMessage(file, qq, ""); + Log.i("成功发送消息 qq="+qq+" ret="+ret); } }); }