更新 'SrcJyAliDisk.js'

master
src48597962 10 months ago
parent 551e254ecf
commit 03de54aa8c
  1. 42
      SrcJyAliDisk.js

@ -62,8 +62,16 @@ function aliShare(share_id, folder_id, share_pwd) {
let d = []; let d = [];
let filterFiles = []; let filterFiles = [];
d.push( try {
{ if (!userinfo.refresh_token) {
d = d.concat(myDiskMenu(0));
} else {
share_pwd = share_pwd || "";
let get_sharetoken = getShareToken(share_id, share_pwd);
let sharetoken = get_sharetoken.share_token;
let getbyshare = {};
d.push({
title: "换源", title: "换源",
url: $().lazyRule((name, isback) => { url: $().lazyRule((name, isback) => {
if (isback > 0) { if (isback > 0) {
@ -186,20 +194,28 @@ function aliShare(share_id, folder_id, share_pwd) {
title: '转存', title: '转存',
url: `smartdrive://share/browse?shareId=${share_id}&sharePwd=${share_pwd}`, url: `smartdrive://share/browse?shareId=${share_id}&sharePwd=${share_pwd}`,
col_type: 'icon_5', col_type: 'icon_5',
img: 'https://hikerfans.com/tubiao/grey/206.png' img: 'https://hikerfans.com/tubiao/grey/206.png',
extra: {
longClick: [{
title: "💾转存",
js: $.toString((obj) => {
storage0.putMyVar('copydate', obj);
return $("hiker://empty").rule(() => {
addListener("onClose", $.toString(() => {
clearMyVar('copydate');
}));
require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/', '/master/') + 'SrcJyAliDisk.js');
aliMyDisk('', 0, '');
})
},{sharetoken:sharetoken,share_id:share_id,authorization:authorization,file_id:folder_id})
}]
}
}, },
{ {
col_type: 'line_blank' col_type: 'line_blank'
} })
)
try {
if (!userinfo.refresh_token) {
d = d.concat(myDiskMenu(0));
} else {
share_pwd = share_pwd || "";
let get_sharetoken = getShareToken(share_id, share_pwd);
let sharetoken = get_sharetoken.share_token;
let getbyshare = {};
if (errorCode[get_sharetoken.code]) { if (errorCode[get_sharetoken.code]) {
d.push({ d.push({
title: errorCode[get_sharetoken.code], title: errorCode[get_sharetoken.code],

Loading…
Cancel
Save