...
|
...
|
@@ -365,7 +365,7 @@ class Almighty extends Api |
|
|
{
|
|
|
$filename = $this->request->param('filename');
|
|
|
empty($filename) && $this->error('请输入音频地址');
|
|
|
$suffix = strtolower(pathinfo($fileInfo['name'], PATHINFO_EXTENSION));
|
|
|
$suffix = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
|
|
|
if (!in_array($suffix, ['pcm', 'wav', 'amr', 'm4a', 'mp3'])) {
|
|
|
$this->error('不支持该音频格式');
|
|
|
}
|
...
|
...
|
|