TestJob.php 239 B

1234567891011121314151617
  1. <?php
  2. namespace crmeb\jobs;
  3. use crmeb\interfaces\JobInterface;
  4. use think\queue\Job;
  5. class TestJob implements JobInterface
  6. {
  7. public function fire(Job $job, $data): void
  8. {
  9. var_dump($data);
  10. $job->delete();
  11. }
  12. }