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