|
|
|
@ -244,4 +244,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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|