Commit 06eb562e authored by zhuwei's avatar zhuwei

获取权限

parent 8983ced2
......@@ -372,15 +372,15 @@ class ReportService
public function getCheckType($agent_id)
{
$vip = new VipService();
if($vip->vip($agent_id, 'index/inspectionRecordAll/3')){//代表公司
if($vip->vip($agent_id, 'inspectionRecordAll/3') == 0){//代表公司
return 1;
}
if($vip->vip($agent_id, 'index/inspectionRecordDistrict/2')){//代表部门
if($vip->vip($agent_id, 'inspectionRecordDistrict/2') == 0){//代表部门
return 2;
}
if($vip->vip($agent_id, 'index/inspectionRecordStore/1')){//代表门店
if($vip->vip($agent_id, 'inspectionRecordStore/1') == 0){//代表门店
return 3;
}
return 0;
......
......@@ -41,7 +41,6 @@ class VipService
$fields = 'auth_group_id';
$auth_group_id = $this->agentModel->getAgentsById($id, $fields);
$fields = 'rules';
$rules = $this->groupModel->getAuthGroupById($auth_group_id, $fields);
......
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