修复spark模型返回消息存储类型错误
This commit is contained in:
parent
1f4dae7a7c
commit
8462c45714
|
|
@ -170,9 +170,11 @@ func Spark(modelParam proto.ModelParam, question, channel string, SessionID, Use
|
|||
|
||||
conn.Close()
|
||||
//将消息存入数据库
|
||||
err, _ = dao.CreateMessage(SessionID, modelID, UserID, proto.UserAndModelMsgType, proto.MsgHasRead, answer)
|
||||
if err != nil {
|
||||
log.Println("spark create message error:", err)
|
||||
err2, msgID := dao.CreateMessage(SessionID, modelID, UserID, proto.ModelToUserMsgType, proto.MsgHasRead, answer)
|
||||
if err2 != nil {
|
||||
log.Println("spark create message error:", err2)
|
||||
} else {
|
||||
log.Println("spark create message success,message id:", msgID)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue