Fix: panic while decompress files / Cannot edit policy
This commit is contained in:
parent
45ec4b3f8b
commit
b6e1e04ce0
4 changed files with 5 additions and 4 deletions
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit 69b78898d3e507ac4307cde2e173c11a2e912cb8
|
||||
Subproject commit d46074216363ac62a66a02284f2a791b79a392cd
|
|
@ -222,7 +222,7 @@ func (policy *Policy) GetUploadURL() string {
|
|||
case "cos":
|
||||
return policy.Server
|
||||
case "upyun":
|
||||
return "http://v0.api.upyun.com/" + policy.BucketName
|
||||
return "https://v0.api.upyun.com/" + policy.BucketName
|
||||
default:
|
||||
controller, _ = url.Parse("")
|
||||
}
|
||||
|
|
|
@ -78,7 +78,6 @@ func (job *DecompressTask) Do() {
|
|||
job.SetErrorMsg("无法创建文件系统", err)
|
||||
return
|
||||
}
|
||||
defer fs.Recycle()
|
||||
|
||||
job.TaskModel.SetProgress(DecompressingProgress)
|
||||
err = fs.Decompress(context.Background(), job.TaskProps.Src, job.TaskProps.Dst)
|
||||
|
|
|
@ -25,7 +25,9 @@ func AdminSummary(c *gin.Context) {
|
|||
func AdminNews(c *gin.Context) {
|
||||
r := request.HTTPClient{}
|
||||
res := r.Request("GET", "https://forum.cloudreve.org/api/discussions?include=startUser%2ClastUser%2CstartPost%2Ctags&filter%5Bq%5D=%20tag%3Anotice&sort=-startTime&", nil)
|
||||
io.Copy(c.Writer, res.Response.Body)
|
||||
if res.Err == nil {
|
||||
io.Copy(c.Writer, res.Response.Body)
|
||||
}
|
||||
}
|
||||
|
||||
// AdminChangeSetting 获取站点设定项
|
||||
|
|
Loading…
Add table
Reference in a new issue