add clear

This commit is contained in:
2021-04-06 15:20:39 +08:00
parent 80abb3a20a
commit bdafc011a6
23 changed files with 220 additions and 220 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ class SecCheck extends SmallProgram
const MEDIA_IMAGE = 1;
/**
* @param string $path
* @param $path
* @return array|Result|mixed
*/
public function image($path = '')
@@ -41,12 +41,12 @@ class SecCheck extends SmallProgram
/**
* @param string $url
* @param $url
* @param int $type
* @return mixed
* @throws
*/
public function mediaAsync(string $url, $type = SecCheck::MEDIA_IMAGE)
public function mediaAsync($url, $type = SecCheck::MEDIA_IMAGE)
{
if (!in_array($type, [self::MEDIA_IMAGE, self::MEDIA_VIDEO])) {
throw new \Exception('暂不支持的文件类型');