class OrderEmaiAfterListener implements ListenerInterface
{
public function handle($event): void
{
[$order_id, $action] = $event;
//郵件消息隊列推送
echo 888;
EmailJob::dispatch([$order_id, $action]);
echo 999;
//$emailServices = app()->make(EmailServices::class);
//$resl = $emailServices->sendOrderSureEmail($order_id, $action);
//Log::error('xxxxxxxxxxxxxxxx-22222-------------'.json_encode($resl));
}
}想問下,我用了事件,事件里面去推送消息到隊列,但是這個只要執(zhí)行推送到隊列,就程序就中斷了,也沒有報錯這個是為啥?
【產(chǎn)品名稱】:CRMEB標(biāo)準(zhǔn)版
【產(chǎn)品版本】:v5
【部署方式】:例: linux/win寶塔面板 / phpstudy / docker
【部署環(huán)境】:線上環(huán)境
【php版本】:7.3
【Mysql版本】:例:5.7
【使用終端】:pc