自动脚本->玩家角色充值数据统计

master
chenxiaojun 5 years ago
parent 3d3bfce947
commit 30d9c30522

@ -896,9 +896,9 @@ public function auto_rrdae(){
$time = strtotime(date('Y-m-d 00:00:00', time() - (3600 * 24))); $time = strtotime(date('Y-m-d 00:00:00', time() - (3600 * 24)));
$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)) {
$spendMap['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))]];
$this->userPlayDataCountByMap($spendMap); $this->userPlayDataCountByMap($map);
} }
} }
@ -908,9 +908,9 @@ public function auto_rrdae(){
$res = M('user_play_data_count', 'tab_')->order('id asc')->find(); $res = M('user_play_data_count', 'tab_')->order('id asc')->find();
if (empty($res)) { if (empty($res)) {
$time = strtotime(date('Y-m-d 00:00:00', time())); $time = strtotime(date('Y-m-d 00:00:00', time()));
$spendMap['pay_time'] = ['lt', $time]; $map['pay_time'] = ['lt', $time];
$this->userPlayDataCountByMap($spendMap); $this->userPlayDataCountByMap($map);
echo '初始化成功'; echo '初始化成功';
} else { } else {
echo '表存在记录,无法初始化'; echo '表存在记录,无法初始化';

Loading…
Cancel
Save