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})