TaskJob.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\jobs;
  12. use app\services\yihaotong\SmsRecordServices;
  13. use app\services\system\attachment\SystemAttachmentServices;
  14. use crmeb\basic\BaseJobs;
  15. use crmeb\traits\QueueTrait;
  16. /**
  17. * 定时任务
  18. * Class TaskJob
  19. * @package crmeb\jobs
  20. */
  21. class TaskJob extends BaseJobs
  22. {
  23. use QueueTrait;
  24. /**
  25. * 清除昨日海报
  26. * @return bool
  27. * @throws \Exception
  28. */
  29. public function emptyYesterdayAttachment(): bool
  30. {
  31. /** @var SystemAttachmentServices $attach */
  32. $attach = app()->make(SystemAttachmentServices::class);
  33. $attach->emptyYesterdayAttachment();
  34. return true;
  35. }
  36. }