From 422e84abb62897b3745116ec865a16b55b806c3a Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 11 Oct 2023 18:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0iat=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=E4=B8=B4=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/XunFeiController.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/api/controller/XunFeiController.php b/app/api/controller/XunFeiController.php index 0eef38ac2..a5f63ddf2 100644 --- a/app/api/controller/XunFeiController.php +++ b/app/api/controller/XunFeiController.php @@ -146,13 +146,16 @@ class XunFeiController extends BaseApiController } $last_file = substr($savename, -36); $copyFile = app()->getRootPath() . '/public/uploads/iat/' . $last_file; + + // 临时方案 copy($file, $copyFile); - // $last_file = 'a1fcdd96c7967b48add17b52ab456368.mp3'; + $last_file = 'a1fcdd96c7967b48add17b52ab456368.mp3'; $curl_url = "https://dev.app.tword.cn/ffmpeg.php?file={$last_file}"; $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, "//www.jb51.cc"); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); - curl_setopt($ch, CURLOPT_HEADER,0); + curl_setopt($ch, CURLOPT_URL, $curl_url); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_exec($ch); curl_close($ch);