add clear
This commit is contained in:
@@ -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('暂不支持的文件类型');
|
||||
|
||||
Reference in New Issue
Block a user