diff --git a/Application/Admin/Controller/AutoController.class.php b/Application/Admin/Controller/AutoController.class.php index 21da2b965..a3a75f42a 100644 --- a/Application/Admin/Controller/AutoController.class.php +++ b/Application/Admin/Controller/AutoController.class.php @@ -891,9 +891,13 @@ public function auto_rrdae(){ } //根据时间统计玩家充值 - public function userPlayDataCount() + public function userPlayDataCount($time = '') { - $time = strtotime(date('Y-m-d 00:00:00', time() - (3600 * 24))); + if ($time == '') { + $time = strtotime(date('Y-m-d 00:00:00', time() - (3600 * 24))); + } else { + $time = strtotime(date('Y-m-d 00:00:00', strtotime($time))); + } $res = M('user_play_data_count', 'tab_')->where(array('create_time' => $time))->find(); if (empty($res)) { $map['pay_time'] = ['between', [$time, strtotime(date('Y-m-d 23:59:59', $time))]];