Fix ali crash
This commit is contained in:
parent
debb562648
commit
b6b02fd8a1
|
|
@ -403,11 +403,14 @@ public class API {
|
|||
}
|
||||
|
||||
private void delete(String fileId) {
|
||||
try {
|
||||
SpiderDebug.log("Delete..." + fileId);
|
||||
String json = "{\"requests\":[{\"body\":{\"drive_id\":\"%s\",\"file_id\":\"%s\"},\"headers\":{\"Content-Type\":\"application/json\"},\"id\":\"%s\",\"method\":\"POST\",\"url\":\"/file/delete\"}],\"resource\":\"file\"}";
|
||||
json = String.format(json, user.getDriveId(), fileId, fileId);
|
||||
String result = auth("adrive/v2/batch", json, true);
|
||||
if (result.length() == 211) tempIds.remove(fileId);
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
public Object[] proxySub(Map<String, String> params) {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
d255d424916b37d2329cbfd8dd8b2119
|
||||
7338bb6f1e1e684c77f5db38b81aff45
|
||||
|
|
|
|||
Loading…
Reference in New Issue