更新细节

This commit is contained in:
yaooo 2023-11-11 11:27:50 +08:00
parent 955304fc7d
commit 8011395db0
1 changed files with 6 additions and 6 deletions

View File

@ -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);
}