初始上传

This commit is contained in:
2026-04-04 17:27:12 +08:00
parent 4d80d28eb4
commit b7e11774ee
11191 changed files with 1588469 additions and 0 deletions

26
app/job/system/DeleteJob.php Executable file
View File

@@ -0,0 +1,26 @@
<?php
namespace app\job\system;
use think\facade\Log;
use think\queue\Job;
/**
* 任务删除事件
*/
class DeleteJob
{
public function fire(Job $job, $data)
{
$job->delete();
try {
$file = $data['file'];
@unlink($file);
return true;
} catch (\Exception $e) {
Log::write($e->getMessage());
$job->delete();
}
}
}