From 9c0f14d8d756a8cbbe0ac9c4111fa969c7c9f338 Mon Sep 17 00:00:00 2001 From: chengxl Date: Wed, 11 Feb 2026 11:26:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E7=89=88=E7=9B=B8=E5=85=B3=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Production.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index 95b3254..3afa2ba 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -18,7 +18,7 @@ use think\log; class Production extends Base { - private $supportedTags = ['sup', 'sub', 'blue', 'b', 'i', 't', 'r', 'wmath']; + private $supportedTags = ['sup', 'sub', 'blue', 'b', 'i', 't', 'r', 'wmath','myh3']; // 颜色映射(自定义标签颜色对应LaTeX的HTML十六进制颜色) private $colorMap = [ 'blue' => '0082AA', @@ -2667,6 +2667,9 @@ class Production extends Base $style['color'] = $this->colorMap['r']; break; // tr标签已被移除,无需处理 + case 'myh3': + $style['h3'] = true; + break; } } @@ -2708,6 +2711,10 @@ class Production extends Base $content = '$_{{'.$content.'}}$'; } + // 处理h3标签 + if (isset($style['h3']) && $style['h3']) { + $content = "\\textbf{{$content}}"; + } return $content; } @@ -3300,6 +3307,16 @@ class Production extends Base $article_info = $this->article_obj->where('article_id', $p_info['article_id'])->find(); $journal_info = $this->journal_obj->where('journal_id', $article_info['journal_id'])->find(); $user_info = $this->user_obj->where('user_id', $article_info['user_id'])->find(); + + //查询文章是否有Accept记录 20260210 start + $article_info_id = empty($article_info['article_id']) ? 0 : $article_info['article_id']; + $aMsgWhere = ['article_id' => $article_info_id,'state_to' => 5]; + $aArticleMsg = Db::name('article_msg')->field('msg_id')->where($aMsgWhere)->find(); + if(empty($aArticleMsg)){ + return jsonError("Please set the paper as Accept before asking the author to confirm"); + } + //查询文章是否有Accept记录 20260210 end + $this->pdfAddProof($p_info['article_id']); if ($p_info['file_pdf'] == '') { return jsonError('To the editor: PROOF is the final form before the article goes online. The PROOF link step not be opened if you have not completed the previous steps.');