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) {