添加banner的接口逻辑
This commit is contained in:
1 parent
e42a4549e9
commit
a52d630acf
8 files changed
+505
-5
No files matched your search
@@ -178,8 +178,8 @@ func (e File) singleFile(c *gin.Context, fileResponse FileResponse, urlPerfix st
|
||||
// e.Error(200, errors.New(""), "上传第三方失败")
|
||||
// return FileResponse{}, true
|
||||
//}
|
||||
fileResponse.Path = "/static/uploadfile/" + fileName
|
||||
fileResponse.FullPath = "/static/uploadfile/" + fileName
|
||||
//fileResponse.Path = "/static/uploadfile/" + fileName
|
||||
//fileResponse.FullPath = "/static/uploadfile/" + fileName
|
||||
return fileResponse, false
|
||||
}
|
||||
|
||||
@@ -201,4 +201,4 @@ func ossUpload(name string, path string) error {
|
||||
func qiniuUpload(name string, path string) error {
|
||||
oss := file_store.ALiYunOSS{}
|
||||
return oss.UpLoad(name, path)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user