Commit afdc4990 authored by hujun's avatar hujun

is_

parent 06855d41
......@@ -1143,11 +1143,13 @@ class Shop extends Basic
$is_auth = $vip->checkRule($this->agentId, 'index/checkVideo');
if ($is_auth) {
$where['a.upload_id'] = $this->agentId;
$is_auth = 0;
} else {
$m_agent = new AAgents();
$agent_data = $m_agent->getAgentInfo('district_id,store_id', $this->agentId);
$where['b.district_id'] = $agent_data['district_id'];
$where['b.store_id'] = $agent_data['store_id'];
$is_auth = 1;
}
$m_house_video = new GHousesVideo();
......@@ -1160,7 +1162,7 @@ class Shop extends Basic
$data[$k]['check_status'] = $v['check_id'] ? 1 : 0;
$data[$k]['path'] = 'resource/lib/Attachments/video/';
}
return $this->response(200, '', $data);
return $this->response(200, '', $data, ['is_auth'=>$is_auth]);
}
/**
......
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