From 0f3baa0147c841bc9d764a89cefe281d46449cb5 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sat, 5 Apr 2025 14:19:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96ppt?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86=E5=8F=8A?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/tool.go | 3 ++- proto/status.go | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/handler/tool.go b/handler/tool.go index 466a776..66b250b 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -544,8 +544,9 @@ func GetSparkCreatePPTStatus(c *gin.Context) { //从redis获取 key := fmt.Sprintf("user-%d-session-%d-create-pptx", userID, req.SessionID) status := worker.GetRedis(key) + log.Println("get redis key:", key, "\t,status:", status) if status == "" { - c.JSON(http.StatusOK, gin.H{"code": proto.SuccessCode, "message": "success", "data": nil}) + c.JSON(http.StatusOK, gin.H{"code": proto.GetSparkCreatePPTStatusFailed, "message": "status is null", "data": nil}) return } var resp proto.SparkCreatePPTByOutlineResponse diff --git a/proto/status.go b/proto/status.go index b03f369..efe69c0 100644 --- a/proto/status.go +++ b/proto/status.go @@ -88,6 +88,8 @@ const ( FuncModelUpdateFailed = 131 // 更新功能模型失败 FuncModelDeleteFailed = 132 // 删除功能模型失败 FuncModelSearchFailed = 133 // 获取功能模型失败 + + GetSparkCreatePPTStatusFailed = 140 // 获取spark创建ppt状态失败 ) const (