Commit 188ab01a authored by hujun's avatar hujun

权限

parent 1f810b1a
...@@ -5,6 +5,7 @@ namespace app\api_broker\controller; ...@@ -5,6 +5,7 @@ namespace app\api_broker\controller;
use app\api_broker\extend\Basic; use app\api_broker\extend\Basic;
use app\api_broker\service\PushMessageService; use app\api_broker\service\PushMessageService;
use app\api_broker\service\ReportService; use app\api_broker\service\ReportService;
use app\api_broker\service\VipService;
use app\index\service\UserService; use app\index\service\UserService;
use app\model\AAgents; use app\model\AAgents;
use app\model\FollowUpLogModel; use app\model\FollowUpLogModel;
...@@ -129,6 +130,11 @@ class Report extends Basic ...@@ -129,6 +130,11 @@ class Report extends Basic
$params["report_agent_id"] = $params["agent_id"]; $params["report_agent_id"] = $params["agent_id"];
$result = []; $result = [];
if(isset($params["is_all"]) && $params["is_all"] == 1){ if(isset($params["is_all"]) && $params["is_all"] == 1){
$vip = new VipService();
$check = $vip->vip($this->agentId, 'index/inspectionRecordAll');
if ($check) {
return $this->response(200, "request null");
}
$result = $this->service_->orderListAll($field, $params, $pageNo, $pageSize); $result = $this->service_->orderListAll($field, $params, $pageNo, $pageSize);
}else{ }else{
$result = $this->service_->orderList($field, $params, $pageNo, $pageSize); $result = $this->service_->orderList($field, $params, $pageNo, $pageSize);
......
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