fix 多个下载
This commit is contained in:
parent
7ded5ba751
commit
bfde74bb87
@ -39,10 +39,12 @@ let start = false
|
||||
function startDown(){
|
||||
|
||||
dowload(dowloadlist[0],(data,isok)=>{
|
||||
let name = dowloadlist[0].title
|
||||
clientList.forEach((i)=>{
|
||||
i.send(isok ? `${dowloadlist[0]}下载完成` : data )
|
||||
i.send(isok ? `${title}下载完成` : data )
|
||||
if(isok){
|
||||
dowloadlist.shift()
|
||||
start = false
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user