From 60c4201dadd2c7706a519efdcd015a5383b0632e Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 11 Oct 2023 18:21:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0iat=E8=AF=AD=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/XunFeiController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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('录音格式错误');