根据时间统计玩家充值脚本--更新

master
chenxiaojun 5 years ago
commit bcb71c25cb

@ -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))]];

Loading…
Cancel
Save