|
|
@ -93,4 +93,31 @@ function aliShare(share_id,folder_id,share_pwd) { |
|
|
|
setResult(d); |
|
|
|
setResult(d); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function aliShareSearch(input) { |
|
|
|
|
|
|
|
let list = JSON.parse(request('https://gitcafe.net/tool/alipaper/', { headers: headers, body: "action=search&keyword=" + input, method: 'POST', timeout: 5000 })); |
|
|
|
|
|
|
|
let datalist = list.map(item => { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
id: '小纸条', |
|
|
|
|
|
|
|
name: item.name, |
|
|
|
|
|
|
|
key: item.key |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
deleteItemByCls('loadlist'); |
|
|
|
|
|
|
|
let searchlist = []; |
|
|
|
|
|
|
|
datalist.forEach(item => { |
|
|
|
|
|
|
|
searchlist.push({ |
|
|
|
|
|
|
|
title: item.name + ' - ' + item.id, |
|
|
|
|
|
|
|
url: $("hiker://empty##fypage#noRecordHistory##noHistory#").rule((input) => { |
|
|
|
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyAliDisk.js'); |
|
|
|
|
|
|
|
aliShareUrl('https://www.aliyundrive.com/s/'+input); |
|
|
|
|
|
|
|
},item.key), |
|
|
|
|
|
|
|
col_type: "text_center_1", |
|
|
|
|
|
|
|
extra: { |
|
|
|
|
|
|
|
cls: "loadlist" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addItemBefore('listloading', searchlist); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|