From 2d361def949c7be1426ac43e6e746b4ae29cfbd9 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Tue, 10 Oct 2023 10:42:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B5=81=E5=BC=8F=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/XunFeiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/XunFeiController.php b/app/api/controller/XunFeiController.php index 735e1da79..fb0074293 100644 --- a/app/api/controller/XunFeiController.php +++ b/app/api/controller/XunFeiController.php @@ -128,7 +128,7 @@ class XunFeiController extends BaseApiController } // 上传到本地服务器 $savename = \think\facade\Filesystem::putFile('audio', $file); - $file = app()->getRootPath() . 'runtime\storage\\' . $savename; + $file = app()->getRootPath() .'/runtime/storage/' . $savename; // $file = "https://lihai001.oss-cn-chengdu.aliyuncs.com/media/iat_mp3_16k.mp3"; $audioFile = fopen($file, 'rb'); if ($audioFile === false) {