Commit 1a59468d authored by fangliyan's avatar fangliyan

base_id 取消收藏

parent 1b340737
...@@ -861,6 +861,45 @@ class Esf_center_api extends MY_Controller { ...@@ -861,6 +861,45 @@ class Esf_center_api extends MY_Controller {
echo serialize($return_array); echo serialize($return_array);
} }
/**
* 根据用户中心base_id取消关注房源操作接口
* @author cxf
*/
public function api_cancel_focus_by_baseId()
{
$base_id = $this->input->get('base_id');
$kind = $this->input->get('kind');
$rowid = $this->input->get('rowid');
$city = $this->input->get('city');
$tbl=$kind==3?'sell':'rent';
$id = $this->user_model->getCollectHouseIdByBaseID($base_id,$kind,$rowid,$city);
if($id==0)
{
$return = 'N_COL';
}else{
$return = $this->user_model->delcollect($id);
}
if($return == 'N_COL'){
//$result = 2;
//$msg = '无此收藏';
$result = 1;
$msg = '删除成功';
}elseif($return == 'N_USER'){
$result = 3;
$msg = '无此用户';
}elseif($return > 0){
$result = 1;
$msg = '删除成功';
}elseif($return == 0){
$result = 0;
$msg = '取消失败';
}
$return_array = array('result'=>$result,'msg'=>$msg);
echo serialize($return_array);
}
/** /**
......
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