You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
951 B
47 lines
951 B
<?php
|
|
/**
|
|
* 预约车位
|
|
*/
|
|
|
|
namespace App\Jobs;
|
|
|
|
use App\Repositories\CarRepository;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class SendAppointCar implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
public $tries = 3;
|
|
|
|
public $appointmentModel;
|
|
public $palte;
|
|
|
|
/**
|
|
* Create a new job instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($appointmentModel, $palte)
|
|
{
|
|
$this->appointmentModel = $appointmentModel;
|
|
$this->palte = $palte;
|
|
}
|
|
|
|
/**
|
|
* Execute the job.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function handle()
|
|
{
|
|
$carRepository = new CarRepository();
|
|
$carRepository->appointment($this->appointmentModel, $this->palte, $out);
|
|
|
|
}
|
|
}
|