玩家角色数据统计脚本--更新

master
chenxiaojun 5 years ago
parent e6c2779ee1
commit d80febf3ac

@ -924,6 +924,7 @@ public function auto_rrdae(){
$map['pay_status'] = 1; $map['pay_status'] = 1;
$map['pay_game_status'] = 1; $map['pay_game_status'] = 1;
$map['game_player_id'] = ['gt', 0]; $map['game_player_id'] = ['gt', 0];
$map['server_id'] = ['gt', 0];
$field = 'FROM_UNIXTIME(pay_time, "%Y-%m-%d") as day,promote_id,user_id,game_id,server_id,game_player_id,sum(pay_amount) as recharge_cost,count(id) as recharge_count'; $field = 'FROM_UNIXTIME(pay_time, "%Y-%m-%d") as day,promote_id,user_id,game_id,server_id,game_player_id,sum(pay_amount) as recharge_cost,count(id) as recharge_count';
$spendData = M('spend', 'tab_')->field($field) $spendData = M('spend', 'tab_')->field($field)
->where($map) ->where($map)

Loading…
Cancel
Save