diff --git a/idapi_config.php b/idapi_config.php index 3541f57..62e6330 100644 --- a/idapi_config.php +++ b/idapi_config.php @@ -9,8 +9,7 @@ //define('API_URL', 'https://api.shequ.fanruan.com'); //define('ID_URL', 'https://id.fanruan.com'); define('API_KEY', 'i7hP48WAcuTrmxfN'); - -define('API_URL', 'http://testapi'); +define('API_URL', 'https://testapi.shequ.fanruan.com'); define('ID_URL', 'https://id'); //正式环境 - 通行证 diff --git a/refreshtoken/index.php b/refreshtoken/index.php index 2f67189..59a4d65 100644 --- a/refreshtoken/index.php +++ b/refreshtoken/index.php @@ -12,14 +12,14 @@ if($get_cookie){ $id_ckuser = id_CKdecrypt($get_cookie); $id_ckuserinfo = $id_ckuser['client']; $data = '&appid='.$id_ckuserinfo['appid'].'&uid='.$id_ckuserinfo['uid'].'&refresh_token='.$id_ckuser['refresh_token']; - $re_login = CallInterface(NEW_API_URL.'/v1/token/refresh/'.$data,'GET'); + $re_login = CallInterface(API_URL.'/v1/token/refresh/'.$data,'GET'); $jsonarr = json_decode($re_login,true); if($jsonarr['code']==200){ - $new_json = json_encode($jsonarr['data'],JSON_UNESCAPED_UNICODE); - $u_data = id_aes_encrypt($new_json, API_KEY); - setcookie('fr_id_auth',$u_data,time()+3600*24*14,'/'); + $new_json = json_encode($jsonarr['data'],JSON_UNESCAPED_UNICODE); + $u_data = id_aes_encrypt($new_json, API_KEY); + setcookie('fr_id_auth',$u_data,time()+3600*24*14,'/'); $str['code']=200; $str['message']='success'; diff --git a/refreshtokenID/index.php b/refreshtokenID/index.php new file mode 100644 index 0000000..b7a31c9 --- /dev/null +++ b/refreshtokenID/index.php @@ -0,0 +1,52 @@ + +