mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-07 07:09:46 +00:00
Merge branch 'main' into dev
This commit is contained in:
commit
9d892a927e
@ -199,6 +199,7 @@ func GetDownloadFile(c *gin.Context) {
|
||||
defer ar.Close()
|
||||
commonDir := file.CommonPrefix(filepath.Separator, list...)
|
||||
|
||||
|
||||
currentPath := filepath.Base(commonDir)
|
||||
|
||||
name := "_" + currentPath
|
||||
|
||||
@ -122,6 +122,7 @@ func (i *notifyServer) SendFileOperateNotify(nowSend bool) {
|
||||
}
|
||||
|
||||
if temp.Finished || temp.ProcessedSize >= temp.TotalSize {
|
||||
|
||||
task.Finished = true
|
||||
task.Status = "FINISHED"
|
||||
FileQueue.Delete(v)
|
||||
@ -187,6 +188,7 @@ func (i *notifyServer) SendFileOperateNotify(nowSend bool) {
|
||||
task.Status = "PROCESSING"
|
||||
}
|
||||
if temp.Finished || temp.ProcessedSize >= temp.TotalSize {
|
||||
|
||||
task.Finished = true
|
||||
task.Status = "FINISHED"
|
||||
FileQueue.Delete(v)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user