修复制作ppt创建会话问题
This commit is contained in:
parent
ea5305eccb
commit
62197b382d
|
|
@ -16,6 +16,7 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
"time"
|
"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"})
|
c.JSON(http.StatusOK, gin.H{"error": "file name is empty", "code": proto.ParameterError, "message": "failed"})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if strings.Contains(req.FileUrl, "http") == false {
|
||||||
|
req.FileUrl = "https://pm.ljsea.top/tool/file/" + req.FileUrl
|
||||||
|
}
|
||||||
err3 := service.CheckUserCreatePPTSessionPermission(userID)
|
err3 := service.CheckUserCreatePPTSessionPermission(userID)
|
||||||
if err3 != nil {
|
if err3 != nil {
|
||||||
c.JSON(http.StatusOK, gin.H{"error": "user create ppt session permission error", "code": proto.ParameterError, "message": err3.Error()})
|
c.JSON(http.StatusOK, gin.H{"error": "user create ppt session permission error", "code": proto.ParameterError, "message": err3.Error()})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue