<?php

namespace App\Events;

use App\Models\OrderCommission;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;

class CommissionGotEvent implements ShouldQueue
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public OrderCommission $order_commission;

    /**
     * Create a new event instance.
     *
     * @param  OrderCommission  $order_commission
     * @return void
     */
    public function __construct(OrderCommission $order_commission)
    {
        Log::info('order_commission'.$order_commission->id.'触发佣金发放事件start');
        $this->order_commission = $order_commission;
    }
}
