im客服问题修改

This commit is contained in:
liyj 2025-11-17 15:31:43 +08:00
parent 171cbe9ea1
commit d97523231d

View File

@ -17,10 +17,10 @@ import com.suisung.mall.im.service.ChatHistoryService;
import com.suisung.mall.im.service.LayGroupService; import com.suisung.mall.im.service.LayGroupService;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.socket.*; import org.springframework.web.socket.*;
import javax.annotation.Resource;
import java.io.IOException; import java.io.IOException;
import java.util.*; import java.util.*;
@ -34,22 +34,22 @@ public class MallsuiteImSocketHandler implements WebSocketHandler {
// private static Map<String, List<WebSocketSession>> userSession; // private static Map<String, List<WebSocketSession>> userSession;
// private static Map<String, List<WebSocketSession>> groupSession; // private static Map<String, List<WebSocketSession>> groupSession;
@Autowired @Resource
private DistributedSessionService distributedSessionService; private DistributedSessionService distributedSessionService;
@Autowired @Resource
private DistributedMessageService distributedMessageService; private DistributedMessageService distributedMessageService;
@Autowired @Resource
private LocalSessionManager localSessionManager; private LocalSessionManager localSessionManager;
@Autowired @Resource
private ChatHistoryService chatHistoryService; private ChatHistoryService chatHistoryService;
@Autowired @Resource
private LayGroupService layGroupService; private LayGroupService layGroupService;
@Autowired @Resource
private AccountService accountService; private AccountService accountService;
//用户上线后触发 //用户上线后触发