Compare commits
2 Commits
4f5bcc9df3
...
8df36edd2d
Author | SHA1 | Date | |
---|---|---|---|
8df36edd2d | |||
808798028f |
@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class QQBotApplication {
|
public class QQBotApplication {
|
||||||
public static final String version="QQBot v.1.4b.1";
|
public static final String version="QQBot v.1.4b.2";
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println("version = " + version);
|
System.out.println("version = " + version);
|
||||||
SpringApplication.run(QQBotApplication.class, args);
|
SpringApplication.run(QQBotApplication.class, args);
|
||||||
|
@ -51,9 +51,9 @@ public class Moyu extends Model {
|
|||||||
|
|
||||||
private void downloadImage(boolean isSend, Long qq) {
|
private void downloadImage(boolean isSend, Long qq) {
|
||||||
Log.i(this, "下载图片");
|
Log.i(this, "下载图片");
|
||||||
String ret = HttpTools.get("https://api.j4u.ink/v1/store/other/proxy/remote/moyu.json");
|
String ret = HttpTools.get("https://api.vvhan.com/api/moyu?type=json");
|
||||||
JSONObject json = JSON.parseObject(ret);
|
JSONObject json = JSON.parseObject(ret);
|
||||||
HttpTools.download(json.getJSONObject("data").getString("moyu_url"), AppTools.getToDayTime() + "_moyu.jpg", new DownloadInterface() {
|
HttpTools.download(json.getString("url"), AppTools.getToDayTime() + "_moyu.jpg", new DownloadInterface() {
|
||||||
int count = 3;
|
int count = 3;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -86,4 +86,8 @@ public class Moyu extends Model {
|
|||||||
downloadImage(true, qq);
|
downloadImage(true, qq);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user