From 7de225237db0c7f91470ad60450a6fdaac522d6d Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Tue, 30 Dec 2025 09:41:06 +0800 Subject: [PATCH] table latex update --- application/api/controller/Production.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index 398a5b5..6f4f3bc 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -3112,7 +3112,7 @@ class Production extends Base public function myTableTest(){ $references = $this->production_article_refer_obj->where("p_article_id",3401)->where("state",0)->order("index asc")->select(); - $res = $this->tableCovertLatex(1089,$references); + $res = $this->tableCovertLatex(1102,$references); echo $res; } @@ -3126,6 +3126,9 @@ class Production extends Base if (json_last_error() !== JSON_ERROR_NONE || !is_array($tableData) || empty($tableData)) { return "% 无效的JSON数据"; } + if(strlen($table_info['table_data'])>6000){ + return "执行附表程序"; + } // 获取表格最大列数(遍历所有行,找到列数最大值,处理合并后列数变化的情况) $maxColCount = 0; @@ -3190,7 +3193,7 @@ class Production extends Base $title = strip_tags($table_info['title']); $label = "tab-".$table_info['amt_id']; - $notes = strip_tags($table_info['note']); + $notes = $this->escapeLatexSpecialChars(trim(strip_tags($table_info['note']),"*. \t\n\r\0\x0B")); //确定是单栏还是双栏的表格