diff --git a/src/modules/common/controller/file.go b/src/modules/common/controller/file.go index 6dc67b7d..0b1391b3 100644 --- a/src/modules/common/controller/file.go +++ b/src/modules/common/controller/file.go @@ -95,7 +95,7 @@ func (s *FileController) Upload(c *gin.Context) { newFileName := upFilePath[strings.LastIndex(upFilePath, "/")+1:] c.JSON(200, result.OkData(map[string]string{ - "url": "http://" + c.Request.Host + upFilePath, + "url": "//" + c.Request.Host + upFilePath, "fileName": upFilePath, "newFileName": newFileName, "originalFileName": formFile.Filename, @@ -160,7 +160,7 @@ func (s *FileController) ChunkMerge(c *gin.Context) { newFileName := mergeFilePath[strings.LastIndex(mergeFilePath, "/")+1:] c.JSON(200, result.OkData(map[string]string{ - "url": "http://" + c.Request.Host + mergeFilePath, + "url": "//" + c.Request.Host + mergeFilePath, "fileName": mergeFilePath, "newFileName": newFileName, "originalFileName": body.FileName,