model = $model; // 设置延迟的时间,delay() 方法的参数代表多少秒之后执行 $this->delay($delay); } /** * Execute the job. * * @return void */ public function handle() { if ((int)$this->model->pay_status === DepositOrder::PAY_STATUS_OK) { return; } $this->model->delete(); } }