From cebc4de0d26bbf32c1ab6c2ef100522dc43e222b Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Mon, 12 Jun 2023 15:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B5=8B=E8=AF=95=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 816419ad..969479ee 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -990,9 +990,7 @@ class Information extends CI_Controller $tipsRightList = []; for ($i=1; $i <= 36; $i++) { $key = 'List Tips Right '.$i; - if (array_key_exists($key, $recommand_information) && - $recommand_information[$key] != false) { - var_dump($recommand_information[$key]); + if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) { $tipsRightList[] = $recommand_information[$key]; } } @@ -1001,6 +999,9 @@ class Information extends CI_Controller $secondList = array_slice($tipsRightList, 12, 12); $thirdList = array_slice($tipsRightList, 24, 12); echo 'COUNT: '.COUNT($tipsRightList); + echo '1 COUNT: '.COUNT($firstList); + echo '2 COUNT: '.COUNT($secondList); + echo '3 COUNT: '.COUNT($thirdList); $tips_right_list_content = $this->load->view( 'mobile_first/ah-tips-right-list',