From 89ead4d9e83db952d474c6076a35619a7527b194 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 11 Oct 2023 17:29: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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/XunFeiController.php b/app/api/controller/XunFeiController.php index 228e8d197..463647247 100644 --- a/app/api/controller/XunFeiController.php +++ b/app/api/controller/XunFeiController.php @@ -144,7 +144,7 @@ class XunFeiController extends BaseApiController if ($filesize > 1 * 1024 * 1024) { return $this->fail('录音文件太长'); } - $last_file_array = explode('\\', $savename); + $last_file_array = explode('/', $savename); $n = count($last_file_array) - 1; $last_file = $last_file_array[$n]; $copyFile = app()->getRootPath() . '/public/uploads/iat/' . $last_file;