This commit is contained in:
aozhiwei 2020-04-09 10:27:29 +08:00
parent 6869f573d4
commit 07b81b8947

View File

@ -92,8 +92,7 @@ class RoleController{
$account_id = $_REQUEST['account_id']; $account_id = $_REQUEST['account_id'];
$user_name = $_REQUEST['name']; $user_name = $_REQUEST['name'];
$avatar_url = $_REQUEST['avatar_url']; $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']); $login = loginVerify($account_id, $_REQUEST['session_id']);
if (!$login) { if (!$login) {
phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); phpcommon\sendError(ERR_USER_BASE + 1, 'session无效');