Commit c3e87c3d authored by zhuwei's avatar zhuwei

根据商铺id获取商铺独家方 bug

parent 713faeb4
......@@ -661,7 +661,7 @@ class Shop extends Basic
//判断是否有权限点击独家合同按钮 0:可查看 1:不可查看
$s_house = new HouseService();
$result['is_can_edit_only_contract'] = $s_house->isCanEditOnlyContract($this->agentId,$params["id"]);
unset($result['external_image_id']);
return $this->response("200", 'request success', $result);
}
......
......@@ -695,6 +695,7 @@ class HouseService
$params__['district_id']=$result[0]['district_id'];
$params__['level']=30;
$result_zj = $this->agent->searchAgentsByKeyword("id,store_id,district_id,level", $params__);
if (($shop_agent_id == $agent_id)or($result_dz[0]['store_id'] == $agent_id)or($result_zj[0]['district_id'] == $agent_id)) {
return 0;//可编辑
}else{
......@@ -710,6 +711,7 @@ class HouseService
public function getShopOnlyAgentId($shop_id){
$where_houses_to_agents['houses_id']=$shop_id;
$where_houses_to_agents['type']=3;
$where_houses_to_agents['is_del']=0;
return $this->agent_house->getAgentHouseValue('agents_id', $where_houses_to_agents);
}
......
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