feat/multi-channel-framework [AC-INIT]合并功能代码 #12

Merged
MerCry merged 37 commits from feat/multi-channel-framework into main 2026-02-24 03:55:00 +00:00
1 changed files with 9 additions and 9 deletions
Showing only changes of commit 84edbccb1b - Show all commits

View File

@ -15,6 +15,7 @@ import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@ -129,15 +130,14 @@ public class MessageRouterServiceImpl implements MessageRouterService {
log.info("[AC-MCA-10] 分发到人工客服: sessionId={}, manualCsId={}", log.info("[AC-MCA-10] 分发到人工客服: sessionId={}, manualCsId={}",
session.getSessionId(), session.getManualCsId()); session.getSessionId(), session.getManualCsId());
Map<String, Object> wsMessage = Map.of( Map<String, Object> wsMessage = new HashMap<>();
"type", "customer_message", wsMessage.put("type", "customer_message");
"sessionId", session.getSessionId(), wsMessage.put("sessionId", session.getSessionId());
"content", message.getContent(), wsMessage.put("content", message.getContent());
"msgType", message.getMsgType(), wsMessage.put("msgType", message.getMsgType());
"customerId", message.getCustomerId(), wsMessage.put("customerId", message.getCustomerId());
"channelType", message.getChannelType(), wsMessage.put("channelType", message.getChannelType());
"timestamp", System.currentTimeMillis() wsMessage.put("timestamp", System.currentTimeMillis());
);
webSocketService.notifyNewMessage(session.getSessionId(), webSocketService.notifyNewMessage(session.getSessionId(),
createWxCallbackMessage(message)); createWxCallbackMessage(message));