mirror of https://github.com/Xhofe/alist
fix(alidrive): change response of move and copy
parent
ad3121d367
commit
dd151480a8
|
@ -228,7 +228,7 @@ func (driver AliDrive) batch(srcId, dstId string, url string, account *model.Acc
|
||||||
}
|
}
|
||||||
return fmt.Errorf("%s", e.Message)
|
return fmt.Errorf("%s", e.Message)
|
||||||
}
|
}
|
||||||
status := jsoniter.Get(res.Body(), "status").ToInt()
|
status := jsoniter.Get(res.Body(), "responses", 0, "status").ToInt()
|
||||||
if status < 400 && status >= 100 {
|
if status < 400 && status >= 100 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue