You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
658 B
36 lines
658 B
<?php
|
|
include 'IncludeCommon.php';
|
|
//检查token
|
|
if(!empty($_POST['token'])){
|
|
//if(!empty($_SESSION['token'])){
|
|
$includecommon = new IncludeCommon();
|
|
$token=$_POST['token'];
|
|
$result=$includecommon->CheckToken($token);
|
|
$user_id = $result['user_id'];
|
|
$user_name = $result['user_name'];
|
|
$token_code = $result['code'];
|
|
$token_message = $result['message'];
|
|
|
|
if($token_code <> "200"){
|
|
$jsonres['code']='1';
|
|
echo json_encode($jsonres);
|
|
}else{
|
|
$jsonres['code']='200';
|
|
$jsonres['user_id']=$user_id;
|
|
$jsonres['user_name']=$user_name;
|
|
echo json_encode($jsonres);
|
|
}
|
|
}else{
|
|
$jsonres['code']='1';
|
|
echo json_encode($jsonres);
|
|
}
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|