添加ppt状态日志输出

This commit is contained in:
junleea 2025-04-05 14:14:37 +08:00
parent f4925cf693
commit 4383dede66
1 changed files with 2 additions and 1 deletions

View File

@ -345,7 +345,8 @@ func SparkDoGetPPTInfoBySID(modelParam *proto.ModelParam, userReq *proto.SparkCr
service.CreateAIStreamMsg(base.UserID, base.ModelID, int(base.SessionID), resp, modelParam.Model) //保存消息 service.CreateAIStreamMsg(base.UserID, base.ModelID, int(base.SessionID), resp, modelParam.Model) //保存消息
//添加到消息队列,用于前端查询 //添加到消息队列,用于前端查询
key := fmt.Sprintf("user-%d-session-%d-create-pptx", base.UserID, base.SessionID) key := fmt.Sprintf("user-%d-session-%d-create-pptx", base.UserID, base.SessionID)
worker.SetRedisWithExpire(key, string(respStr), time.Second*60*5) //设置5分钟过期 worker.SetRedisWithExpire(key, string(respStr), time.Second*60*60) //设置60分钟过期
log.Println("Spark create ppt status set redis key:", key, "value:", string(respStr))
if resp.Code != 0 { if resp.Code != 0 {
log.Println("Spark create ppt by outline Error:", resp) log.Println("Spark create ppt by outline Error:", resp)
return return