chore(spike): retire KickNT force-offline probes, keep read-only body capture
Conclude the spike on the inbound `trpc.qq_new_tech.status_svc.StatusService.KickNT` push and remove its throwaway instrumentation: - Bridge: drop the outbound send probe. - HookSession: drop the loggedIn-gate bypass; restore `if (!this.loggedIn) return;`. - HookManager: drop the disconnect-timing log. Keep one read-only `[KICK-BODY]` probe in Bridge that logs the KickNT push body (hex + utf8) so the reason fields (tipsTitle / tipsDesc) can be reversed for the upcoming notification reason-enrichment. Remove once captured.
This commit is contained in:
3 files changed
+11
-19
No files matched your search
@@ -251,7 +251,6 @@ export class HookManager {
|
||||
this.bridgeManager.onHookLogin(pid, uin, sender);
|
||||
});
|
||||
session.on('disconnected', (wasLoggedIn: boolean) => {
|
||||
this.log.warn('[SPIKE] disconnected T2=%d PID=%d wasLoggedIn=%s', Date.now(), pid, wasLoggedIn); // SPIKE PROBE (亡语 Q2) — 验完即删
|
||||
if (wasLoggedIn) this.bridgeManager.onPidDisconnected(pid);
|
||||
});
|
||||
session.on('disposed', () => {
|
||||
|
||||
@@ -402,11 +402,7 @@ export class HookSession extends EventEmitter {
|
||||
}
|
||||
|
||||
private handlePacket(packet: QqHookPacket): void {
|
||||
// ── SPIKE PROBE (亡语 Q2) — 验完即删: KickNT 必须在 loggedIn 翻 false 后仍放行 ──
|
||||
const __spikeKick = packet.cmd === 'trpc.qq_new_tech.status_svc.StatusService.KickNT';
|
||||
if (__spikeKick) this.log.warn('[SPIKE] KickNT@pipe T0pipe=%d PID=%d loggedIn=%s', Date.now(), this.pid, this.loggedIn);
|
||||
if (!this.loggedIn && !__spikeKick) return; // SPIKE: 原为 `if (!this.loggedIn) return;`
|
||||
// ── /SPIKE PROBE ──
|
||||
if (!this.loggedIn) return;
|
||||
const uin = packet.uin || this._uin;
|
||||
if (!isRealUin(uin)) return;
|
||||
if (!this.onPacket) return;
|
||||
|
||||
Reference in new issue
Block a user