From 07b81b8947eb0c811a445f7a29c3788c8dea996a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 9 Apr 2020 10:27:29 +0800 Subject: [PATCH] 1 --- webapp/controller/RoleController.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index cca9a1e..dda2a4e 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -92,8 +92,7 @@ class RoleController{ $account_id = $_REQUEST['account_id']; $user_name = $_REQUEST['name']; $avatar_url = $_REQUEST['avatar_url']; - $switch_id = $_REQUEST['switch_id']; - //登录校验 + $switch_id = isset($_REQUEST['switch_id']) ? $_REQUEST['switch_id'] : 0; $login = loginVerify($account_id, $_REQUEST['session_id']); if (!$login) { phpcommon\sendError(ERR_USER_BASE + 1, 'session无效');