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

master
chenxiaojun 5 years ago
commit c05f962a43

@ -896,9 +896,9 @@ public function auto_rrdae(){
$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();
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();
if (empty($res)) {
$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 '初始化成功';
} else {
echo '表存在记录,无法初始化';

Loading…
Cancel
Save