|
|
|
@ -140,7 +140,7 @@ class ConsoleController extends Think {
|
|
|
|
|
|
|
|
|
|
public function deleteRepeatUserPlayInfo()
|
|
|
|
|
{
|
|
|
|
|
$gameIds = [157, 155, 153, 150, 151, 148, 175, 142, 143, 172, 173, 155, 154];
|
|
|
|
|
$gameIds = [157, 155, 153, 150, 151, 148, 175, 142, 143, 172, 173, 155, 154, 180];
|
|
|
|
|
foreach($gameIds as $gameId) {
|
|
|
|
|
$this->doDeleteRepeatUserPlayInfo($gameId);
|
|
|
|
|
}
|
|
|
|
@ -194,7 +194,7 @@ class ConsoleController extends Think {
|
|
|
|
|
|
|
|
|
|
public function deleteRepeatUserPlayInfo2()
|
|
|
|
|
{
|
|
|
|
|
$gameIds = [157, 148, 150, 151, 158, 175, 142, 143, 172, 173, 154, 155, 176, 165, 164, 179, 156, 153];
|
|
|
|
|
$gameIds = [157, 148, 150, 151, 158, 175, 142, 143, 172, 173, 154, 155, 176, 165, 164, 179, 156, 153, 180];
|
|
|
|
|
foreach ($gameIds as $gameId) {
|
|
|
|
|
$this->doDeleteRepeatUserPlayInfo2($gameId);
|
|
|
|
|
}
|
|
|
|
@ -245,4 +245,22 @@ class ConsoleController extends Think {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function resetIndexChart()
|
|
|
|
|
{
|
|
|
|
|
for ($i=1; $i<100; $i++) {
|
|
|
|
|
$item = M('index_chart', 'tab_')->where(['id' => $i])->find();
|
|
|
|
|
if ($item) {
|
|
|
|
|
$item['new_user_hours'] = json_encode(unserialize($item['new_user_hours']));
|
|
|
|
|
$item['active_user_hours'] = json_encode(unserialize($item['active_user_hours']));
|
|
|
|
|
$item['active_user_list'] = json_encode(unserialize($item['active_user_list']));
|
|
|
|
|
$item['pay_user_hours'] = json_encode(unserialize($item['pay_user_hours']));
|
|
|
|
|
$item['pay_user_list'] = json_encode(unserialize($item['pay_user_list']));
|
|
|
|
|
$item['pay_money_hours'] = json_encode(unserialize($item['pay_money_hours']));
|
|
|
|
|
$item['promote_new_hours'] = json_encode(unserialize($item['promote_new_hours']));
|
|
|
|
|
$item['all_count'] = json_encode(unserialize($item['all_count']));
|
|
|
|
|
M("index_chart_1", "tab_")->add($item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|