|
|
@ -891,9 +891,13 @@ public function auto_rrdae(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//根据时间统计玩家充值
|
|
|
|
//根据时间统计玩家充值
|
|
|
|
public function userPlayDataCount()
|
|
|
|
public function userPlayDataCount($time = '')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if ($time == '') {
|
|
|
|
$time = strtotime(date('Y-m-d 00:00:00', time() - (3600 * 24)));
|
|
|
|
$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();
|
|
|
|
$res = M('user_play_data_count', 'tab_')->where(array('create_time' => $time))->find();
|
|
|
|
if (empty($res)) {
|
|
|
|
if (empty($res)) {
|
|
|
|
$map['pay_time'] = ['between', [$time, strtotime(date('Y-m-d 23:59:59', $time))]];
|
|
|
|
$map['pay_time'] = ['between', [$time, strtotime(date('Y-m-d 23:59:59', $time))]];
|
|
|
|