From 82ecc7da5d2bda906b8117089261966af3c38a9a Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 3 Nov 2017 10:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E8=AF=8D=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/keyworlds.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/controllers/keyworlds.php b/application/controllers/keyworlds.php index 397fefaf..9fd4fa72 100644 --- a/application/controllers/keyworlds.php +++ b/application/controllers/keyworlds.php @@ -689,4 +689,13 @@ class Keyworlds extends CI_Controller { return $reponse; } + public function test($kw_is_id=0, $top=1) + { + $rank_info = $this->Keywordsrank_model->get_rank_list($is_id_string, $top); + foreach ($rank_info as $key => &$value) { + $rank_info['ddd'] = date('Y-m-d H:i:s', $value->kwr_datetime); + } + var_dump($rank_info); + } + }