Fix: panic while decompress files / Cannot edit policy

pull/247/head
HFO4 5 years ago
parent 45ec4b3f8b
commit b6e1e04ce0

@ -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,8 +25,10 @@ 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)
if res.Err == nil {
io.Copy(c.Writer, res.Response.Body)
}
}
// AdminChangeSetting 获取站点设定项
func AdminChangeSetting(c *gin.Context) {

Loading…
Cancel
Save