From 4dfbee6d083f7750a8856526049e55d701b0292f Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sun, 17 Apr 2022 15:47:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=A9=E5=9B=BE=E6=A8=A1=E5=9D=97=EF=BC=9A?= =?UTF-8?q?=E5=9B=BE=E6=BA=90=E6=94=B9=E6=88=90regular=EF=BC=8C=E5=87=8F?= =?UTF-8?q?=E5=B0=91=E5=9B=BE=E7=89=87=E5=A4=A7=E5=B0=8F=20=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E6=A8=A1=E5=9D=97=EF=BC=9A=E6=94=AF=E6=8C=81?= =?UTF-8?q?this=E5=85=B3=E9=94=AE=E8=AF=8D=E6=A0=87=E8=AF=86=E6=9C=AC?= =?UTF-8?q?=E7=BE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yutou/qqbot/MessageEvent/AdminMessage.java | 6 +++++- src/main/java/com/yutou/qqbot/QQBotApplication.java | 2 +- src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java b/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java index c22a44f..18cc956 100644 --- a/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java +++ b/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java @@ -97,7 +97,11 @@ public class AdminMessage extends Message { if (msgGroup.length <= 2) { addModel(msgGroup[1], null); } else { - addModel(msgGroup[1], msgGroup[2]); + if("this".equals(msgGroup[1])){ + addModel(sendQQ+"",msgGroup[2]); + }else { + addModel(msgGroup[1], msgGroup[2]); + } } } } diff --git a/src/main/java/com/yutou/qqbot/QQBotApplication.java b/src/main/java/com/yutou/qqbot/QQBotApplication.java index bb0c689..c09e2bf 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.16"; + public static final String version="QQBot v.1.2.17"; 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 47c78aa..ad03d0b 100644 --- a/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java +++ b/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java @@ -44,15 +44,15 @@ public class GetSeTu extends Model { if (isRun) { Log.i(event.getSource().getFromId() + " > " + msg); String key = msg.replace("来点", "").replace("色图", "").replace("涩图", ""); - String url = "https://api.lolicon.app/setu/v2?r18=0"; + String url = "https://api.lolicon.app/setu/v2?r18=0&size=regular"; if (isR18) { - url = "https://api.lolicon.app/setu/v2?r18=1"; + url = "https://api.lolicon.app/setu/v2?r18=1&size=regular"; } if (!StringUtils.isEmpty(key)) { if (isR18) { - url = "https://api.lolicon.app/setu/v2?tag=" + URLEncoder.encode(key, StandardCharsets.UTF_8) + "&r18=1"; + url = "https://api.lolicon.app/setu/v2?tag=" + URLEncoder.encode(key, StandardCharsets.UTF_8) + "&r18=1&size=regular"; } else { - url = "https://api.lolicon.app/setu/v2?tag=" + URLEncoder.encode(key, StandardCharsets.UTF_8) + "&r18=0"; + url = "https://api.lolicon.app/setu/v2?tag=" + URLEncoder.encode(key, StandardCharsets.UTF_8) + "&r18=0&size=regular"; } } String ret = HttpTools.get(url);