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无效');