回复 35# lonron - $a=0;
- function test($id){
- $limit=100;
- $y='https://189.ly93.cc/api.php?c=list&code=7n6r22uae6Jn&pwd=r6sf&fileId=';
- $z=irm ($y+$id+'&limit='+$limit);
- $b=$z.count;
- $c={
- z|%{
- if(!$global:a){($global:a=$_.path.psobject.properties.name)}
- sleep 1;
- $_.data|%{if($_.isdir){$_.id;test($_.id)}}
- }
- }
- if($b -le 100){&$c}else{
- &$c;
- for($($i=1;$b+=100);($b-=$limit) -gt 0;++$i){
- sleep 1;
- $z=irm ($y+$id+'&limit='+$lilmit+'&page='+$i);
- &$c
- }
- }
- }
- test
复制代码
|