Commit d60fee15 authored by hujun's avatar hujun

后台查看商铺与app商铺详情

parent ae16ad4e
...@@ -343,21 +343,6 @@ class Shop extends Basic ...@@ -343,21 +343,6 @@ class Shop extends Basic
$result["lookShopArr"] = $lookShopArr; $result["lookShopArr"] = $lookShopArr;
} }
}
//是否被收藏
$result["is_collect"] = 2;
if ($params['site_area'] == 3) {
//先判断是否已经存在数据
$field = 'id,status';
$get_params['agents_id'] = $params["user_id"];
$get_params['house_id'] = $params["id"];
$collect_house = new ACollectHouse();
$res = $collect_house->getCollectHouse($field,$get_params);
if($res && ($res[0]['status'] == 1)){//如果存在
$result["is_collect"] = 1;
}
//上传人 //上传人
$m_agent = new AAgents(); $m_agent = new AAgents();
$upload_data = $m_agent->getAgentById('name,phone',['agent_id'=>$result['upload_id']]); $upload_data = $m_agent->getAgentById('name,phone',['agent_id'=>$result['upload_id']]);
...@@ -374,6 +359,20 @@ class Shop extends Basic ...@@ -374,6 +359,20 @@ class Shop extends Basic
} }
} }
//是否被收藏
$result["is_collect"] = 2;
if ($params['site_area'] == 3) {
//先判断是否已经存在数据
$field = 'id,status';
$get_params['agents_id'] = $params["user_id"];
$get_params['house_id'] = $params["id"];
$collect_house = new ACollectHouse();
$res = $collect_house->getCollectHouse($field,$get_params);
if($res && ($res[0]['status'] == 1)){//如果存在
$result["is_collect"] = 1;
}
}
$result['new_sign_rule'] = "付{$result['payment_month']}{$result['deposit_month']},签订{$result['age_limit']}年"; $result['new_sign_rule'] = "付{$result['payment_month']}{$result['deposit_month']},签订{$result['age_limit']}年";
return $this->response("200", 'request success', $result); return $this->response("200", 'request success', $result);
} }
......
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