Commit dec06539 authored by hujun's avatar hujun

处理盘方编辑自己的商铺,没有vip权限

parent 0dd279c8
......@@ -128,9 +128,14 @@ class HouseService
$vip_house = $vip->vip($agent_id, 'index/vipHouse');
if($vip_house == 1){
$result['status'] = 'fail';
$result['msg'] = '无vip盘编辑权限!';
return $result;
$m_house_agent = new GHousesToAgents();
$agents_id_arr = $m_house_agent->getAgentHouseOne('agents_id',['houses_id'=>$data['id'],'is_del'=>0,'type'=>2]);
//处理盘方编辑自己的商铺,没有vip权限
if (empty($agents_id_arr) && !in_array($agent_id, $agents_id_arr)) {
$result['status'] = 'fail';
$result['msg'] = '无vip盘编辑权限!';
return $result;
}
}
}
$m_operating = new GOperatingRecords();
......
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