From 3912017b971ae1fe276b7f8c6cb2a114312daedb Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 22 Jan 2018 10:45:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E8=AF=8D=20=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E4=B8=8D=E6=98=BE=E7=A4=BA151,=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/keyworlds.php | 4 ++-- application/views/keyworlds/index.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/application/controllers/keyworlds.php b/application/controllers/keyworlds.php index 45c3399f..9b49868a 100644 --- a/application/controllers/keyworlds.php +++ b/application/controllers/keyworlds.php @@ -102,7 +102,7 @@ class Keyworlds extends CI_Controller { $data['rank_json'] .='{"name":"' . $ra[$data_time[0]]->kw_keyworlds . '","data":['; // 每个点 foreach ($ra as $v) { - $kwr_rank = $v->kwr_rank ? $v->kwr_rank : 'null'; + $kwr_rank = (intval($v->kwr_rank) > 0) ? $v->kwr_rank : 'null'; $kwr_rank = ($v->kwr_rank==151) ? 'null' : $v->kwr_rank; if ($v->kwr_rank == '>150') { $kwr_rank = 100; @@ -115,7 +115,7 @@ class Keyworlds extends CI_Controller { if ($data['wordcount'] == 1) { $data['rank_json'] .='{"name":"' . $ra[$data_time[0]]->kw_keyworlds . '(mobile)","data":['; foreach ($ra as $v) { - $kwr_mobile_rank = $v->kwr_mobile_rank ? $v->kwr_mobile_rank : 'null' ; + $kwr_mobile_rank = (intval($v->kwr_mobile_rank) > 0) ? $v->kwr_mobile_rank : 'null' ; $kwr_mobile_rank = ($v->kwr_mobile_rank==151) ? 'null' : $v->kwr_mobile_rank; if ($v->kwr_mobile_rank == '>150') { $kwr_mobile_rank = 100; diff --git a/application/views/keyworlds/index.php b/application/views/keyworlds/index.php index 984e53fd..00d58858 100644 --- a/application/views/keyworlds/index.php +++ b/application/views/keyworlds/index.php @@ -54,7 +54,6 @@ - $rank) { ?>