From cfadf14e449b558ffe077b54acd2a482747a0771 Mon Sep 17 00:00:00 2001 From: wisp-x <1591788658@qq.com> Date: Thu, 31 Oct 2019 11:15:40 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=8E=A5=E5=8F=A3=20token=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=BB=8E=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=B8=AD=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');