更新 'SrcJyAliDisk.js'

master
src48597962 2 years ago
parent 95f921290f
commit 6b8e0fab2c
  1. 3
      SrcJyAliDisk.js

@ -13,7 +13,8 @@ function aliShareUrl(input) {
share_pwd = it.replace('提取码: ', ''); share_pwd = it.replace('提取码: ', '');
} }
if (it.indexOf("https://www.aliyundrive.com") > -1) { if (it.indexOf("https://www.aliyundrive.com") > -1) {
it = it.replace('https://www.aliyundrive.com/s/', ''); it = it.replace('https://www.aliyundrive.com/s/', '').replace('链接:', '');
log(it)
share_id = it.indexOf('/folder/') > -1 ? it.split('/folder/')[0] : it; share_id = it.indexOf('/folder/') > -1 ? it.split('/folder/')[0] : it;
folder_id = it.indexOf('/folder/') > -1 ? it.split('/folder/')[1] : "root"; folder_id = it.indexOf('/folder/') > -1 ? it.split('/folder/')[1] : "root";
} }

Loading…
Cancel
Save