Commit 9075513d authored by zhuwei's avatar zhuwei

获取权限

parent ed1c6b64
......@@ -372,15 +372,15 @@ class ReportService
public function getCheckType($agent_id)
{
$vip = new VipService();
if($vip->vip($agent_id, 'inspectionRecordAll/3') == 0){//代表公司
if($vip->vip($agent_id, 'index/inspectionRecordAll/3') == 0){//代表公司
return 1;
}
if($vip->vip($agent_id, 'inspectionRecordDistrict/2') == 0){//代表部门
if($vip->vip($agent_id, 'index/inspectionRecordDistrict/2') == 0){//代表部门
return 2;
}
if($vip->vip($agent_id, 'inspectionRecordStore/1') == 0){//代表门店
if($vip->vip($agent_id, 'index/inspectionRecordStore/1') == 0){//代表门店
return 3;
}
return 0;
......
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