From 40eff4e80eae4ec390d2c1ea9c4797e12c54a58e Mon Sep 17 00:00:00 2001 From: zhaoxiang <756958008@qq.com> Date: Thu, 22 Jun 2017 17:37:29 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E5=8F=98=E6=9B=B4=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/ApiController.class.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Application/Home/Controller/ApiController.class.php b/Application/Home/Controller/ApiController.class.php index a262259..ca16f85 100644 --- a/Application/Home/Controller/ApiController.class.php +++ b/Application/Home/Controller/ApiController.class.php @@ -67,15 +67,6 @@ class ApiController extends BaseController { $this->header = array_change_key_case($this->header, CASE_UPPER); ApiLog::setHeader($this->header); - if ($this->apiDetail['accessToken'] && !$this->apiDetail['isTest']) { - $this->checkAccessToken(); - } - if (!$this->apiDetail['isTest']) { - $this->checkVersion(); - } - $this->checkLogin(); - - unset($getArr['hash']); switch ($this->apiDetail['method']) { case 0: $this->param = array_merge($getArr, $postArr); @@ -93,6 +84,15 @@ class ApiController extends BaseController { $this->param = $data; } ApiLog::setRequest($this->param); + + if ($this->apiDetail['accessToken'] && !$this->apiDetail['isTest']) { + $this->checkAccessToken(); + } + if (!$this->apiDetail['isTest']) { + $this->checkVersion(); + } + $this->checkLogin(); + unset($getArr['hash']); $this->iniApi(); }