更新细节
This commit is contained in:
parent
955304fc7d
commit
8011395db0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue