Latex生成PDF
This commit is contained in:
@@ -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)];
|
||||
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user