This commit is contained in:
wangxuepeng
2024-01-02 18:55:54 +08:00
parent 318b55d97c
commit 3694cc0f88
+1 -1
View File
@@ -1216,7 +1216,7 @@ class testcaseModel extends model
$filePath = pathinfo($file->pathname, PATHINFO_BASENAME);
$datePath = substr($file->pathname, 0, 6);
$filePath = $this->app->getAppRoot() . "www/data/upload/{$this->app->company->id}/" . "{$datePath}/" . $filePath;
unlink($filePath);
if(file_exists($filePath)) unlink($filePath);
}
}
if(isset($caseID))