From a83e92b947e9fc038984adc16f3bc62584830cd8 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sun, 17 Apr 2022 00:14:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E4=B8=AA=E4=BA=8C=E6=AC=A1=E5=85=83?= =?UTF-8?q?=E5=9B=BE=E6=BA=90API=E8=AF=95=E8=AF=95?= 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/setu/GetSeTu.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/QQBotApplication.java b/src/main/java/com/yutou/qqbot/QQBotApplication.java index bc2f32e..2bc2c99 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.14.1"; + public static final String version="QQBot v.1.2.15"; 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/setu/GetSeTu.java b/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java index fc5a999..ce744e0 100644 --- a/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java +++ b/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java @@ -30,7 +30,7 @@ public class GetSeTu extends Model { public void onMessage(Long qq, MessageEvent event, boolean isGroup) { super.onMessage(qq, event, isGroup); 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); HttpTools.download(json.getString("imgurl"), "setu.jpg", new DownloadInterface() {