修复我的网盘下文件夹无权限问题

Signed-off-by: 小胡 <3203164629@qq.com>
This commit is contained in:
小胡
2024-04-15 08:12:17 +00:00
committed by Gitee
Unverified
parent 4b53c0a3d4
commit a4073f474c
2 changed files with 12 additions and 5 deletions

View File

@@ -3579,4 +3579,15 @@ function dzz_userconfig_init()
if ($pathh==$shareLink){
return true;
}
}
//取得所有子级目录
function get_all_chilrdenfid_by_pfid($pfid)
{
static $fids = array();
foreach(C::t('folder')->fetch_fid_by_pfid($pfid) as $v){
$fids[] = $v['fid'];
get_all_chilrdenfid_by_pfid($v['fid']);
}
return $fids;
}