diff --git a/application/api/controller/Base.php b/application/api/controller/Base.php index a7345f6d..ba2013fa 100644 --- a/application/api/controller/Base.php +++ b/application/api/controller/Base.php @@ -35,7 +35,7 @@ class Base extends Controller $this->response('API is not open yet.', [], 500); } - $this->token = $this->request->header('token'); + $this->token = $this->request->header('token', $this->param('token')); $this->auth($this->token); $format = $this->param('format');