From 047b37cca260bf809da721405a5bf6cb0fd4a511 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 1 Jun 2023 15:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyAliDisk.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyAliDisk.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SrcJyAliDisk.js b/SrcJyAliDisk.js index 57bc2bb..b0fbe42 100644 --- a/SrcJyAliDisk.js +++ b/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 } })