更新细节
This commit is contained in:
parent
955304fc7d
commit
8011395db0
|
@ -87,12 +87,12 @@ class HomeIndex extends ApiController
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (in_array('article', $module)) {
|
if (in_array('article', $module)) {
|
||||||
$articleCount = Db::name('Article')->where([['delete_time', '=', 0],['uid', '=', $this->uid]])->count();
|
// $articleCount = Db::name('Article')->where([['delete_time', '=', 0],['uid', '=', $this->uid]])->count();
|
||||||
$total[] = array(
|
// $total[] = array(
|
||||||
'name' => '我的文章',
|
// 'name' => '我的文章',
|
||||||
'type' => 'article',
|
// 'type' => 'article',
|
||||||
'num' => $articleCount,
|
// 'num' => $articleCount,
|
||||||
);
|
// );
|
||||||
}
|
}
|
||||||
$this->apiSuccess('', $total);
|
$this->apiSuccess('', $total);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue