From 793c1501ba8f2c9b40fd5438bdba3c5c3180ab67 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Thu, 28 Nov 2019 06:11:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/ConsoleController.class.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Application/Admin/Controller/ConsoleController.class.php b/Application/Admin/Controller/ConsoleController.class.php index 71ff3486e..6c4ac9fff 100644 --- a/Application/Admin/Controller/ConsoleController.class.php +++ b/Application/Admin/Controller/ConsoleController.class.php @@ -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); + } + } + } }