fix 多个下载

This commit is contained in:
Theluyuan 2023-06-14 15:57:46 +08:00
parent 7ded5ba751
commit bfde74bb87

View File

@ -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
}
})
})