修复会话名称截取问题
This commit is contained in:
parent
cf4cbbeec6
commit
b085fd37ba
|
|
@ -205,7 +205,12 @@ func SparkDoCreateOutline(userReq *proto.SparkCreateOutlineRequest, base *proto.
|
|||
var modelParam proto.ModelParam
|
||||
var err error
|
||||
//需要保存会话
|
||||
sessionName := userReq.Query[:10]
|
||||
sessionName := ""
|
||||
if len(userReq.Query) > 10 {
|
||||
sessionName = userReq.Query[:10]
|
||||
} else {
|
||||
sessionName = userReq.Query
|
||||
}
|
||||
err2, sessionID := service.CreateSession(base.UserID, proto.SessionTypeUserCreatePPT, sessionName)
|
||||
if err2 != nil {
|
||||
log.Println("Create session error:", err2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue