eee
This commit is contained in:
+4
-4
@@ -55,20 +55,20 @@ class SecCheck extends SmallProgram
|
||||
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @param array $params
|
||||
* @return ContentAsyncCheck|null
|
||||
*/
|
||||
public function readByEvent($params): ?ContentAsyncCheck
|
||||
public function readByEvent(array $params): ?ContentAsyncCheck
|
||||
{
|
||||
return ContentAsyncCheck::instance($params);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $content
|
||||
* @param string $content
|
||||
* @return Result
|
||||
*/
|
||||
public function text($content): Result
|
||||
public function text(string $content): Result
|
||||
{
|
||||
if (empty($content)) {
|
||||
return $this->sendError('文件不存在', 404);
|
||||
|
||||
Reference in New Issue
Block a user