接口 token 支持从请求参数中获取

This commit is contained in:
wisp-x
2019-10-31 11:15:40 +08:00
parent b10f25fdac
commit cfadf14e44
+1 -1
View File
@@ -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');