diff --git a/disk/Aliyundrive.php b/disk/Aliyundrive.php index 0d5e6634170da8a9bf53be6fc516d8f2334b1d11..41611689336ef19607f0a8f09887f5fc38b5731e 100644 --- a/disk/Aliyundrive.php +++ b/disk/Aliyundrive.php @@ -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; } -} \ No newline at end of file +}