滙入檔案 無檔案 會出錯

20250520
This commit is contained in:
allen.yan 2025-05-20 18:19:36 +08:00
parent 8cc08e851b
commit 9746d57c89
3 changed files with 15 additions and 9 deletions

View File

@ -67,9 +67,11 @@ class ArtistImportData extends Component
}
protected function deleteTmpFile()
{
$Path = $this->file->getRealPath();
if ($Path && File::exists($Path)) {
File::delete($Path);
if($this->file!=null){
$Path = $this->file->getRealPath();
if ($Path && File::exists($Path)) {
File::delete($Path);
}
}
}

View File

@ -67,9 +67,11 @@ class BranchImportData extends Component
}
protected function deleteTmpFile()
{
$Path = $this->file->getRealPath();
if ($Path && File::exists($Path)) {
File::delete($Path);
if($this->file!=null){
$Path = $this->file->getRealPath();
if ($Path && File::exists($Path)) {
File::delete($Path);
}
}
}

View File

@ -67,9 +67,11 @@ class SongImportData extends Component
}
protected function deleteTmpFile()
{
$Path = $this->file->getRealPath();
if ($Path && File::exists($Path)) {
File::delete($Path);
if($this->file!=null){
$Path = $this->file->getRealPath();
if ($Path && File::exists($Path)) {
File::delete($Path);
}
}
}