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