|
|
@ -801,12 +801,19 @@ function yundiskhistory() { |
|
|
|
let opentoken = getOpenToken(authorization); |
|
|
|
let opentoken = getOpenToken(authorization); |
|
|
|
headers['authorization'] = 'Bearer ' + opentoken; |
|
|
|
headers['authorization'] = 'Bearer ' + opentoken; |
|
|
|
let recentList = JSON.parse(request('https://openapi.aliyundrive.com/adrive/v1.0/openFile/video/recentList', { headers: headers, body: {"image_thumbnail_width":480,"fields":"*","video_thumbnail_width":480}, method: 'POST' }));
|
|
|
|
let recentList = JSON.parse(request('https://openapi.aliyundrive.com/adrive/v1.0/openFile/video/recentList', { headers: headers, body: {"image_thumbnail_width":480,"fields":"*","video_thumbnail_width":480}, method: 'POST' }));
|
|
|
|
let arr = recentList.items; |
|
|
|
let items = recentList.items; |
|
|
|
|
|
|
|
let arr = []; |
|
|
|
|
|
|
|
items.forEach(it=>{ |
|
|
|
|
|
|
|
let index = arr.indexOf(arr.filter(d=>d.parent_file_id == parent_file_id)[0]); |
|
|
|
|
|
|
|
if(index==-1){ |
|
|
|
|
|
|
|
arr.push(it); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
arr.forEach(it=>{ |
|
|
|
arr.forEach(it=>{ |
|
|
|
try{ |
|
|
|
try{ |
|
|
|
let folder = JSON.parse(request('https://openapi.aliyundrive.com/adrive/v1.0/openFile/get', { headers: headers, body: {"drive_id":it.drive_id,"file_id":it.parent_file_id}, method: 'POST' }));
|
|
|
|
let folder = JSON.parse(request('https://openapi.aliyundrive.com/adrive/v1.0/openFile/get', { headers: headers, body: {"drive_id":it.drive_id,"file_id":it.parent_file_id}, method: 'POST' }));
|
|
|
|
d.push({ |
|
|
|
d.push({ |
|
|
|
title: it.name, |
|
|
|
title: folder.name, |
|
|
|
url: $("hiker://empty#noRecordHistory#").rule((folder_id, isSearch, drive_id) => { |
|
|
|
url: $("hiker://empty#noRecordHistory#").rule((folder_id, isSearch, drive_id) => { |
|
|
|
|
|
|
|
|
|
|
|
//require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/', '/master/') + 'SrcJyAliDisk.js');
|
|
|
|
//require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/', '/master/') + 'SrcJyAliDisk.js');
|
|
|
@ -820,6 +827,7 @@ function yundiskhistory() { |
|
|
|
|
|
|
|
|
|
|
|
}, it.parent_file_id, 0, it.drive_id), |
|
|
|
}, it.parent_file_id, 0, it.drive_id), |
|
|
|
img: it.thumbnail + "@Referer=https://www.aliyundrive.com/", |
|
|
|
img: it.thumbnail + "@Referer=https://www.aliyundrive.com/", |
|
|
|
|
|
|
|
desc: it.name, |
|
|
|
col_type: "avatar", |
|
|
|
col_type: "avatar", |
|
|
|
extra: { |
|
|
|
extra: { |
|
|
|
lastClick: it.name, |
|
|
|
lastClick: it.name, |
|
|
|