Skip to content

Commit f635198

Browse files
committed
refactor(config): update Lark configuration and rename client tapper
- Update the configuration for Lark channel in exception-notify.php - Rename WithLogMiddlewareClientTapper.php to DefaultClientTapper.php - Skip test in MailChannelTest.php
1 parent d2fd67d commit f635198

File tree

3 files changed

+4
-28
lines changed

3 files changed

+4
-28
lines changed

config/exception-notify.php

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
*/
103103
'channels' => [
104104
/**
105-
* 飞书群机器人.
105+
* Lark.
106106
*/
107107
'lark' => [
108108
'driver' => 'notify',
@@ -114,7 +114,7 @@
114114
'client' => [
115115
'class' => \Guanguans\Notify\Lark\Client::class,
116116
'http_options' => [],
117-
'tapper' => \Guanguans\LaravelExceptionNotify\WithLogMiddlewareClientTapper::class,
117+
// 'tapper' => \Guanguans\LaravelExceptionNotify\DefaultClientTapper::class,
118118
],
119119
'message' => [
120120
'class' => \Guanguans\Notify\Lark\Messages\TextMessage::class,
@@ -150,29 +150,5 @@
150150
'channel' => 'daily',
151151
'pipes' => [],
152152
],
153-
154-
/**
155-
* 企业微信群机器人.
156-
*/
157-
'weWork' => [
158-
'driver' => 'notify',
159-
'authenticator' => [
160-
'class' => \Guanguans\Notify\WeWork\Authenticator::class,
161-
'token' => '...',
162-
],
163-
'client' => [
164-
'class' => \Guanguans\Notify\WeWork\Client::class,
165-
'http_options' => [],
166-
'tapper' => \Guanguans\LaravelExceptionNotify\WithLogMiddlewareClientTapper::class,
167-
],
168-
'message' => [
169-
'class' => \Guanguans\Notify\WeWork\Messages\TextMessage::class,
170-
'content' => '{report}',
171-
],
172-
'pipes' => [
173-
FixPrettyJsonPipe::class,
174-
hydrate_pipe(LimitLengthPipe::class, 5120),
175-
],
176-
],
177153
],
178154
];

src/WithLogMiddlewareClientTapper.php renamed to src/DefaultClientTapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use GuzzleHttp\Middleware;
1919
use Illuminate\Support\Facades\Log;
2020

21-
class WithLogMiddlewareClientTapper
21+
class DefaultClientTapper
2222
{
2323
private string $channel;
2424
private string $template;

tests/Channels/MailChannelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
expect($this->app->make(ExceptionNotifyManager::class)->driver('mail'))
1818
->report('report')
1919
->toBeNull();
20-
})->group(__DIR__, __FILE__)->throws(Swift_TransportException::class);
20+
})->group(__DIR__, __FILE__)->throws(Swift_TransportException::class)->skip();

0 commit comments

Comments
 (0)