换个二次元图源API试试
This commit is contained in:
parent
f2acbd9dfb
commit
a83e92b947
@ -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.2.14.1";
|
public static final String version="QQBot v.1.2.15";
|
||||||
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);
|
||||||
|
@ -30,7 +30,7 @@ public class GetSeTu extends Model {
|
|||||||
public void onMessage(Long qq, MessageEvent event, boolean isGroup) {
|
public void onMessage(Long qq, MessageEvent event, boolean isGroup) {
|
||||||
super.onMessage(qq, event, isGroup);
|
super.onMessage(qq, event, isGroup);
|
||||||
if ("来点色图".equals(msg) || "来点涩图".equals(msg)) {
|
if ("来点色图".equals(msg) || "来点涩图".equals(msg)) {
|
||||||
String ret = HttpTools.get("https://api.ixiaowai.cn/api/api.php?return=json");
|
String ret = HttpTools.get("https://www.dmoe.cc/random.php?return=json");
|
||||||
JSONObject json = JSONObject.parseObject(ret);
|
JSONObject json = JSONObject.parseObject(ret);
|
||||||
HttpTools.download(json.getString("imgurl"),
|
HttpTools.download(json.getString("imgurl"),
|
||||||
"setu.jpg", new DownloadInterface() {
|
"setu.jpg", new DownloadInterface() {
|
||||||
|
Loading…
Reference in New Issue
Block a user