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.
46 lines
965 B
46 lines
965 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 CancelCourseCar implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
public $tries = 3;
|
|
|
|
public $courseSignModel;
|
|
public $palte;
|
|
|
|
/**
|
|
* Create a new job instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($courseSignModel, $palte)
|
|
{
|
|
$this->courseSignModel = $courseSignModel;
|
|
$this->palte = $palte;
|
|
}
|
|
|
|
/**
|
|
* Execute the job.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function handle()
|
|
{
|
|
$carRepository = new CarRepository();
|
|
$carRepository->cancelAppointment(0, $this->courseSignModel->id, $this->palte, $out);
|
|
}
|
|
}
|