From 3f06b0b850c032d4ced9b07b8d6b4192610dec43 Mon Sep 17 00:00:00 2001 From: chengxl Date: Wed, 9 Jul 2025 11:49:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=8D=89=E7=A8=BF=E7=AE=B1?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E9=87=8D=E5=A4=8D=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Aiarticle.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/api/controller/Aiarticle.php b/application/api/controller/Aiarticle.php index 3d678b9..aae5c30 100644 --- a/application/api/controller/Aiarticle.php +++ b/application/api/controller/Aiarticle.php @@ -1022,6 +1022,13 @@ class Aiarticle extends Base return json_encode(['status' => 2, 'msg' => 'Please select an article']); } + //判断草稿箱是否上传 + $oMaterial = new Material; + $aLog = json_decode($oMaterial->getWechatLog(['article_id' => $iArticleId,'type' => 2,'status' =>1]),true); + if(!empty($aLog['data'])){ + return json_encode(['status' => 1,'msg' => 'Already uploaded to draft box','data' => []]); + } + //判断文章类型 $article_type = empty($aParam['article_type']) ? 'news' : $aParam['article_type']; if(!in_array($article_type, ['news','newspic'])){