优化首页折现统计数据

master
chenzhi 5 years ago
parent 1d4c1accde
commit 74ff06d549

@ -280,7 +280,7 @@ class IndexChartSetController extends AdminController {
$allcount['promote_user_count'] = $user->where("promote_id > 0 and puid = 0")->field("count(1) user_count")->find()['user_count'];//推广员注册用户
$allcount['promote_spend_sum'] = $spend->where("promote_id > 0 and pay_status = 1")->field("sum(pay_amount) pay_amount")->find()['pay_amount'];//推广员总充值
$this->adddata["all_count"] = serialize($allcount);
$this->adddata["all_count"] = json_encode($allcount);
}
public function createDb()
{

Loading…
Cancel
Save