From b009900603dac5b55c2a23f86dfc55119a815b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Tue, 18 Jan 2022 10:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/ctmobilefirst/models/api_model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/third_party/ctmobilefirst/models/api_model.php b/application/third_party/ctmobilefirst/models/api_model.php index afe522ab..d7a59679 100644 --- a/application/third_party/ctmobilefirst/models/api_model.php +++ b/application/third_party/ctmobilefirst/models/api_model.php @@ -299,6 +299,7 @@ class Api_model extends CI_Model { WHERE is_sitecode='chinatravel' and ic_status=1 and ic_url like ? + and is_parent_id <> ? UNION ALL @@ -315,7 +316,7 @@ class Api_model extends CI_Model { "; - $qurey = $this->InfoCT->query($sql,array($url."/%",$new_pid)); + $qurey = $this->InfoCT->query($sql,array($url."/%",$new_pid,$new_pid)); return $qurey->result(); }