diff --git a/app/api/controller/HomeIndex.php b/app/api/controller/HomeIndex.php index e75cf9b..93fcc8d 100644 --- a/app/api/controller/HomeIndex.php +++ b/app/api/controller/HomeIndex.php @@ -87,12 +87,12 @@ class HomeIndex extends ApiController ); } if (in_array('article', $module)) { - $articleCount = Db::name('Article')->where([['delete_time', '=', 0],['uid', '=', $this->uid]])->count(); - $total[] = array( - 'name' => '我的文章', - 'type' => 'article', - 'num' => $articleCount, - ); + // $articleCount = Db::name('Article')->where([['delete_time', '=', 0],['uid', '=', $this->uid]])->count(); + // $total[] = array( + // 'name' => '我的文章', + // 'type' => 'article', + // 'num' => $articleCount, + // ); } $this->apiSuccess('', $total); }