|
@@ -77,7 +77,8 @@ func (m *WsChat) Handle(ws *ghttp.WebSocket, msg []byte) {
|
|
reply, res, from, err = Question.DetailQuestion(m.Ctx, req)
|
|
reply, res, from, err = Question.DetailQuestion(m.Ctx, req)
|
|
if err != nil {
|
|
if err != nil {
|
|
g.Log().Error(m.Ctx, "问答异常", err)
|
|
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 {
|
|
if from == Answer_ChatGPT {
|