Commit c321ef96 authored by zhuwei's avatar zhuwei

1

parent 73fb091f
......@@ -64,9 +64,9 @@ class Performance extends Basic
$result["start_time"] = $start_day;
$result["end_time"] = $end_day;
$result["is_boss"] = 1;
if(isset($params["agent_id"]) && !empty($params["agent_id"])){
if($this->agentId){
$vip = new VipService();//0:有权限 1:无权限
$result["is_boss"] = $vip->checkRule($params["agent_id"], 'boss');
$result["is_boss"] = $vip->checkRule($this->agentId, 'boss');
}
$result["all_performance_total"] = $all_performance_total;
$result["all_official_receipts_total"] = $all_official_receipts_total;
......
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