|
|
@ -907,6 +907,7 @@ 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)) {
|
|
|
|
|
|
|
|
ini_set('memory_limit','500M');
|
|
|
|
$time = strtotime(date('Y-m-d 00:00:00', time()));
|
|
|
|
$time = strtotime(date('Y-m-d 00:00:00', time()));
|
|
|
|
$map['pay_time'] = ['lt', $time];
|
|
|
|
$map['pay_time'] = ['lt', $time];
|
|
|
|
|
|
|
|
|
|
|
@ -931,17 +932,20 @@ public function auto_rrdae(){
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($spendData)) {
|
|
|
|
if (!empty($spendData)) {
|
|
|
|
$data = [];
|
|
|
|
$data = [];
|
|
|
|
foreach ($spendData as $list) {
|
|
|
|
foreach ($spendData as &$list) {
|
|
|
|
$save['promote_id'] = $list['promote_id'];
|
|
|
|
$data[] = [
|
|
|
|
$save['user_id'] = $list['user_id'];
|
|
|
|
'promote_id' => $list['promote_id'],
|
|
|
|
$save['game_id'] = $list['game_id'];
|
|
|
|
'user_id' => $list['user_id'],
|
|
|
|
$save['server_id'] = $list['server_id'];
|
|
|
|
'game_id' => $list['game_id'],
|
|
|
|
$save['role_id'] = $list['game_player_id'];
|
|
|
|
'server_id' => $list['server_id'],
|
|
|
|
$save['recharge_cost'] = $list['recharge_cost'];
|
|
|
|
'role_id' => $list['game_player_id'],
|
|
|
|
$save['recharge_count'] = $list['recharge_count'];
|
|
|
|
'recharge_cost' => $list['recharge_cost'],
|
|
|
|
$save['create_time'] = strtotime($list['day']);
|
|
|
|
'recharge_count' => $list['recharge_count'],
|
|
|
|
$data[] = $save;
|
|
|
|
'create_time' => strtotime($list['day']),
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
unset($list);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
unset($spendData);
|
|
|
|
M('user_play_data_count', 'tab_')->addAll($data);
|
|
|
|
M('user_play_data_count', 'tab_')->addAll($data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|