From 0ab17be39445c33371f67bf3f9266279d3a3b1f6 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 26 Apr 2017 17:11:45 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=A2=9E=E5=8A=A0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=B5=8B=E8=AF=95=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Test.php | 19 +++++++++++++++++++ extend/controller/BasicApi.php | 2 -- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 application/index/controller/Test.php diff --git a/application/index/controller/Test.php b/application/index/controller/Test.php new file mode 100644 index 000000000..21d759306 --- /dev/null +++ b/application/index/controller/Test.php @@ -0,0 +1,19 @@ +request->action()), ['response', 'setcache', 'getcache', 'delcache', '_empty'])) { exit($this->response('禁止访问接口安全方法!', 'ACCESS_NOT_ALLOWED')->send()); } - // 访问 Token 检测处理 $this->token = $this->request->param('token', $this->request->header('token', false)); if (empty($this->token) && !method_exists($this, $this->request->action())) {