新增catchadmin模块发现
This commit is contained in:
parent
6e9c0aed32
commit
97724b04df
@ -55,7 +55,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"post-autoload-dump": [
|
"post-autoload-dump": [
|
||||||
"@php think service:discover",
|
"@php think service:discover",
|
||||||
"@php think vendor:publish"
|
"@php think vendor:publish",
|
||||||
|
"@php think catch-service:discover"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace catcher\facade;
|
||||||
|
|
||||||
|
use think\Facade;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @method static \catcher\library\Trie add(string $word)
|
||||||
|
* @method static \catcher\library\Trie filter(string $content)
|
||||||
|
*
|
||||||
|
* @time 2020年05月22日
|
||||||
|
*/
|
||||||
|
class Trie extends Facade
|
||||||
|
{
|
||||||
|
protected static function getFacadeClass()
|
||||||
|
{
|
||||||
|
return \catcher\library\Trie::class;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
10
extend/catcher/library/ProgressBar.php
Normal file
10
extend/catcher/library/ProgressBar.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @filename ProgressBar.php
|
||||||
|
* @createdAt 2020/6/20
|
||||||
|
* @project https://github.com/yanwenwu/catch-admin
|
||||||
|
* @document http://doc.catchadmin.com
|
||||||
|
* @author JaguarJack <njphper@gmail.com>
|
||||||
|
* @copyright By CatchAdmin
|
||||||
|
* @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt
|
||||||
|
*/
|
@ -144,6 +144,6 @@ class Trie
|
|||||||
*/
|
*/
|
||||||
public function cached()
|
public function cached()
|
||||||
{
|
{
|
||||||
Cache::store('redis')->set(CatchCacheKeys::TRIE_TREE, $this->tree);
|
return Cache::store('redis')->set(CatchCacheKeys::TRIE_TREE, $this->tree);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user