diff --git a/app/api/controller/XunFeiController.php b/app/api/controller/XunFeiController.php index 4818e64c6..88a4be3b3 100644 --- a/app/api/controller/XunFeiController.php +++ b/app/api/controller/XunFeiController.php @@ -125,7 +125,6 @@ class XunFeiController extends BaseApiController { header('X-Accel-Buffering: no'); $file = request()->file('audio'); - /* if(empty($file)){ //return $this->fail('未上传音频文件'); } @@ -135,8 +134,7 @@ class XunFeiController extends BaseApiController if (!file_exists($file)) { //return $this->fail('未上传音频文件'); } - */ - $file = "https://lihai001.oss-cn-chengdu.aliyuncs.com/media/iat_mp3_16k.mp3"; + // $file = "https://lihai001.oss-cn-chengdu.aliyuncs.com/media/iat_mp3_16k.mp3"; $audioFile = fopen($file, 'rb'); if ($audioFile === false) { return $this->fail('音频文件异常');