|
|
|
@ -87,6 +87,8 @@ class Home extends BaseService |
|
|
|
|
'statistics' => [ |
|
|
|
|
// 商品总数量 |
|
|
|
|
'goodsTotal' => $this->getGoodsTotal(), |
|
|
|
|
//上级商品总数 |
|
|
|
|
'getGoodsGroundingTotal' => $this->getGoodsGroundingTotal(), |
|
|
|
|
// 会员总人数 |
|
|
|
|
'userTotal' => $this->getUserTotal(), |
|
|
|
|
// 付款订单总量 |
|
|
|
@ -137,6 +139,14 @@ class Home extends BaseService |
|
|
|
|
{ |
|
|
|
|
return number_format($this->GoodsModel->getGoodsTotal()); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 获取商品已上架总量 |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
private function getGoodsGroundingTotal(): string |
|
|
|
|
{ |
|
|
|
|
return number_format($this->GoodsModel->getGoodsGroundingTotal()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 会员总人数 |
|
|
|
|