From 6750c5f47f46ffa1b76bacc36c5eb65088ab5701 Mon Sep 17 00:00:00 2001 From: chengxl Date: Fri, 24 Oct 2025 17:24:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E7=9B=B8=E5=85=B3=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E8=80=85=E9=82=AE=E4=BB=B6=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Article.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/wechat/controller/Article.php b/application/wechat/controller/Article.php index dc606ff..21d39a3 100644 --- a/application/wechat/controller/Article.php +++ b/application/wechat/controller/Article.php @@ -216,7 +216,8 @@ class Article extends Controller } //获取文章的作者 - array_push($aRelatedId, $iArticleId); + // array_push($aRelatedId, $iArticleId); + $aRelatedId = [$iArticleId]; $aWhere = ['article_id' => ['in',$aRelatedId],'state' => 0,'email' => ['<>','']]; $aAuthor = Db::name('article_author')->field('article_id,author_name,article_author_id,first_name,last_name,email,is_report')->where($aWhere)->order('is_report desc,article_id asc')->select();