From d3ae05f8511e56a382958a13353cc90c60db98a1 Mon Sep 17 00:00:00 2001 From: wyn <1074145239@qq.com> Date: Wed, 3 Jun 2026 09:50:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=8C=AE=E6=A0=A1=E5=AF=B9=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E6=8F=90=E7=A4=BA=E5=8F=98=E6=88=90=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=96=87=E4=B8=AD?= =?UTF-8?q?=E6=9C=AA=E6=89=BE=E5=88=B0=E5=8F=82=E8=80=83=E6=96=87=E7=8C=AE?= =?UTF-8?q?=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/References.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/application/api/controller/References.php b/application/api/controller/References.php index 2ca9eca1..331edd62 100644 --- a/application/api/controller/References.php +++ b/application/api/controller/References.php @@ -1329,18 +1329,21 @@ class References extends Base return json_encode(array('status' => 3,'msg' => 'No articles found' )); } if($this->checkReferStatus($iPArticleId)==0){ - return jsonError('请修正完文献内容再进行校对。'); + return jsonError('Please correct the reference content before running the check.'); } //已存在校对记录则禁止重复执行第一次校对,提示走重置接口 $iExisting = Db::name('article_reference_check_result') ->where('p_article_id', $iPArticleId) ->count(); if(intval($iExisting) > 0){ - return jsonError('该文章已存在校对记录,请使用"重置校对"接口重新校对。'); + return jsonError('This article already has a reference check record. Please use the "Reset Check" endpoint to run the check again.'); } try { $svc = new ReferenceCheckService(); $result = $svc->enqueueByPArticle($aProductionArticle); + if (empty($result['check_ids'])) { + return jsonError('No reference citations were found in the article.'); + } return jsonSuccess($result); } catch (\Exception $e) { return jsonError($e->getMessage()); @@ -1368,7 +1371,7 @@ class References extends Base return json_encode(array('status' => 3,'msg' => 'No articles found' )); } if($this->checkReferStatus($iPArticleId)==0){ - return jsonError('请修正完文献内容再进行校对。'); + return jsonError('Please correct the reference content before running the check.'); } $iArticleId = empty($aProductionArticle['article_id']) ? 0 : $aProductionArticle['article_id']; if(empty($iArticleId)){