PurchaserJob.php 872 字节
<?php
/**
 * @remark :
 * @name   :PurchaserJob.php
 * @author :lyh
 * @method :post
 * @time   :2024/3/4 11:06
 */

namespace App\Jobs;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;

class PurchaserJob implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
    public $tries = 3; // 可配置任务重试次数

    protected $param;

    /**
     * Create a new job instance.
     *
     * @param  CopyImageFile  $event
     * @return void
     */
    public function __construct($data)
    {
        $this->param = $data;
    }

    /**
     * Handle the event.
     *
     * @param  UpdateHtml  $event
     * @return void
     */
    public function handle()
    {

    }
}