where('id', 'in', array_column($notifiables, 'id'))->select(); } // 发送消息 \addons\shopro\library\notify\Notify::sendNow($notifiables, $notification); // 删除 job $job->delete(); } catch (HttpResponseException $e) { $data = $e->getResponse()->getData(); $message = $data ? ($data['msg'] ?? '') : $e->getMessage(); format_log_error($e, 'Notification.send.HttpResponseException', $message); } catch (\Exception $e) { format_log_error($e, 'Notification.send.' . ($notification->event ?? '')); } } }