From d84031fb268087acf876b5f287f0e5fb568a626b Mon Sep 17 00:00:00 2001 From: zhongzb <972627721@qq.com> Date: Tue, 5 Sep 2023 22:33:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=A2=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mallchat/common/user/service/impl/WebSocketServiceImpl.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/WebSocketServiceImpl.java b/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/WebSocketServiceImpl.java index 492f227..4ac23a1 100644 --- a/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/WebSocketServiceImpl.java +++ b/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/WebSocketServiceImpl.java @@ -3,7 +3,6 @@ package com.abin.mallchat.common.user.service.impl; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.ObjectUtil; import cn.hutool.json.JSONUtil; -import com.abin.mallchat.common.common.annotation.FrequencyControl; import com.abin.mallchat.common.common.config.ThreadPoolConfig; import com.abin.mallchat.common.common.constant.RedisKey; import com.abin.mallchat.common.common.event.UserOfflineEvent; @@ -104,7 +103,6 @@ public class WebSocketServiceImpl implements WebSocketService { */ @SneakyThrows @Override - @FrequencyControl(time = 1000, count = 50, spEl = "T(com.abin.mallchat.common.websocket.NettyUtil).getAttr(#channel,T(com.abin.mallchat.common.websocket.NettyUtil).IP)") public void handleLoginReq(Channel channel) { //生成随机不重复的登录码,并将channel存在本地cache中 Integer code = generateLoginCode(channel);