diff --git a/app/api/controller/XunFeiController.php b/app/api/controller/XunFeiController.php index 785b74adc..12dffb8bd 100644 --- a/app/api/controller/XunFeiController.php +++ b/app/api/controller/XunFeiController.php @@ -147,7 +147,9 @@ class XunFeiController extends BaseApiController $last_file = substr($savename, -36); $copyFile = app()->getRootPath() . '/public/uploads/iat/' . $last_file; copy($file, $copyFile); - $ext = pathinfo($file, PATHINFO_EXTENSION); + $file = "https://dev.app.tword.cn/iat/" . $last_file . ".pcm"; + // $ext = pathinfo($file, PATHINFO_EXTENSION); + $ext = "pcm"; $extArray = ['mp3', 'pcm']; if (!in_array($ext, $extArray)) { return $this->fail('录音格式错误');