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