更新 'SrcJyAliDisk.js'

main
src48597962 2 years ago
parent ff1afd6ad6
commit 047b37cca2
  1. 7
      SrcJyAliDisk.js

@ -59,7 +59,8 @@ function aliShare(share_id, folder_id, share_pwd) {
sub_file_id = sublist[0].file_id;
} else if (sublist.length > 1) {
sublist.forEach(it => {
if (item.name.includes(it.name.substring(0, it.name.lastIndexOf(".")))) {
let subnmae = it.name.substring(0, it.name.lastIndexOf(".")).replace(/\.chs|\.eng/g,'');
if (item.name.includes(subnmae)) {
sub_file_id = it.file_id;
}
})
@ -277,7 +278,8 @@ function aliMyDisk(folder_id,nofilter) {
sub_file_url = sublist[0].url;
} else if (sublist.length > 1) {
sublist.forEach(it => {
if (item.name.includes(it.name.substring(0, it.name.lastIndexOf(".")))) {
let subnmae = it.name.substring(0, it.name.lastIndexOf(".")).replace(/\.chs|\.eng/g,'');
if (item.name.includes(subnmae)) {
sub_file_url = it.url;
}
})
@ -321,6 +323,7 @@ function aliMyDisk(folder_id,nofilter) {
col_type: 'avatar',
extra: {
id: item.file_id,
cls: item.category,
inheritTitle: false
}
})

Loading…
Cancel
Save