Fix ali crash

This commit is contained in:
FongMi 2023-04-24 08:52:06 +08:00
parent d0472e9b5b
commit 8a501e49e2
5 changed files with 11 additions and 8 deletions

View File

@ -403,11 +403,14 @@ public class API {
} }
private void delete(String fileId) { private void delete(String fileId) {
try {
SpiderDebug.log("Delete..." + 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\"}"; 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); json = String.format(json, user.getDriveId(), fileId, fileId);
String result = auth("adrive/v2/batch", json, true); String result = auth("adrive/v2/batch", json, true);
if (result.length() == 211) tempIds.remove(fileId); if (result.length() == 211) tempIds.remove(fileId);
} catch (Exception ignored) {
}
} }
public Object[] proxySub(Map<String, String> params) { public Object[] proxySub(Map<String, String> params) {

Binary file not shown.

View File

@ -1 +1 @@
d255d424916b37d2329cbfd8dd8b2119 7338bb6f1e1e684c77f5db38b81aff45

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;d255d424916b37d2329cbfd8dd8b2119", "spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;7338bb6f1e1e684c77f5db38b81aff45",
"wallpaper": "https://gao.chuqiuyu.tk", "wallpaper": "https://gao.chuqiuyu.tk",
"sites": [ "sites": [
{ {

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;d255d424916b37d2329cbfd8dd8b2119", "spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;7338bb6f1e1e684c77f5db38b81aff45",
"wallpaper": "http://饭太硬.ga/深色壁纸/api.php", "wallpaper": "http://饭太硬.ga/深色壁纸/api.php",
"sites": [ "sites": [
{ {