From 6286bb0bdb7626d7a2bbe7d49a1354349df91844 Mon Sep 17 00:00:00 2001 From: chengxl Date: Tue, 14 Oct 2025 16:20:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Proofread.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/application/api/controller/Proofread.php b/application/api/controller/Proofread.php index 54a18a5..75803d9 100644 --- a/application/api/controller/Proofread.php +++ b/application/api/controller/Proofread.php @@ -580,7 +580,7 @@ class Proofread extends Base $aWhere['state'] = 0; $aWhere['am_id'] = $iAmId; $aArticleMain = Db::table('t_article_main')->field('am_id,content,type,is_h1,is_h2,is_h3,ami_id,amt_id')->where($aWhere)->find(); - if(empty($aArticleMain)){ + if(empty($aArticleMain['content'])){ return json_encode(array('status' => 5,'msg' => 'The content of the article is empty')); } //写入校对行队列 @@ -635,9 +635,6 @@ class Proofread extends Base return json_encode(array('status' => 6,'msg' => 'The proofreading content is empty')); } $aResult = $oProofReadService->proofread($aArticleMain['content']); - if(empty($aResult)){ - return json_encode(array('status' => 7,'msg' => 'Failed to obtain proofreading content')); - } //数据处理 $aError = empty($aResult['errors']) ? [] : $aResult['errors']; if(empty($aError)){