diff --git a/application/third_party/tpmanage/controllers/webgetbokun.php b/application/third_party/tpmanage/controllers/webgetbokun.php index 121249bd..e0feac70 100644 --- a/application/third_party/tpmanage/controllers/webgetbokun.php +++ b/application/third_party/tpmanage/controllers/webgetbokun.php @@ -451,7 +451,7 @@ class webgetbokun extends CI_Controller $strParam.="'/day-tours/".strtolower(str_replace(" ","-",$city))."/',"; } $strParam = trim($strParam,","); - //$strParam = "/beijing/"; //本地测试 + // $strParam = "'/beijing/','/shanghai/'"; //本地测试 //传递 $list = $this->tpBokun_model->getChtTours($strParam); if ($list){ diff --git a/application/third_party/tpmanage/models/tpBokun_model.php b/application/third_party/tpmanage/models/tpBokun_model.php index c653afca..4de1f7f2 100644 --- a/application/third_party/tpmanage/models/tpBokun_model.php +++ b/application/third_party/tpmanage/models/tpBokun_model.php @@ -267,12 +267,12 @@ class TpBokun_model extends CI_Model select is_id from infoStructures inner join infoContents on is_ic_id=ic_id where 1=1 - and ic_url in (?) + and ic_url in (".$strcity.") and is_sitecode='cht' ) "; - $query = $this->HT->query($sql,array($strcity)); + $query = $this->HT->query($sql); return $query->result(); }