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
983 B
47 lines
983 B
<?php
|
|
/**
|
|
* 取消预约会议和门禁
|
|
*/
|
|
|
|
namespace App\Jobs;
|
|
|
|
use App\Repositories\MeetRepository;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class CancelAppointMeet implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
public $tries = 3;
|
|
|
|
public $appointmentModel;
|
|
public $meetId;
|
|
|
|
/**
|
|
* Create a new job instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($appointmentModel, $meetId)
|
|
{
|
|
$this->appointmentModel = $appointmentModel;
|
|
$this->meetId = $meetId;
|
|
|
|
}
|
|
|
|
/**
|
|
* Execute the job.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function handle()
|
|
{
|
|
$meetRepository = new MeetRepository();
|
|
$meetRepository->cancelAppointment($this->appointmentModel,$this->meetId, $out);
|
|
}
|
|
}
|