This commit is contained in:
xl
2023-11-14 14:10:36 +08:00
parent f263014948
commit 70222819b9
13 changed files with 133 additions and 129 deletions
+4 -4
View File
@@ -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);