✨ 接口 token 支持从请求参数中获取
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user