diff --git a/app/api/controller/XunFeiController.php b/app/api/controller/XunFeiController.php index 6fa894a91..fff0b9993 100644 --- a/app/api/controller/XunFeiController.php +++ b/app/api/controller/XunFeiController.php @@ -148,6 +148,7 @@ class XunFeiController extends BaseApiController $n = count($last_file_array) - 1; $last_file = $last_file_array[$n]; $copyFile = app()->getRootPath() . '/public/uploads/iat/' . $last_file; + halt($file, $copyFile); copy($file, $copyFile); $ext = pathinfo($file, PATHINFO_EXTENSION); $extArray = ['mp3', 'pcm'];