From 131f2cc0597656d84c23789ce31c902ded3907a3 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Fri, 4 Apr 2025 18:36:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BAppt?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E4=BC=9A=E8=AF=9Did=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/tool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/tool.go b/handler/tool.go index a5761e7..fa9a3d1 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -516,7 +516,7 @@ func CreateSparkPPT(c *gin.Context) { base.SessionID = req.SessionID pptresp, err2 := spark.SparkDoCreatePPTByOutline(&req, &base) if err2 != nil { - c.JSON(http.StatusOK, gin.H{"error": "create ppt error:" + err.Error(), "code": proto.ParameterError, "message": "failed"}) + c.JSON(http.StatusOK, gin.H{"error": "create ppt error:" + err2.Error(), "code": proto.ParameterError, "message": "failed"}) return } else { c.JSON(http.StatusOK, gin.H{"code": proto.SuccessCode, "message": "success", "data": pptresp})