Commit 49a71925 authored by 赵啸非's avatar 赵啸非

修改配置文件

parent d58d5ce5
...@@ -63,7 +63,8 @@ public class ChatMsgRspThread implements Runnable { ...@@ -63,7 +63,8 @@ public class ChatMsgRspThread implements Runnable {
log.info("快速响应线程写入数据,rsp:{}", rspJson.toJSONString()); log.info("快速响应线程写入数据,rsp:{}", rspJson.toJSONString());
context.getEmitter().next("data:"+rspJson.toJSONString()); // context.getEmitter().next("data:"+rspJson.toJSONString());
context.getEmitter().next(rspJson.toJSONString());
reCount++; reCount++;
try { try {
Thread.sleep(1000); Thread.sleep(1000);
......
...@@ -63,7 +63,7 @@ public class FlowChatSubscriber implements Subscriber<String>, Disposable { ...@@ -63,7 +63,7 @@ public class FlowChatSubscriber implements Subscriber<String>, Disposable {
if (ObjectUtils.isEmpty(rsp)) { if (ObjectUtils.isEmpty(rsp)) {
this.stopFlag = true; this.stopFlag = true;
} }
rsp="data:"+rsp; // rsp="data:"+rsp;
log.info(" onNext rsp:{}", rsp); log.info(" onNext rsp:{}", rsp);
} catch (Exception e) { } catch (Exception e) {
log.error("流式问答异常:{}", e.getMessage()); log.error("流式问答异常:{}", e.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment