32 lines
673 B
PHP
Executable File
32 lines
673 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Listeners;
|
|
|
|
use App\Events\OrderPaySuccessEvent;
|
|
use App\Jobs\HandleOrderPaySuccess;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
/**
|
|
* 订单支付成功事件处理
|
|
* Class HandleOrderPaySuccessListener
|
|
* @package App\Listeners
|
|
*/
|
|
class OrderPaySuccessListener implements ShouldQueue
|
|
{
|
|
/**
|
|
* Create the event listener.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
}
|
|
|
|
public function handle(OrderPaySuccessEvent $event)
|
|
{
|
|
Log::info('OrderPaySuccessListener orderId:'. $event->orderId);
|
|
HandleOrderPaySuccess::dispatch($event->orderId);
|
|
}
|
|
}
|