Commit f9789f56 authored by zhuwei's avatar zhuwei

权限

parent edd3a129
...@@ -157,19 +157,11 @@ class Report extends Basic ...@@ -157,19 +157,11 @@ class Report extends Basic
*/ */
public function getCheckType() public function getCheckType()
{ {
$params = $this->params;
// $params = array(
// "agent_id" => 5741,
// );
if (!isset($params["agent_id"])) {
return $this->response("101", "请求参数错误");
}
$result = $this->service_->getCheckType($this->agentId); $result = $this->service_->getCheckType($this->agentId);
if ($result == 0) { if ($result == 0) {
return $this->response(101, "暂无权限"); return $this->response(101, "暂无权限");
} else { } else {
return $result; return $this->response("200", "request success", $result);
} }
} }
......
...@@ -644,7 +644,7 @@ Route::group('broker', [ ...@@ -644,7 +644,7 @@ Route::group('broker', [
'reportList' => ['api_broker/Report/reportList', ['method' => 'get']], 'reportList' => ['api_broker/Report/reportList', ['method' => 'get']],
'getCheckType' => ['api_broker/Report/getCheckType', ['method' => 'get']], 'getCheckType' => ['api_broker/Report/getCheckType', ['method' => 'get|post']],
'reportListForPc' => ['api_broker/Report/reportListForPc', ['method' => 'get']], 'reportListForPc' => ['api_broker/Report/reportListForPc', ['method' => 'get']],
'orderDetail' => ['api_broker/OrderLog/orderDetail', ['method' => 'get|post']], 'orderDetail' => ['api_broker/OrderLog/orderDetail', ['method' => 'get|post']],
......
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