调整摸鱼时间

This commit is contained in:
Yutousama 2022-04-10 09:22:48 +08:00
parent ac4466c374
commit 409c12b76e
2 changed files with 5 additions and 4 deletions

View File

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

View File

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