|
|
@@ -1614,15 +1614,15 @@ HTML;
|
|
|
];
|
|
|
//TODO 老积分
|
|
|
$points_radio = sys_config('gift_points',5);
|
|
|
- //今日礼包产品
|
|
|
+ //今日老积分
|
|
|
$today_points = $this->dao->todayLbSales('today');
|
|
|
$today_points = bcmul($today_points,bcdiv($points_radio,100,2),2);
|
|
|
- //昨日礼包产品
|
|
|
+ //昨日老积分
|
|
|
$yesterday_points = $this->dao->todayLbSales('yesterday');
|
|
|
$yesterday_points = bcmul($yesterday_points,bcdiv($points_radio,100,2),2);
|
|
|
//日同比
|
|
|
$points_today__ratio = $this->growth($today_sales, $yesterday_sales);
|
|
|
- //总礼包产品
|
|
|
+ //总老积分
|
|
|
$total_points = $this->dao->totalLbSales('month');
|
|
|
$total_points = bcmul($total_points,bcdiv($points_radio,100,2),2);
|
|
|
$points = [
|
|
|
@@ -1643,8 +1643,8 @@ HTML;
|
|
|
$info[1]['total_name'] = '本月访问量';
|
|
|
$info[2]['total_name'] = '本月订单量';
|
|
|
$info[3]['total_name'] = '本月新增用户';
|
|
|
- $info[4]['total_name'] = '本月礼包产品绩效';
|
|
|
- $info[5]['total_name'] = '本月老积分';
|
|
|
+ $info[4]['total_name'] = '总礼包产品绩效';
|
|
|
+ $info[5]['total_name'] = '总老积分';
|
|
|
return $info;
|
|
|
}
|
|
|
|