|
|
@ -200,7 +200,7 @@ class SpendRepository {
|
|
|
|
|
|
|
|
|
|
|
|
$records = [];
|
|
|
|
$records = [];
|
|
|
|
foreach ($dayList as $day) {
|
|
|
|
foreach ($dayList as $day) {
|
|
|
|
$time = strtotime($day);
|
|
|
|
$time = strtotime($day) + 24 * 3600;
|
|
|
|
$conditions['pay_time'] = ['elt', $time];
|
|
|
|
$conditions['pay_time'] = ['elt', $time];
|
|
|
|
$result = M('spend', 'tab_')->field('count(DISTINCT user_id) as count')->where($conditions)->find();
|
|
|
|
$result = M('spend', 'tab_')->field('count(DISTINCT user_id) as count')->where($conditions)->find();
|
|
|
|
$records[$day] = $result['count'];
|
|
|
|
$records[$day] = $result['count'];
|
|
|
|