set empty pass will delete passfile

pull/194/head
qkqpttgf 2021-01-17 13:32:33 +08:00 committed by GitHub
parent 96ce1a91d3
commit 49e602e7e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -222,6 +222,10 @@ class Aliyundrive {
if (isset($existfile['type'])) { // 删掉原文件
$this->Delete(['id'=>$existfile['file_id']]);
}
if ($pass==='') {
// 如果为空,上面已经删除了
return output('Success', 200);
}
if (!$folder['id']) {
$res = $this->list_path($folder['path']);
//error_log1('res:' . json_encode($res));
@ -713,4 +717,4 @@ class Aliyundrive {
}
return true;
}
}
}