滙入檔案 無檔案 會出錯
20250520
This commit is contained in:
parent
8cc08e851b
commit
9746d57c89
@ -67,9 +67,11 @@ class ArtistImportData extends Component
|
|||||||
}
|
}
|
||||||
protected function deleteTmpFile()
|
protected function deleteTmpFile()
|
||||||
{
|
{
|
||||||
$Path = $this->file->getRealPath();
|
if($this->file!=null){
|
||||||
if ($Path && File::exists($Path)) {
|
$Path = $this->file->getRealPath();
|
||||||
File::delete($Path);
|
if ($Path && File::exists($Path)) {
|
||||||
|
File::delete($Path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,9 +67,11 @@ class BranchImportData extends Component
|
|||||||
}
|
}
|
||||||
protected function deleteTmpFile()
|
protected function deleteTmpFile()
|
||||||
{
|
{
|
||||||
$Path = $this->file->getRealPath();
|
if($this->file!=null){
|
||||||
if ($Path && File::exists($Path)) {
|
$Path = $this->file->getRealPath();
|
||||||
File::delete($Path);
|
if ($Path && File::exists($Path)) {
|
||||||
|
File::delete($Path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,9 +67,11 @@ class SongImportData extends Component
|
|||||||
}
|
}
|
||||||
protected function deleteTmpFile()
|
protected function deleteTmpFile()
|
||||||
{
|
{
|
||||||
$Path = $this->file->getRealPath();
|
if($this->file!=null){
|
||||||
if ($Path && File::exists($Path)) {
|
$Path = $this->file->getRealPath();
|
||||||
File::delete($Path);
|
if ($Path && File::exists($Path)) {
|
||||||
|
File::delete($Path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user