修复制作ppt创建会话问题

This commit is contained in:
junleea 2025-05-14 19:12:56 +08:00
parent ea5305eccb
commit 62197b382d
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import (
"net/url"
"os"
"strconv"
"strings"
"time"
)
@ -571,6 +572,9 @@ func CreateSparkPPTSOutline(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"error": "file name is empty", "code": proto.ParameterError, "message": "failed"})
return
}
if strings.Contains(req.FileUrl, "http") == false {
req.FileUrl = "https://pm.ljsea.top/tool/file/" + req.FileUrl
}
err3 := service.CheckUserCreatePPTSessionPermission(userID)
if err3 != nil {
c.JSON(http.StatusOK, gin.H{"error": "user create ppt session permission error", "code": proto.ParameterError, "message": err3.Error()})