mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-31 06:11:56 +08:00
Fix: panic while decompress files / Cannot edit policy
This commit is contained in:
2
assets
2
assets
Submodule assets updated: 69b78898d3...d460742163
@@ -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 获取站点设定项
|
||||
|
||||
Reference in New Issue
Block a user