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.
 
 
 
 
 

37 lines
724 B

<?php
namespace App\Listeners;
use App\Events\OrderShipped;
use Illuminate\Contracts\Queue\ShouldQueue;
// 事件监听器队列
class SendShipmentNotificationQueue implements ShouldQueue
{
/**
* 创建事件监听器
*
* @return void
*/
public function __construct()
{
\Log::info('----SendShipmentNotificationQueue Listeners Init----');
}
/**
* 处理事件
*
* @param OrderShipped $event
* @return void
*/
public function handle(OrderShipped $event)
{
\Log::info('----SendShipmentNotificationQueue Listeners handle----');
}
// 处理失败任务
public function failed(OrderShipped $event, $exception)
{
//
}
}