Latex生成PDF
This commit is contained in:
@@ -269,7 +269,6 @@ page={{stage_page}},%号
|
|||||||
//数据处理
|
//数据处理
|
||||||
$iStart = 0;
|
$iStart = 0;
|
||||||
$sMain = '';
|
$sMain = '';
|
||||||
$oLatexTable = new LaTeXTable;
|
|
||||||
//字符串处理
|
//字符串处理
|
||||||
$oProduction = new \app\api\controller\Production;
|
$oProduction = new \app\api\controller\Production;
|
||||||
foreach ($aArticleMain as $key => $value) {
|
foreach ($aArticleMain as $key => $value) {
|
||||||
@@ -583,7 +582,7 @@ page={{stage_page}},%号
|
|||||||
$sDir = ROOT_PATH.trim($this->sLatexUrl,'/').'/tex_'.$iId.'/image/';
|
$sDir = ROOT_PATH.trim($this->sLatexUrl,'/').'/tex_'.$iId.'/image/';
|
||||||
$sImagePath = $sDir.basename($sPath);
|
$sImagePath = $sDir.basename($sPath);
|
||||||
if (file_exists($sImagePath)) {
|
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);
|
file_put_contents($sImagePath, $response);
|
||||||
curl_close($ch);
|
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