// +---------------------------------------------------------------------- namespace app\jobs; use app\services\yihaotong\SmsRecordServices; use app\services\system\attachment\SystemAttachmentServices; use crmeb\basic\BaseJobs; use crmeb\traits\QueueTrait; /** * 定时任务 * Class TaskJob * @package crmeb\jobs */ class TaskJob extends BaseJobs { use QueueTrait; /** * 清除昨日海报 * @return bool * @throws \Exception */ public function emptyYesterdayAttachment(): bool { /** @var SystemAttachmentServices $attach */ $attach = app()->make(SystemAttachmentServices::class); $attach->emptyYesterdayAttachment(); return true; } }