1
This commit is contained in:
parent
6869f573d4
commit
07b81b8947
@ -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无效');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user