feat: 添加注入前探测 QQ 登录状态功能 (#56)
通过扫描 QQ 进程开放的 9210-9219 端口,在注入 DLL 前即可获取登录状态和账号信息。 - 新增端口探测模块 (qq-port-probe.ts) - 前端添加"探测登录"按钮和状态显示对话框 - 兼容 Windows 和 Linux 平台 - 修复端口查询逻辑,正确识别每个 PID 开放的端口 Co-authored-by: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
1 parent
1db287d8cc
commit
312df29b5f
8 files changed
+353
No files matched your search
@@ -53,6 +53,7 @@ class HttpApiClient implements ApiClient {
|
||||
load: (pid) => this.postJson<ProcessActionResult>(`/api/processes/${pid}/load`),
|
||||
unload: (pid) => this.postJson<ProcessActionResult>(`/api/processes/${pid}/unload`),
|
||||
refresh: (pid) => this.postJson<ProcessActionResult>(`/api/processes/${pid}/refresh`),
|
||||
probeLoginInfo: (pid) => this.getJson<{ info: unknown }>(`/api/processes/${pid}/probe-login`).then((d) => d.info ?? null),
|
||||
};
|
||||
|
||||
this.config = {
|
||||
|
||||
@@ -57,6 +57,7 @@ export interface ApiClient {
|
||||
load(pid: number): Promise<ProcessActionResult>;
|
||||
unload(pid: number): Promise<ProcessActionResult>;
|
||||
refresh(pid: number): Promise<ProcessActionResult>;
|
||||
probeLoginInfo(pid: number): Promise<unknown>;
|
||||
};
|
||||
|
||||
// ---- OneBotInstance per-UIN config ----
|
||||
|
||||
Reference in new issue
Block a user