Skip to content

Commit 4f3bfaf

Browse files
committed
提高频率
1 parent ad79a7e commit 4f3bfaf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Blacklist.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Blacklist extends AbstractMessageHandler
1313
{
1414
public $author = 'HanSon';
1515

16-
public $version = '1.0';
16+
public $version = '1.0.1';
1717

1818
public $name = 'blacklist';
1919

@@ -45,12 +45,11 @@ public function handler(Collection $message)
4545
$this->cache->set($key,$count);
4646
$this->cache->expire($key, 10);
4747

48-
if ($count == 4) {
48+
if ($count == 5) {
4949
$this->warn($message);
50-
return true;
5150
}
5251

53-
if ($count >= 7) {
52+
if ($count >= 8) {
5453
$this->block($message);
5554
return true;
5655
}

0 commit comments

Comments
 (0)