修复创建ppt请求会话id问题
This commit is contained in:
parent
9830e3c8c4
commit
131f2cc059
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Reference in New Issue