前后分离项目使用
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.

31 lines
587 B

3 years ago
<?php
require '../idapi_config.php';
require '../idapi_function.php';
header("Content-Type: application/json; charset=utf-8");
$getDeAuth = id_CKdecrypt($_COOKIE["fr_id_auth"]);
//print_r($getDeAuth);
if($getDeAuth['access_token']){
echo '{
"code": 200,
"message": "success",
"data": [
{
"fr_access_token": "'.$getDeAuth['access_token'].'",
"fr_expires_time": "'.$getDeAuth['expires_time'].'"
}
],
"status": 0
}';
}else{
echo '{
"code": 200,
"message": "-1",
"data": [],
"status": 0
}';
}
?>