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(); }