初始上传

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

29
app/job/system/CheckJob.php Executable file
View File

@@ -0,0 +1,29 @@
<?php
namespace app\job\system;
use app\model\system\Cron;
use think\facade\Log;
use think\facade\Queue;
use think\queue\Job;
/**
* 校验任务
*/
class CheckJob
{
public function fire(Job $job, $data)
{
$job->delete();
try {
$file = $data['file'];
file_put_contents($file, time());
//todo 部署一个8秒后再校验一次删除这个文件
Queue::later(8, 'app\job\system\DeleteJob', $data);
} catch (\Exception $e) {
Log::write($e->getMessage());
$job->delete();
}
}
}