From 40af9b0e51dc8d517bbbd24f90909e558ab555ae Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Thu, 21 Nov 2019 22:58:31 +0800 Subject: [PATCH] =?UTF-8?q?user=5Finfo=20=E9=AA=8C=E8=AF=81user=5Ftoken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/BaseController.class.php | 4 ++-- Application/Sdk/Controller/UserController.class.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Application/Sdk/Controller/BaseController.class.php b/Application/Sdk/Controller/BaseController.class.php index c5ff7462..2fcc5f78 100644 --- a/Application/Sdk/Controller/BaseController.class.php +++ b/Application/Sdk/Controller/BaseController.class.php @@ -45,8 +45,8 @@ class BaseController extends RestController{ if (!(in_array($c, $this->noToken) - || in_array($a, $this->noToken) - || in_array($c.".".$a, $this->noToken))) { + || in_array($a, $this->noToken) + || in_array($c.".".$a, $this->noToken))) { if ($data['api_ver'] == 2) { self::apiverify($data['user_id'], $data['game_id'], $data['user_token']); diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php index ff261f47..c0f4c8ad 100644 --- a/Application/Sdk/Controller/UserController.class.php +++ b/Application/Sdk/Controller/UserController.class.php @@ -11,7 +11,6 @@ use App\Model\UserModel; use App\Model\PointShopRecordModel; use Qiniu\json_decode; use Think\Log; -use App\Controller\BaseController; class UserController extends BaseController {