From d30947da06d1e1c7bc0260b5b2b1805f4f74a2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=81=E5=85=89?= Date: Wed, 14 Aug 2024 03:15:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4HTTP-API=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dreamvoid/miraimc/internal/config/PluginConfig.java | 9 --------- MiraiMC-Base/src/main/resources/config.yml | 7 ------- 2 files changed, 16 deletions(-) diff --git a/MiraiMC-Base/src/main/java/me/dreamvoid/miraimc/internal/config/PluginConfig.java b/MiraiMC-Base/src/main/java/me/dreamvoid/miraimc/internal/config/PluginConfig.java index f78210d3..6a0966e0 100644 --- a/MiraiMC-Base/src/main/java/me/dreamvoid/miraimc/internal/config/PluginConfig.java +++ b/MiraiMC-Base/src/main/java/me/dreamvoid/miraimc/internal/config/PluginConfig.java @@ -76,13 +76,4 @@ public static class Pool{ } } } - - public static class HttpApi{ - public static String Url = "http://localhost:8080"; - - public static class MessageFetch{ - public static int Interval = 10; - public static int Count = 10; - } - } } diff --git a/MiraiMC-Base/src/main/resources/config.yml b/MiraiMC-Base/src/main/resources/config.yml index 3e2a2ad2..683fdfef 100644 --- a/MiraiMC-Base/src/main/resources/config.yml +++ b/MiraiMC-Base/src/main/resources/config.yml @@ -9,7 +9,6 @@ general: mirai-working-dir: default mirai-core-version: "stable" maven-repo-url: "https://repo.huaweicloud.com/repository/maven/" - enable-http-api: false auto-open-qrcode-file: false log-events: true bot: @@ -22,7 +21,6 @@ bot: enable-friend-list-cache: false enable-group-member-list-cache: false save-interval-millis: 60000 - register-encrypt-service: false update-protocol-version: false database: type: sqlite @@ -44,8 +42,3 @@ database: maximumPoolSize: 15 keepaliveTime: 0 minimumIdle: 5 -http-api: - url: "http://localhost:8080" - message-fetch: - interval: 10 - count: 10