Explorar o código

wip:日志输出修改

wangkaiyue %!s(int64=2) %!d(string=hai) anos
pai
achega
8c99bc197c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      internal/model/ws.go

+ 2 - 1
internal/model/ws.go

@@ -77,7 +77,8 @@ func (m *WsChat) Handle(ws *ghttp.WebSocket, msg []byte) {
 			reply, res, from, err = Question.DetailQuestion(m.Ctx, req)
 			if err != nil {
 				g.Log().Error(m.Ctx, "问答异常", err)
-				reply, from = g.Cfg().MustGet(m.Ctx, "limit.errMsg").String(), -1
+				reply = g.Cfg().MustGet(m.Ctx, "limit.errMsg").String()
+				errReply = g.Cfg().MustGet(m.Ctx, "limit.errMsg").String()
 			}
 		}
 		if from == Answer_ChatGPT {