Commit 798646b6 authored by hujun's avatar hujun

userId to agentId

parent 863c5fca
...@@ -276,7 +276,7 @@ class Basic extends Controller ...@@ -276,7 +276,7 @@ class Basic extends Controller
$agents = new AAgents(); $agents = new AAgents();
$is_auth = $agents->agentsAuthId($this->agentId, $requestPath); $is_auth = $agents->agentsAuthId($this->agentId, $requestPath);
if (empty($is_auth['id']) && $this->userId != 1) { if (empty($is_auth['id']) && $this->agentId != 1) {
echo json_encode(array( "code" => "300", "msg" => "没有权限!", "data" => [], "type" => "json" ));exit; echo json_encode(array( "code" => "300", "msg" => "没有权限!", "data" => [], "type" => "json" ));exit;
} }
......
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