Commit ec9a1b1f authored by zhuwei's avatar zhuwei

权限

parent 6854336f
...@@ -4,6 +4,7 @@ namespace app\api_broker\controller; ...@@ -4,6 +4,7 @@ namespace app\api_broker\controller;
use app\api_broker\extend\Basic; use app\api_broker\extend\Basic;
use app\api_broker\service\PerformanceService; use app\api_broker\service\PerformanceService;
use app\api_broker\service\VipService;
use Think\Exception; use Think\Exception;
use think\Log; use think\Log;
use think\Request; use think\Request;
...@@ -57,6 +58,13 @@ class Performance extends Basic ...@@ -57,6 +58,13 @@ class Performance extends Basic
$result["list"] = $list; $result["list"] = $list;
$result["start_time"] = $start_day; $result["start_time"] = $start_day;
$result["end_time"] = $end_day; $result["end_time"] = $end_day;
$result["is_boss"] = 0;
$vip = new VipService();//0:有权限 1:无权限
$vip_house = $vip->checkRule($this->agentId, 'boss');
if($vip_house == 1){
$result["is_boss"] = 1;
}
return $this->response("200", "request success", $result); return $this->response("200", "request success", $result);
} }
return $this->response("200", "request null"); return $this->response("200", "request null");
......
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