mirror of
https://github.com/crystelf/crystelf-core.git
synced 2025-07-04 06:39:18 +00:00
优化
This commit is contained in:
parent
d442d707d3
commit
56047155c3
@ -63,7 +63,8 @@ class WSMessageHandler {
|
||||
|
||||
private async handleReportBots(socket: WebSocket, msg: any) {
|
||||
logger.debug(`received reportBots: ${msg.data}`);
|
||||
await redisService.persistData('crystelf', msg, 'bots');
|
||||
const clientId = msg.data[0].client;
|
||||
await redisService.persistData('crystelfBots', msg.data[1], clientId);
|
||||
}
|
||||
|
||||
public registerHandler(type: string, handler: MessageHandler): void {
|
||||
|
Loading…
x
Reference in New Issue
Block a user