mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 12:26:51 +08:00
feat: chat接口会话结束时, 发送docId给前端
This commit is contained in:
@@ -1011,7 +1011,10 @@ public class CaseAiChatServiceImpl implements ICaseAiChatService {
|
|||||||
try {
|
try {
|
||||||
String docId = elasticSearchIndexService.createData(conversationData);
|
String docId = elasticSearchIndexService.createData(conversationData);
|
||||||
if (docId != null) {
|
if (docId != null) {
|
||||||
sseEmitter.send(JSON.toJSONString(Collections.singletonMap("docId", docId)));
|
JSONObject responseData = new JSONObject();
|
||||||
|
responseData.put("docId", docId);
|
||||||
|
responseData.put("status", "9");
|
||||||
|
sseEmitter.send(responseData.toJSONString());
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("docId消息发送失败", e);
|
log.error("docId消息发送失败", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user