From de67a52cb087da86c0d3b1a6aeabe340044957f4 Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 28 Aug 2025 13:43:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=BE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Aiarticle.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/api/controller/Aiarticle.php b/application/api/controller/Aiarticle.php index 09d5ab4..520f350 100644 --- a/application/api/controller/Aiarticle.php +++ b/application/api/controller/Aiarticle.php @@ -1104,6 +1104,7 @@ class Aiarticle extends Base if(!empty($aAiArticle)){ + $iStatus = 2; $aMsg = [1 => 'The article has been pushed to the draft box',2 => 'Not pushed to the draft box',3 => 'Material upload in progress',4 => 'Material upload completed']; //判断是否上传素材 @@ -1125,6 +1126,7 @@ class Aiarticle extends Base if(!empty($aLog) && $aLog['status_name'] == 'finish'){ $iStatus = 4;//素材上传完成 } + //判断是否推送到草稿箱 if(!empty($aLog) && $iStatus == 4){ $aDraft = Db::name('ai_wechat_article')->field('is_publish,publish_status,article_id,template_id,wechat_id')->where($aWhere)->find();