Commit dd47e3c8 authored by fangliyan's avatar fangliyan

小区收藏

parent 3c2f900f
...@@ -1290,6 +1290,9 @@ class Esf_center_api extends MY_Controller { ...@@ -1290,6 +1290,9 @@ class Esf_center_api extends MY_Controller {
$city = $this->input->get('city'); $city = $this->input->get('city');
$city = $city ? $city : 'nj'; $city = $city ? $city : 'nj';
$result = $this->user_model->getusercollectid($uid,$blockid,$city,$kind); $result = $this->user_model->getusercollectid($uid,$blockid,$city,$kind);
if(!empty($_GET['fangliyan'])){
print_r($result);echo '<br/>';exit;
}
//已关注此房源 //已关注此房源
if( $result > 0 ) if( $result > 0 )
......
...@@ -845,12 +845,14 @@ class User_model extends MY_Model ...@@ -845,12 +845,14 @@ class User_model extends MY_Model
if($kind){ if($kind){
$where_string .= " and kind = $kind"; $where_string .= " and kind = $kind";
} }
if(!empty($_GET['fangliyan'])){
print_r($where_string);exit;
}
$return = $this->get_data(array('form_name' => 'personal_collection','where'=>$where_string,'select'=>array('id')),'esf'); $return = $this->get_data(array('form_name' => 'personal_collection','where'=>$where_string,'select'=>array('id')),'esf');
if(!empty($_GET['fangliyan'])){
print_r($return);echo '<br/>';
if($_GET['fangliyan'] == 2){
exit;
}
}
if(!empty($return[0])) if(!empty($return[0]))
{ {
return $return[0]; return $return[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment