修复错误获取spark信息错误码
This commit is contained in:
parent
131f2cc059
commit
bc44929338
|
|
@ -343,6 +343,10 @@ func SparkDoGetPPTInfoBySID(modelParam *proto.ModelParam, userReq *proto.SparkCr
|
||||||
//添加到消息队列,用于前端查询
|
//添加到消息队列,用于前端查询
|
||||||
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*5) //设置5分钟过期
|
||||||
|
if resp.Code != 0 {
|
||||||
|
log.Println("Spark create ppt by outline Error:", resp)
|
||||||
|
return
|
||||||
|
}
|
||||||
if resp.Data.PptStatus == "done" {
|
if resp.Data.PptStatus == "done" {
|
||||||
log.Println("ppt done")
|
log.Println("ppt done")
|
||||||
//下载文件,保存到指定用户的文件
|
//下载文件,保存到指定用户的文件
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue