仰望星辰工作室

refactor: remove connector dead endpoints

X xiaole 提交于 2026-07-31 16:27 · 13284a8 ·父提交 d2c3ed5
refactor: remove connector dead endpoints
2 个文件变更 +1 -36 1181469655@qq.com
•plugins/mnbt_connector/README.md +1 -3
•plugins/mnbt_connector/mnbt_connector_main.py +0 -33
变更内容
diff --git a/plugins/mnbt_connector/README.md b/plugins/mnbt_connector/README.md
index 3b3ce9c..75388fb 100644
--- a/plugins/mnbt_connector/README.md
+++ b/plugins/mnbt_connector/README.md
@@ -24,7 +24,7 @@ MNBT 私有节点宝塔面板插件。支持文件扫描、站点访问统计等
 │                                                                     │
 │  mnbt_connector_main.py (BT 面板插件 API 入口)                       │
 │    ├─ get_status / start / stop / run_once                           │
-│    ├─ get_scan_results / get_task_matches / trigger_full_scan        │
+│    ├─ trigger_full_scan                                               │
 │    └─ get_site_list / get_site_detail / get_site_trend / ...         │
 │         ↑                                                           │
 │  maxiaole.db (SQLite)  ←── 查询数据                                  │
@@ -82,8 +82,6 @@ MNBT PHP → bt_api.php → BT 面板鉴权 → 插件 API → 查询 SQLite →
 | `start` | - | 启动工作进程 |
 | `stop` | - | 停止工作进程 |
 | `run_once` | - | 执行一次工作周期 |
-| `get_scan_results` | - | 违禁词扫描记录 |
-| `get_task_matches` | task_id | 指定扫描任务的命中详情 |
 | `trigger_full_scan` | - | 触发全量扫描 |
 | **站点统计** | | |
 | `get_site_list` | - | 所有站点 + 今日 PV/UV/流量 |
diff --git a/plugins/mnbt_connector/mnbt_connector_main.py b/plugins/mnbt_connector/mnbt_connector_main.py
index 2d07c22..54eafa6 100644
--- a/plugins/mnbt_connector/mnbt_connector_main.py
+++ b/plugins/mnbt_connector/mnbt_connector_main.py
@@ -459,24 +459,6 @@ class mnbt_connector_main(StatsAPIMixin):
                 "data": None,
             }
 
-    def get_scan_results(self, args):
-        config = self._read_config()
-        if not config.get("mnbt_url"):
-            return {"status": True, "data": []}
-
-        try:
-            return {
-                "status": True,
-                "msg": "扫描结果需要从 MNBT 后台查看",
-                "data": [],
-            }
-        except Exception as exc:
-            return {
-                "status": False,
-                "msg": str(exc),
-                "data": [],
-            }
-
     def trigger_full_scan(self, args):
         config = self._read_config()
         if not config.get("mnbt_url"):
@@ -494,21 +476,6 @@ class mnbt_connector_main(StatsAPIMixin):
             "msg": "全量扫描已触发" if result.returncode == 0 else result.stderr,
         }
 
-    def get_task_matches(self, args):
-        task_id = args.get("task_id", "")
-        if not task_id:
-            return {"status": False, "msg": "缺少任务ID", "data": []}
-
-        config = self._read_config()
-        if not config.get("mnbt_url"):
-            return {"status": True, "data": []}
-
-        return {
-            "status": True,
-            "msg": "命中记录需要从 MNBT 后台查看",
-            "data": [],
-        }
-
 
 if __name__ == "__main__":
     import sys