|
@@ -61,7 +61,9 @@ func (m *WsChat) Handle(ws *ghttp.WebSocket, msg []byte) {
|
|
|
}
|
|
|
return ""
|
|
|
}()
|
|
|
- if errReply == "" {
|
|
|
+ if errReply != "" {
|
|
|
+ reply, from = errReply, -1
|
|
|
+ } else {
|
|
|
reply, from, err = Question.DetailQuestion(m.Ctx, req)
|
|
|
if err != nil {
|
|
|
g.Log().Error(m.Ctx, "问答异常", err)
|