From a8a06c256e1235bbc91d09aaec9aa4e2608baa2b Mon Sep 17 00:00:00 2001 From: chengxl Date: Wed, 7 Jan 2026 15:40:51 +0800 Subject: [PATCH] =?UTF-8?q?Latex=E7=94=9F=E6=88=90PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/LatexContent.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/common/LatexContent.php b/application/common/LatexContent.php index 14e10d7..6f1ac64 100644 --- a/application/common/LatexContent.php +++ b/application/common/LatexContent.php @@ -269,7 +269,6 @@ page={{stage_page}},%号 //数据处理 $iStart = 0; $sMain = ''; - $oLatexTable = new LaTeXTable; //字符串处理 $oProduction = new \app\api\controller\Production; foreach ($aArticleMain as $key => $value) { @@ -583,7 +582,7 @@ page={{stage_page}},%号 $sDir = ROOT_PATH.trim($this->sLatexUrl,'/').'/tex_'.$iId.'/image/'; $sImagePath = $sDir.basename($sPath); if (file_exists($sImagePath)) { - return ['status' => 1,'msg' => 'success','data' => $sImagePath]; + return ['status' => 1,'msg' => 'success','data' => './image/'.basename($sImagePath)]; } //下载图片 @@ -602,7 +601,7 @@ page={{stage_page}},%号 //保存图片 file_put_contents($sImagePath, $response); curl_close($ch); - return ['status' => 1,'msg' => 'success','data' => $sImagePath]; + return ['status' => 1,'msg' => 'success','data' => './image/'.basename($sImagePath)]; } /**