|
26 | 26 | use Guanguans\LaravelExceptionNotify\Collectors\RequestRawFileCollector;
|
27 | 27 | use Guanguans\LaravelExceptionNotify\Collectors\RequestServerCollector;
|
28 | 28 | use Guanguans\LaravelExceptionNotify\Jobs\ReportExceptionJob;
|
| 29 | +use Guanguans\LaravelExceptionNotify\Mail\ReportExceptionMail; |
29 | 30 | use Guanguans\LaravelExceptionNotify\Pipes\AddKeywordChorePipe;
|
30 | 31 | use Guanguans\LaravelExceptionNotify\Pipes\LimitLengthPipe;
|
31 | 32 | use Guanguans\LaravelExceptionNotify\Pipes\SprintfHtmlPipe;
|
|
64 | 65 | 'job' => [
|
65 | 66 | 'class' => ReportExceptionJob::class,
|
66 | 67 | 'connection' => env('EXCEPTION_NOTIFY_JOB_CONNECTION'),
|
67 |
| - 'queue' => env('EXCEPTION_NOTIFY_JOB_QUEUE', 'exception-notify'), |
| 68 | + 'queue' => env('EXCEPTION_NOTIFY_JOB_QUEUE'), |
68 | 69 | ],
|
69 | 70 |
|
70 | 71 | /**
|
|
106 | 107 | */
|
107 | 108 | 'stack' => [
|
108 | 109 | 'driver' => 'stack',
|
109 |
| - 'channels' => [ |
| 110 | + 'channels' => env_explode('EXCEPTION_NOTIFY_STACK_CHANNELS', [ |
| 111 | + // 'dump', |
110 | 112 | 'log',
|
111 |
| - ], |
| 113 | + // 'mail', |
| 114 | + // 'bark', |
| 115 | + // 'chanify', |
| 116 | + // 'dingTalk', |
| 117 | + // 'discord', |
| 118 | + // 'lark', |
| 119 | + // 'ntfy', |
| 120 | + // 'pushDeer', |
| 121 | + // 'slack', |
| 122 | + // 'telegram', |
| 123 | + // 'weWork', |
| 124 | + ]), |
112 | 125 | ],
|
113 | 126 |
|
114 | 127 | /**
|
|
132 | 145 | 'mail' => [
|
133 | 146 | 'driver' => 'mail',
|
134 | 147 | 'mailer' => null,
|
| 148 | + 'class' => ReportExceptionMail::class, |
| 149 | + 'title' => AbstractChannel::TITLE_TEMPLATE, |
| 150 | + 'content' => AbstractChannel::CONTENT_TEMPLATE, |
135 | 151 | 'to' => [
|
136 |
| - 'users' => env_explode('EXCEPTION_NOTIFY_MAIL_TO_USERS', [ |
| 152 | + 'address' => env_explode('EXCEPTION_NOTIFY_MAIL_TO_ADDRESS', [ |
137 | 153 |
|
138 | 154 | ]),
|
139 | 155 | ],
|
|
364 | 380 | ],
|
365 | 381 | 'message' => [
|
366 | 382 | 'class' => Guanguans\Notify\WeWork\Messages\MarkdownMessage::class,
|
367 |
| - 'content' => AbstractChannel::CONTENT_TEMPLATE, |
| 383 | + 'options' => [ |
| 384 | + 'content' => AbstractChannel::CONTENT_TEMPLATE, |
| 385 | + ], |
368 | 386 | ],
|
369 | 387 | 'pipes' => [
|
370 | 388 | SprintfMarkdownPipe::class,
|
|
0 commit comments