Fix ali crash

pull/69/head
FongMi 3 years ago
parent debb562648
commit b6b02fd8a1
  1. 13
      app/src/main/java/com/github/catvod/ali/API.java
  2. BIN
      jar/custom_spider.jar
  3. 2
      jar/custom_spider.jar.md5

@ -403,11 +403,14 @@ public class API {
}
private void delete(String fileId) {
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);
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…
Cancel
Save